Created
June 12, 2019 13:50
-
-
Save tai-cha/1a68585e61c00bd8cc65ed33648db9b5 to your computer and use it in GitHub Desktop.
ちょっとだけしかく、もうちょっとだけおおきいしかく、そのあとまる
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int count = 0; //カウント用変数 | |
void setup(){ | |
background(255,255,255); | |
size(480, 480); | |
stroke(0); | |
noFill(); | |
} | |
void draw(){ | |
count++; //drawが実行されるたびに+1する | |
background(255,255,255); //背景の再描画 | |
if(count < 100){ //もしカウントが100よりも小さければ | |
rect(240,240,100,100); //(240,240)に幅100高さ100の長方形を描く | |
}else if(count < 300){ //もしカウントが300よりも小さければ | |
rect(120,120,300,300); //(120,120)に幅300高さ300の長方形を描く | |
}else{ | |
ellipse(240,240,200,200); //(240,240)に幅200高さ200の楕円を描く | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment