Last active
June 12, 2019 13:14
-
-
Save tai-cha/cd3fb8ec212f8c3b4d6d4cbdca657052 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の長方形を描く | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment