Canvas Plugin updated 2/9/2014
Download:
https://app.box.com/s/vj4l7k8upl5ywoch9zf1qg0nt3064mnt
Actions:
Paste Object
Resize canvas
Draw point
Draw line
Draw box
Fill color
Clear canvas
New R2:
[Fix] Canvas will now automatically redraw.
Actions:
+ Fill canvas with gradient
Path drawing actions:
+ Begin Path
+ Move to
+ Line to
+ Quadratic to
+ Bezier to
+ arc
+ Rectangle path
+ Set line Settings
+ Fill path
+ Draw path
Expressions:
+ rgbaAt
+ getImageUrl
New R3:
[Fix] pasting objects on scaled canvas'.
+ The draw line action now has a line width parameter [warning: may cause capx made with previous version not to open.
+ Draw circle action.
[Fix] When choosing colors the alpha value is in the range of 0 to 1, rgbaAt now returns a usable value.
New R4:
[Fix] Now works with WebGL. (thanks to Yann)
[Add] Additional hotspot locations top-right,top, etc...(thanks to Yann)
[Add] Paste Layer action(thanks to Yann)
[Change] Paste object/layer action now only paste visible objects.
New R5:
[Add] FloodFill. (Thanks to Pode)
One of the interesting features this has is the way colors are chosen.
You can use any of the following:
"black", "blue", "orange", "gold", etc...
"#00FF00"
"rgb(100, 10, 1)"
"rgba(20, 30, 40, 0.5)"
"hsl(120, 50%, 50%)"
"hsla(120, 50%, 50%, 0.5)"
Note: alpha values are from 0 to 1.
Another nice side effect of this plugin is you can now use all the effects that html5 has to offer.
http://dl.dropbox.com/u/5426011/plugins ... index.html
capx:
http://dl.dropbox.com/u/5426011/plugins/effectTest.capx
If anyone encounters any bugs or has a feature request for this let me know.
-cheersR0J0hound2014-02-09 23:17:12