GlimmerLabs / gigls

The Glimmer Improved Gimp Library for Scripting
2 stars 2 forks source link

rgb.rkt should be split into core functions and additional functions #7

Closed rebelsky closed 11 years ago

rebelsky commented 11 years ago

There are a few core functions (rgb-new, rgb-red, rgb-blue, and rgb-green) that really should be separate from the additional functions (rgb-bluer).

rebelsky commented 11 years ago

Note that we'll probably be implementing those in C anyway.

lewismar commented 11 years ago

Doing so would cause rgb.rkt and rgb-core.rkt to be interdependent, causing simplify.rkt to be slow (if it runs at all). May not be worth doing.

rebelsky commented 11 years ago

rgb-core.rkt should not need to depend on rgb.rkt, if you separate them right. rgb-new, rgb-red, rgb-blue, and rgb-green depend on nothing else other than each other.

And they are all implemented as the irgb functions right now.