User Tools

Site Tools


wiki:playground

Processing Examples

sin(n/20)

int n = 0;
size(500,200);
background(255,0,0);
stroke(0,255,0);
void draw(){
n++;
 line(n-1,(int)(100 + 100*sin((float)n/10)),n,(int)(100 + 100*sin((float)n/20)));
}

build with processing and processing.js

wiki/playground.txt · Last modified: 2010/09/20 15:11 (external edit)