Laser Cutting – Pattern

For my laser cut pattern, I created a triangular pattern with negative space, leaving an interesting pattern on the paper. Here is the code for my pattern.

Code:

import processing.pdf.*;
void setup() {
size(1000, 1000, PDF, “triangles.pdf”);
background(255);
}

void draw() {
for (int y = 0; y <= height; y += 64) {
for (int x = 0; x <= width; x += 76) {
noStroke();
fill(0);
triangle((x+10)-45, (y+65)-15, (x+38)-45, (y+10)-15, (x+66)-45, (y+65)-15);
triangle((x+76)-45, (y+65)-15, (x+48)-45, (y+10)-15, (x+104)-45, (y+10)-15);
}
}
println(“Finished.”);
exit();
}

This is the PDF output of the code!

When laser cutting, I had some issues printing as the paper was thicker than regular printing, so I had to print twice. The process didn’t take too long as I was cutting paper.

Here is the final design output on my paper!

Leave a reply

Skip to toolbar