Working on duplicating a design from 1869
publicdomainreview.org/collection/fancy-turning/
pdr-assets.b-cdn.net…g?fit=max&w=2400
Specimens of Fancy Turning
Edward J. Woolsey, 1869
Log in to post a comment.
// You can find the Turtle API reference here: https://turtletoy.net/syntax
// Released under the MIT licence
// https://mit-license.org/
// you can use this for commercial gain if you like eg you can sell artworks with this image.
Canvas.setpenopacity(1);
// Global code will be evaluated once.
const turtle = new Turtle();
const h = 0;
const k = 0;
const numberOfPoints = 36; //min=4 max=50 step=1
const circleRadius = 50; //min=10 max=60 step=1
const xOffset = 0; // //min=-10 max=20 step=1
const yOffset = -32; // // min=-160 max=20 step=1
const step = 1; //min=0.3 max=1.20 step=0.1
var x;
var y;
var degree = 0;
// Draw n points around a circle
for ( i = 0; i < numberOfPoints; i++) {
x = h + circleRadius * Math.cos(degrees_to_radians(degree));
y = k - circleRadius * Math.sin(degrees_to_radians(degree));
// turtle.circle(Pointradius)
group001(x,y);
degree = degree + 360 / numberOfPoints;
}
function degrees_to_radians(degrees) {
return degrees * (Math.PI / 180);
}
function group001(x,y){
var radius = 20;
turtle.penup();
turtle.goto(x + xOffset, y + yOffset);
turtle.pendown();
// turtle.circle(Pointradius)
for (x=1 ; x < 14; x=x+1){
turtle.circle(radius);
radius = radius + step;
}
}