google / clojure-turtle

A Clojure library that implements the Logo programming language in a Clojure context
Apache License 2.0
425 stars 41 forks source link

ensure turtle is opaque #17

Closed echeran closed 8 years ago

echeran commented 8 years ago

Currently, the turtle sprite that represents the turtle is drawn in the same color as the currently-set color. It's good to get feedback on the hue of the color, but because opacity determined by the alpha value should be ignored so that the turtle always remains easy to see.

It would be nice to have a method that takes a color vector of size 1, 3, or 4 and returns a vector [r g b 255], maybe called make-opaque.

Then, the get-turtle-sprite can be modified so that the opaque version of the current color can be used.