Created
January 19, 2014 15:07
-
-
Save yoamomonstruos/8506096 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 retweet_number = 20; | |
| int base_size = 20; | |
| void setup() { | |
| size(800, 800); | |
| background(0, 0, 0); | |
| smooth(); | |
| }; | |
| void draw() { | |
| background(0, 0, 0); | |
| for (int i = 1; i <= retweet_number; i = i + 1) { | |
| int increment = 100 / retweet_number; | |
| int alpha = increment * (retweet_number - i); | |
| if (i == 1) { | |
| fill(#FFFFFF); | |
| } | |
| else { | |
| noFill(); | |
| } | |
| stroke(255, 255, 255, alpha); | |
| strokeWeight(20); | |
| ellipse(width / 2, height / 2, base_size * i, base_size * i); | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment