nasser / zajal

Experimental creative coding framework
MIT License
161 stars 10 forks source link

color method should return current color #48

Closed nasser closed 12 years ago

nasser commented 13 years ago
color 128, 64, 32
color # => [128, 64, 32, 255]

color 32
color # => [32, 32, 32, 255]

color :blue
color # => [0, 0, 255, 255]

when color classes are done, this should return a color class instance

judy-zz commented 12 years ago

Do you still want to return an array of RGBA values? Or with the new color classes, could we instead return the exact instance of the color being used, like a Color::Hsv object?

nasser commented 12 years ago

6460d19d80 builds on your implementation to return the actual color object. I'm happy with that for now.