Skip to main content

Turtle graphics on the web.

Project description

Tortoise: turtle graphics on the web in Python

Cloning the repository (or retrieving corresponding ZIP file) will suffice to use this module. The file is an exemple of use of this library. Simply launch python from the root of the repository.

The module is also available from Pypi: Simply launch pip install tortoise.

You can also test the library with nothing to install by using

Available methods:

  • getAngle(): returns the current angel,
  • up(): put the pen up,
  • down(): puts the pen down,
  • setAutoDraw(value): the draw is automatically rendered each values movements; 0 for disabling; call draw() to render remaining movements,
  • setPosition(x,y): the turtle jumps, without drawing, to x, and y, relatively of the center of the drawing area,
  • forward(distance): the tortoise moves by the specified distance,
  • right(angle): the tortoise turns clockwise from angle degrees,
  • right(angle): the tortoise turns counter clockwise from angle degrees,
  • setColorRGB(r,g,b): sets the color of the pen following the RGB color model,
  • setColorHSL(h,s,l): sets the color of the pen following the HSL color model, (h: 0 - 360; s, l: 0 - 100%),
  • draw(); draws remaining movements.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tortoise-0.0.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

tortoise-0.0.2-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page