# TurtleGFX - an open-source Turtle Graphics library for p5.js

**URL:** https://discourse.processing.org/t/turtlegfx-an-open-source-turtle-graphics-library-for-p5-js/22201
**Category:** Gallery
**Created:** [June 27, 2020, 5:38pm UTC](https://discourse.processing.org/t/turtlegfx-an-open-source-turtle-graphics-library-for-p5-js/22201 "2020-06-27T17:38:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![codeguppy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codeguppy/32/8322_2.png) [@codeguppy](https://discourse.processing.org/u/codeguppy)
#### Post date: [June 27, 2020, 5:38pm UTC](https://discourse.processing.org/t/turtlegfx-an-open-source-turtle-graphics-library-for-p5-js/22201/1 "2020-06-27T17:38:41Z")

</div>

Hello community,

I want to introduce you an open-source Turtle Graphics library for p5.js sketches.  
This library is great for both education and creative coding.

Library supports two modes:

- **Easy Mode** / **Default turtle mode**. This is the default mode. In this mode users can work directly with the global TurtleGFX API such as: forward(), left(), right(), etc.
- **Multiple turtles mode**. In this mode users can create multiple turtles on the screen ( let turtle = createTurtle(); turtle.forward(); etc. );

The API has been designed to be closely compatible with popular Turtle Graphics libraries from other languages, such as Python / Logo. In this way you can easily port programs from those languages to JavaScript.

Source code on GitHub:  
[https://github.com/CodeGuppyPrograms/TurtleGFX](https://github.com/CodeGuppyPrograms/TurtleGFX)

Online examples:  
[https://codeguppyprograms.github.io/TurtleGFX/](https://codeguppyprograms.github.io/TurtleGFX/)

 ![turtlegfx_open_source](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/2c56a227e4b8de630fa5efafdddcefb2ec14959f.png)

Note: This library is built-in into [codeguppy.com](https://codeguppy.com) coding environment… but this time was also released as a standalone library for p5.js sketches.

Happy Coding!

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [July 1, 2020, 11:17pm UTC](https://discourse.processing.org/t/turtlegfx-an-open-source-turtle-graphics-library-for-p5-js/22201/2 "2020-07-01T23:17:56Z")

</div>

Thank you so much for sharing this library – very cool, and very nice demo collection.
