nasser / zajal

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

Better defaults implementation #46

Closed nasser closed 12 years ago

nasser commented 13 years ago

When methods like background, color, line_width and so on are run during the setup event, their behavior should be different than in other events. Instead of setting the current color, for example, color should change the default color that is reset at the start of each frame. This results in the most intuitive user experience.

The current implementation of this logic is a mess and should be improved. Two possible approaches are:

The second approach is the cleanest.

nasser commented 12 years ago

The current implementation is hacked together but works well enough for 0.3.x. This will be fixed for the 0.4 rewrite.

nasser commented 12 years ago

Fixed in 42cebaffec2ad46f2397bbcdcc16f2f89bae1c02