Re: JSUI-MGraphics patch-a-day


Darwin Grosse

Here is the patch for November 8, 2011:

Fun with fonts, again – this time with a little rotation. Can you really make a flower that says “I am a flower”? Easy enough with Max.

You’ll notice in this Javascript that we call “identity_matrix()” after each rotation. That’s because the rotate function rotates the drawing area, and therefore needs to be reset after each path fill. Another option would be to rotate by the same amount for each iteration, but that would require a lot more thinking than simply resetting each time.

Enjoy!

Nov 8, 2011 at 10:57pm #214969