Fork me on GitHub

Jonathan's Turtle Post

by Jonathan Pulliza

09 Sep 2013

Test text for this post.

Here is an image of my turtle example:

Turtle Example

I chose to change the color of the turtle and pen in increments of one using RGB. Here is the code:

import turtle

nancy = turtle.Turtle()
turtle.colormode(255)

for i in range(254)

  nancy.color((255-i,255-i,i),(255-i,255-i,i)
  nancy.forward(i*2)
  nancy.left(i*2)

turtle.done
MSIS student. Loves cooking, modular programming and LEGOs. Find Jonathan Pulliza on Twitter, Github, and on the web.
comments powered by Disqus