Re: New mgraphics JSUI scripts

Forums > Javascript > New mgraphics JSUI scripts
November 30, 2011 | 5:48 am

The color settings are single-state, so each time you change it you are changing the colors for the next drawing function. Instead, you need to change a color, draw some portion, change a color, draw the next portion. It helps to save()/restore() after each section so you don’t have to undo any transformations that you might have done along the way.

Hope that helps!