Examples
Open a drawing, copy its sketch and try changing it. Keep the index.html from Setup. The Guide explains the two ways to plot.
Lines and shapes
Start with Wave lines, then try the grids and curves. These sketches use plot.go().
Wave lines
Five wave lines inside a frame. Uses plot.go().
Molnár grid
Ten rows of nested squares. The top row is exact; each row down, the squares drift and turn a little more, until the bottom row has come apart. Uses plot.go().
Spirograph
Three hypotrochoids around one centre; the seed picks the gear ratios. Each curve is one unbroken polyline, with no pen lift within the curve. Uses plot.go().
Wave field
Two waves, one per axis, give every point a direction; sixty lines follow it until they leave the frame. The seed picks the wave shape: different fields from different seeds. Uses plot.go().
Placement and fills
Check the drawing on the bed preview. The calibration sheet compares marks made by your pen on your paper.
Plot preview
A hatched polygon and a circle. Check their placement on A4, then click the drawing to plot.
Calibration sheet
What your pen does on your paper: a 100 mm ruler, hatch and cross-hatch scales down to 0.8 mm, stipple densities, circles from 2 to 40 mm and line pairs from 0.3 mm apart. Plot it once per pen and keep the sheet. Uses plot.go().
One object at a time
This example requires EBB; DrawCore sessions are not supported. The Chaos game uses plot.sequence() to prepare each point after the previous one finishes.
Chaos game
The same halfway rule, repeated patiently, produces a Sierpinski triangle. Uses plot.sequence(), one point at a time.
Sampled waves
The Wave plot example records rows of points, shows their placement and waits for a click to plot.
Wave plot preview
Twenty-four rows sampled from a wave formula. Change the seed, check the bed preview, then click to plot.
The engine's own examples, without p5.js, are on the sister site: vanilla.penplotter examples, and its Possibilities page shows what a pen can do.
Pen up and down
Open the U/D sketch to check the pen lift with the board's existing servo settings. It sends no XY moves or new servo calibration values. Manual U/D operation was confirmed on the iDraw HSE / A2 on 2026-10-03; the pause before lifting at the end of a stroke remains under investigation.
More sketches to copy
Three p5 sketches using the index.html from Setup. Replace sketch.js with one of them.
Rings
let plot;
function setup() {
createCanvas(600, 600);
plot = createPlot({ paper: "A4", margin: 12 }); // fits the chosen sheet
noLoop();
}
function draw() {
background("#ffffff");
noFill();
plot.clear();
for (let d = 40; d <= 560; d += 20) plot.circle(300, 300, d);
plot.go(); // click the drawing to plot
}
A wave, twenty times
let plot;
function setup() {
createCanvas(600, 600);
plot = createPlot({ paper: "A4", margin: 12 });
noLoop();
}
function draw() {
background("#ffffff");
noFill();
plot.clear();
for (let row = 0; row < 20; row += 1) {
let points = [];
for (let x = 40; x <= 560; x += 4) {
points.push([x, 60 + row * 25 + 10 * Math.sin((x + row * 9) * 0.03)]);
}
plot.polyline(points);
}
plot.go();
}
Tone from lines
let plot;
function setup() {
createCanvas(600, 600);
plot = createPlot({ paper: "A4", margin: 12 });
noLoop();
}
function draw() {
background("#ffffff");
noFill();
plot.clear();
for (let i = 0; i < 8; i += 1) {
let x = 40 + i * 65;
let cell = [[x, 250], [x + 55, 250], [x + 55, 305], [x, 305]];
plot.hatch(cell, 6 - i * 0.65, QUARTER_PI); // spacing in mm on the bed
plot.polygon(cell);
}
plot.go();
}