why is float i 0.0 all the time?
in
Programming Questions
•
3 years ago
it keeps printing 0.0?
I did way more complex stuff then this and i feel embaresed...
[code]
float i=0.0;
void setup() {
size(400, 400);
noLoop();
}
void draw() {
while (i <= width) {
line(i, 0, i, height);
i = i * 1.3;
println(i);
}
}
[/code]
I did way more complex stuff then this and i feel embaresed...
[code]
float i=0.0;
void setup() {
size(400, 400);
noLoop();
}
void draw() {
while (i <= width) {
line(i, 0, i, height);
i = i * 1.3;
println(i);
}
}
[/code]
1
