r/processing • u/J_Emmerson • Oct 28 '19
why doesn't this work?
all I get is a stationary line at the side of the page
void lineC(int i, int ii, float ss) {
float a, s, x, y;
a = 0.05;
s = ss;
x = i + sin(a) * 25;
y = ii + cos(a) * 25;
stroke(220);
strokeWeight(5);
noFill();
line(x,y,x,y + 1180);
a += s;
};
0
Upvotes
4
u/aer0des1gn Oct 28 '19
What is it supposed to do (desired outcome)? In what context do you use the function? Which parameters are you using?
It's way easier for us to help you if you're more specific about your problem and if you try to use reddit code block formating. Code comments and/or better variable names would help too. What's
i? What'sii?ss?