Created
February 9, 2015 22:44
-
-
Save jellea/498bf784b44f21a5edfe to your computer and use it in GitHub Desktop.
This file contains 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
import org.philhosoft.p8g.svg.P8gGraphicsSVG; | |
float r = 0; | |
void setup() | |
{ | |
size(1000, 1000); | |
noLoop(); // No animation | |
// Start the recording | |
beginRecord(P8gGraphicsSVG.SVG, "dots1.svg"); | |
} | |
void draw() | |
{ | |
background(#FFFFFF); | |
stroke(#000000); | |
for (int i=0;i<1600;i++){ | |
rotate(r); | |
float circle_size = random(5, 15); | |
ellipse(100 + r, 30, circle_size, circle_size); | |
r = r + 0.45; | |
println(r); | |
} | |
// End the recording, mandatory to save the file | |
endRecord(); | |
println("Done"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment