Closed bitaxis closed 12 years ago
From reading the docs, I expect the following code to work:
Turtle.draw do background rgb(255, 100, 50) end
However, the above does not work. Instead, it needs to be the following:
Turtle.draw do background Turtle.rgb(255, 100, 50) end
This is not very DRY-ish. So, please add #rgb as an instance method to Turtle class.
From reading the docs, I expect the following code to work:
However, the above does not work. Instead, it needs to be the following:
This is not very DRY-ish. So, please add #rgb as an instance method to Turtle class.