Great efforts were needed to write this to me:

float circle(float x, float y, float R)

{

float s = (x*x)+(y*y);

if (s>(R*R))

return 1;

else

return 0;

}

shader pattern(

float CircleR = 1,

float r = 1,

float fi = 1,

color Col = color(0.8, 0.0, 0.0),

float s = 0 [[int lockgeom = 0]],

float t = 0 [[int lockgeom = 0]],

color Background = color (0.2, 0.2, 0.2),

output color outColor = color(0.0, 1.0, 0.0),

{

float dek_x = r*cos(radians(fi));*

float dek_y = rsin(radians(fi));

float krug = circle((s-dek_x-0.5), (t-dek_y-0.5), CircleR);

outColor = krug;

}

To start, I want to make small circles draw on the trajectory of a large circle, but how do I implement this in cycle? So I can adjust the number of circles and steps?

I understand what needs to be done somethings like this:

for (int i = 0; i<=360; i = i+10)

but what i need to do with i?

thanks