function waveform1(var x)
{
return sinv(x*10)*20 + screen_size.y/2 - 10;
}
void main()
{
wait(1);
screen_color.red=1;
screen_color.green=1;
screen_color.blue=1;
while(1)
{
draw_line(nullvector,NULL,100);
var x; for(x=0;x<screen_size.x;x++)
{
var y=waveform1(x);
draw_line(vector(x,y,0),vector(255,255,255),100);
}
wait(1);
}
}