Skip to content

Repository files navigation

Interactive Turtle

Turtle graphics in QtRuby and Hackety Hack style, with the help of KidsRuby, Turtle Wax and Hackety Hack code.

Could it be a replacement for turtle wax in KidsRuby?

For testing:

ruby interactive_turtle.rb

You can edit:

InteractiveTurtle.startdo# ...end

with the steps you want, and the scene might be used directly also:

require'Qt4'require'./turtle_scene'app=Qt::Application.new(ARGV)TurtleScene.startdobackgroundlavenderpensize2pencolorred36.timesdo36.timesdopencolorrandom_colorforward10turnright10endturnright10endendapp.exec

Dependencies

  • QtRuby
gem install qtbindings

Current Features

  • It can change pen color while drawing.
  • Start, stop and resume controls.
  • Different drawing speeds.

Drawbacks

  • It uses QTimer (less interval, more cpu load?).
  • Limited speed with large drawing.
  • It's a try (not yet completed).
  • Others!

About

turtle graphics in QtRuby and Hackety Hack style.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages