PySoy: Atomics: Color Math
completed by: Nikolay Lazarov
mentors: Amaury Medeiros, Arc Riley, Tony Young, David Czech, Mayank Singh
Color math is currently implemented in Genie (libsoy) but in an extremely limited fashion - only between two colors and with a lot of redundancy.
Replace the current methods with a new constructor. This new constructor will take an operation (enum of ADD, SUB, MUL, DIV, MOD, OR, AND, NOT), a Color object for the left-hand side, a Color object for the right-hand side which may be NULL, and a float for the right-hand side in case the right-hand Color is NULL.
Collapse all current math functions into this one and update PySoy (the Python-side) to use this new API. When done, any Color should be able to be calculated against any other Color or number.
While working on this task you should join and remain in #PySoy on Freenode to get help, feedback, and guidance from mentors and other developers. Code updates which may affect your work are also announced here as they happen.
When you've done, commit your work and post the resulting changeset url to this task.