New Bitmap drawing extension
version 0.41
You can now draw ellipses, circles, rectangles, round rectangles, polygons and curved lines on Images.
The only difference with the normal draw is that you have now the option
draw: which draws the shape
fill : which fill with colour
both: which draws the shape and fill with colour
clear draw: which clears the outline
clear fill: which clears the 2d shape
clear both: which clears both.
The rotation depends on the point of origin.
How much it clears depends ont the opacity ( or alpha) of the stroke/filling options.
version 0.4[0.41]- two bugs corrected ( clear and rotation works with rectangles now) + blend mode for copy image on image
- plenty of drawing shapes blocks can now be rotated easily
- for plenty of drawing shapes choice of point of origin ( top left and centre)
- copy a rotated image on another
- plenty of new shapes ( arcs, rings, wedges, polygons, etc) Courtesy of @ETHproductions
version 0.3- clear options
version 0.2 - Colour the image
- add bezier line to polygon
To come features- Maybe more choices of point of origin
- Maybe this
http://blog.gskinner.com/archives/2008/05/drawing_curved_.htmlKnown Problems-Not a great smoothing
- With HTML5 ( problems with polygons and bezier lines)
should be okay in the next openFL
https://github.com/openfl/openfl/issues/888https://github.com/openfl/openfl/pull/911- HTML5 clear doesn't work
Thanks @Liberado for correcting the little bugs
