Skip to content

Instantly share code, notes, and snippets.

@jellea
Created February 9, 2015 22:44
Show Gist options
  • Save jellea/498bf784b44f21a5edfe to your computer and use it in GitHub Desktop.
Save jellea/498bf784b44f21a5edfe to your computer and use it in GitHub Desktop.
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