GitXplorerGitXplorer
1

turtlejs

public
4 stars
1 forks
0 issues

Commits

List of commits on branch master.
Verified
87fe7f9753d0f2318a90533f4dbbdd5a07666134

Update README.md

11ntEgr8 committed 4 years ago
Verified
7e7369182a22824b8a6e9d40512cf44ad54c0e00

Update README.md

11ntEgr8 committed 5 years ago
Verified
b0d7c419058b1a27d7fcffdc586d70d53417c1a0

Update README.md

11ntEgr8 committed 5 years ago
Verified
1fa846ccb0a39456f36ae3dc16af731517f36a14

Update README.md

11ntEgr8 committed 5 years ago
Unverified
a67bdabcaa177642cfb415ecaa940f7c85adf400

Merge branch 'master' of https://github.com/1ntEgr8/turtlejs

11ntEgr8 committed 5 years ago
Unverified
67bc9c7f6f7a00630454a9b0993963092041d6e9

fixed a bug in getHeading

11ntEgr8 committed 5 years ago

README

The README file for this repository.

🐢 Turtle style graphics for the web!!

Turtles!?

Yep, you heard that right! turtlejs is a library that can bring your wildest turtle drawings/animations to life.

You can use this library to draw vector graphics. Some examples include fractals, L-systems, iterative patterns. Let your imagination go wilddd!!!

For more info on turtle graphics, visit https://en.wikipedia.org/wiki/Turtle_graphics

Installation

Using script tag

<script src="https://cdn.jsdelivr.net/gh/1ntEgr8/turtlejs/turtle.js"></script>

Using npm

npm install cute-turtle

Demos

Coming soon!

Usage

The library exposes the Turtle class, which contains all of the functions you need to start drawing.

Start off by creating a turtle.

const turtle = new Turtle(0, 0, 1000, 1000);

The Turtle constructor takes in an initial x-position, initial y-position, canvas height, and canvas width. The default values are 0, 0, 100, 100 respectively.

Take a look at the demos/ folder to learn how to use your turtle.

Have fun!