0.1.11 • Published 10 years ago

infinite-turtles v0.1.11

Weekly downloads
6
License
ISC
Repository
github
Last release
10 years ago

Infinite turtles

Canvas turtle drawing library

Installation

Easy to install with NPM:

npm install infinite-turtles

How to use?

You can use it with AMD, CommonJS or globals.

var canvas = document.getElementById('myCanvas');
var turtle = new TURTLE.Turtle(canvas);

turtle.background('#000');

turtle.drawer.setX(130)
turtle.drawer.setY(130)

turtle.drawer.angle = Math.random()*360

turtle.lineWidth( 20);

turtle.color(new TURTLE.Color(255,100,0,1))

turtle.forward(10 )
turtle.turn(92)
turtle.forward(10 )
turtle.turn(-90)
turtle.draw(100)

Examples

More examples here

Example image

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago