Lab 0 - Task#2 : Subject & Topic [Math - Conic Section]
void setup(){
size( 200, 200 );
frameRate( 60 );
}
void draw(){
radius = 100 + 50*sin( frameCount / 16 );
X=100;
Y=100;
// Fill canvas grey
background( 100 );
// Set fill-color to blue
fill( 150 );
// Set stroke
stroke(255);
strokeWeight( 5 + sin( frameCount / 16) );
// Draw circle
ellipse( X, Y, radius, radius );
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น