Created
October 31, 2012 23:27
-
-
Save chikoski/3990616 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
void setup(){ | |
size(400, 400); | |
smooth(); | |
noStroke(); | |
background(0, 0, 0); | |
} | |
void draw(){ | |
fill(0, 0, 0, 32); | |
rect(0, 0, width, height); | |
fill(255, 192, 0); | |
ellipse(width / 2, height / 2 + sin(frameCount * 0.05) * 100, 20, 20); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment