general way for using turtle graphics in ruby
-
11-06-2021 - |
Pergunta
Is there a general way to use turtle graphics in ruby like this?
require 'turtle'
Turtle.draw do
pencolor blue
forward 100
end
I tried hackety-hack, which is nice but too buggy (crashes almost every minute). I am also trying rdf-turtle, but I have no idea how to draw a single line. Could somebody help me?
Solução
It looks like rdf-turtle is just a library for parsing the RDF format and not for drawing anything.
If you want to draw something with turtle in Ruby, checkout Kidsruby. It comes with a GUI and a turtle module.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow