Processing JS
Processing JS
Out of context: Reply #1
- Started
- Last post
- 15 Responses
- bigtrickagain0
var h = 0;
var destinationx = 0;
var destinationy = 0;void setup()
{
size( 250, 250 );
frameRate( 20 );
strokeWeight( 2 );
colorMode( HSB, 359 );
};void draw()
{
var xOld = destinationx ;
var yOld = destinationy;
var i = 0;
stroke( h, 359, 359 );
destinationx = random( width );
destinationy = random( height );
for(i = 0; i < 10; i++) {
xstep = (destinationx - xOld) / 10;
ystep = (destinationy - yOld) / 10;ellipse( xstep * i + xOld, ystep * i + yOld, i +1, i+1);
}
h ++;
};- your turn!bigtrickagain
- Just tried your code. Very nice :)stewdio