[PLUGIN] Canvas

Post your completed addons to share with the community

Post » Sun Oct 28, 2012 7:21 pm

@Animmaniac
It's not possible at the moment. The plugin uses the non webgl renderer even with webgl enabled. I need to re-write a good chunk of the plugin to use webgl to make it work, but I currently don't have an eta for that.

@bjadams
I did a change to the plugin after I made the example. Try the capx again I fixed the events.
B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Sun Nov 11, 2012 12:42 pm

Hey, how can i use the canvas plugin to draw a line in a trajectory like basketball launch?
i think is something like bezier curve but im not sure how to use it.
thanks
B
16
S
3
G
1
Posts: 85
Reputation: 2,260

Post » Mon Nov 12, 2012 12:21 pm

hey guys. great plugin thanks!

i have the following event
when left click is down,
Draw point (Mouse.X, Mouse.Y)

is there a way to make the points connect smoothly? like how it would in microsoft paint? right now i just have seperated dots forming a line.
B
4
Posts: 15
Reputation: 355

Post » Tue Nov 13, 2012 6:46 pm

Hi
I wonder if anyone else has this problem.
using Canvas.rgbaAt(x,y) in Chrome on a green canvas gives (0,255,0,1) as you would expect. However in Firefox i get (137,249,32,1). Any ideas why.
Thanks
B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013

Post » Tue Nov 13, 2012 11:06 pm

Hello, i would like to know how to make animated color with fill canvas

i made 3 variables, R, G and B, each one add 1 value per 0.5 second.

Then Every Tick, Fill Canvas with Color are "rgb( 'R' , 'G' , 'B' )" and it didn't work, do you have idea how to fix it?

Thanks!
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Tue Nov 13, 2012 11:17 pm

Nevermind, it worked

"rgb( "& R &" , "& G &" , "& B &" )"
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Wed Nov 14, 2012 11:47 am

[QUOTE=johnELLIS] hey guys. great plugin thanks!

i have the following event
when left click is down,
Draw point (Mouse.X, Mouse.Y)

is there a way to make the points connect smoothly? like how it would in microsoft paint? right now i just have seperated dots forming a line.
[/QUOTE]

Between every tick, remember the previous mouse position and draw a line from there to current position.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Wed Dec 05, 2012 4:51 am

hey thanks for the tip!

but im having trouble representing the mouse's previous (x,y)
B
4
Posts: 15
Reputation: 355

Post » Wed Dec 05, 2012 4:53 am

[QUOTE=Mipey] [QUOTE=johnELLIS] hey guys. great plugin thanks!

i have the following event
when left click is down,
Draw point (Mouse.X, Mouse.Y)

is there a way to make the points connect smoothly? like how it would in microsoft paint? right now i just have seperated dots forming a line.
[/QUOTE]

Between every tick, remember the previous mouse position and draw a line from there to current position.[/QUOTE]

hey thanks for the tip!

but im having trouble representing the mouse's previous (x,y)
B
4
Posts: 15
Reputation: 355

Post » Thu Dec 13, 2012 3:09 pm

Could canvas load image from url ?

I had not found action in canvas directly. (On solution is to load image into a sprite, then paste it into canvas. )
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests