0.1.11 • Published 9 years ago

infinite-turtles v0.1.11

Weekly downloads
6
License
ISC
Repository
github
Last release
9 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

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago