Grid 001

Grid 001

Log in to post a comment.

// Uses grid code from: Lissajous curves. Created by Reinder Nijhoff 2018
// @reindernijhoff

// 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.

// https://turtletoy.net/turtle/54425313cc#

const count = 20; //min=4, max=20, step=1
const steps = 60;
const turtles = [];
const s = 167;//min=1, max=200, step=1
const r = 11 //min=1, max=100, step=1
const yOffset = -1.8 //min=-20, max=20, step=0.1

for (let x=0; x<count; x++) {
    for (let y=0; y<count; y++) {
        turtles.push(new Turtle((x + .5) * s/count - s/2, (y + .9 + yOffset) * s/count - s/2));
    }
}

function walk(i) {
    for (let x=0; x<count; x++) {
        for (let y=0; y<count; y++) {
            turtles[y+x*count].circle(r);
        }
    }
return i < steps;
}