Is this a bug or do i need some more coffee ?
in
Programming Questions
•
3 years ago
Hi,
Just starting a new sketch, something very simple and i don't understand what's going on.
Here's The code:
My current machine is very limited (only 8mo video memory on board, yeah i know...) so i had that kind of strange trouble before.
So is it me, the machine or a processing bug ?
Regards,
O.
Just starting a new sketch, something very simple and i don't understand what's going on.
Here's The code:
- int numIte = 4;
- float offset;
- void setup() {
- size(200, 200);
- smooth();
- noStroke();
- background(255);
- noLoop();
- offset = width/numIte;
- }
- void draw() {
- for (int i=0; i < numIte; i++) {
- noStroke();
- ellipse(offset*i, height/2, 25, 25);
- //println("i :" + i + ", " +(offset)*i);
- }
- }
My current machine is very limited (only 8mo video memory on board, yeah i know...) so i had that kind of strange trouble before.
So is it me, the machine or a processing bug ?
Regards,
O.
1