0

can anyone please tell me whats error in this ?

float n = 0; float c = 3; float start = 0; function setup() { createCanvas (400, 400); colorMode(HSB, 360, 255, 255); } function draw() { background(0); translate(width / 2, height /2); rotate(n * 0.3); for (int i = 0; i < n; i++) { float a = i * radians(137.5); float r = c * sqrt(i); float x = r * cos(a); float y = r * sin(a); float hu = i+start; hu = i/3.0 % 360; fill(hu, 255, 255); nostroke(); ellipse(x,y,4,4); } n += 5;

16th Feb 2017, 11:28 AM
saleem yousaf
saleem yousaf - avatar
1 Answer
0
I don't know about your code, but I can help. Did you make a button in HTML? If you didn't plan to do that, then why not run the functions?
16th Feb 2017, 12:18 PM
Mark
Mark - avatar