Processing JS
Processing JS
Out of context: Reply #9
- Started
- Last post
- 15 Responses
- stewdio0
var r = 0;
var d = 0;
var h = 0;
void setup()
{
size( 250, 250 );
frameRate( 60 );
strokeWeight( 2 );
colorMode( HSB, 359 );
background( 0, 0, 0 );
};
void draw()
{
background( 0, 0, 0, 10 );
stroke( h, 359, 359 );
noFill();
r = Math.sin( radians( h )) * 120;
x = ( width / 2 ) + Math.cos( radians(d) ) * r;
y = ( height / 2 ) + Math.sin( radians(d) ) * r;
ellipse( x, y, abs( r ), abs( r ));
d += 2;
h ++;
};