Flip Flop

Things you will need:

Processing Program

plexi glass

laser cutter

 

1) make the processing sketch, The code I used is below:

import org.philhosoft.p8g.svg.*;
P8gGraphicsSVG svg;
float noiseCounterA = random(200);
float noiseCounterB = random (200);
float x = 0;
float y = 0;

void setup() {
svg = (P8gGraphicsSVG) createGraphics(width, height, P8gGraphicsSVG.SVG, “motifG.svg”);
beginRecord(svg);
println(“Use letter S to save image and letter Q to quit the sketch”);
size(1000, 1000);
x= 100;
y= 100;
}
void draw () {

noFill ();
stroke(0, 50);
y = 1000 * noise(noiseCounterB);
x += 10 * noise(noiseCounterA) -2;
ellipse (x, y, y * .1000, x*.1000);
//increment counters
noiseCounterA += .01;
noiseCounterB += .0023;
}
void keyPressed()
{
if (key == ‘s’)
{
svg.endRecord();
println(“Saved.”);
}
else if (key == ‘q’)
{
svg.clear();
exit();
}
}

 

2) Save it as an SVG file:

Screen Shot 2014-12-19 at 12.34.48 PM

 

3) Change the stroke to blue(RGB), and remove any fill color. Send to the laser cutter.

IMG_2259

IMG_2263

Leave a reply