Flip flopping, in all things.

Step one: write a code in Processing.

Screen Shot 2014-10-28 at 3.25.42 PM

 

Plain text is here:

//Import librarie
import org.philhosoft.p8g.svg.P8gGraphicsSVG;
//Define an SVG object
P8gGraphicsSVG svg;
void setup()
{
size(800,800);background(255);fill(40, 0, 0);noStroke();
svg = (P8gGraphicsSVG) createGraphics(width, height, P8gGraphicsSVG.SVG, “lindsaytest2.svg”);
beginRecord(svg);
println(“Use letter S to save image and letter Q to quit the sketch”);
}
void draw() {
stroke(0);line(mouseX,mouseY, width/9, height/7);
}
void keyPressed(){
  if(key == ‘s’)
  {
    svg.endRecord();
    println(“Saved.”);
  }
  else if (key == ‘q’)
  {
    svg.clear();
    exit();
  }
}
Step two:
When you get something workable, play, and draw pretty things with your mouse:
Screen Shot 2014-10-28 at 3.24.05 PM
Step three:
Then save as a SVG file. This was a giant problem for me, as when I saved as a SVG file, the image saved only as a single line. This was eventually resolved by sending the code to a friend whose computer magically saved it properly.
Step four: send to laser cutter and watch the laser’s progress.
Photo 28-10-2014 14 28 09
Step five: be really careful about this because the laser will likely go over the same spot over and over again, thereby setting your work on smoldering fire. Probably best to stop it when your lasered material starts to burn.
Photo 28-10-2014 15 12 26
Step six: back the smoldered material with some extra material. Enjoy the pretty organic lines that contrast with all of the straight geometric lines. Enjoy.

Leave a reply