[PLUGIN] Canvas

Post your completed addons to share with the community

Post » Sat Jan 25, 2014 9:56 pm

Found a bug, canvas paste property doesnt work with layers that have a tilemap plugin.
B
38
S
8
G
3
Posts: 438
Reputation: 6,869

Post » Mon Feb 03, 2014 1:51 pm

I have a a question,
When I try to create a circle on android with CocoonJS.
It doesn't draw the circle.
Is there anyway to fix this?

B
5
Posts: 14
Reputation: 526

Post » Thu Feb 06, 2014 2:06 pm

Anyone got an idea why floodfill works with project set to letterbox integer scale, but not with letterbox scale?
Image
B
59
S
21
G
10
Posts: 477
Reputation: 10,206

Post » Thu Feb 06, 2014 3:08 pm

What with radiant gradient ?

Canvas draw very small sircle with gradient.
B
55
S
19
G
8
Posts: 191
Reputation: 8,831

Post » Sun Feb 09, 2014 11:16 pm

Updated download in first post.
@Yann thanks for the fix.

@sheepy If you set webgl to off it should work. With webgl "on" the tilemap plugin doesn't do some canvas2d initiation because it doesn't need to. To fix I'd have to do the initiations from the canvas plugin which I don't want to do since it's redundant and hacky.

@Kurz fixed the gradient radial fill. I thought it was working before...

@Lof it shouldn't make a difference but keep in mind that the floodfill won't fill on transparent pixels.

@kappie7 I haven't used cacoonjs but does drawing a circle work in the browser?
B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Mon Feb 10, 2014 12:40 am

@R0J0hound
I figured as much, but it's not the problem, if i preview the same project with the same white-filled canvas and try to flood fill it, with letterbox scale i get a few seconds hangout and no fill, and with integer it does not hang and it fills fine.
I think the problem might be that when your not using integer the system canvas (not the plugin) size changes dynamically and to very odd resolutions.
i also noticed that if you scale in the layout it also stops working.
did you manage to use floodfill when previewing/exporting with Letterbox Scale?
Image
B
59
S
21
G
10
Posts: 477
Reputation: 10,206

Post » Mon Feb 10, 2014 12:40 am

btw: what was changed in the last update?
Image
B
59
S
21
G
10
Posts: 477
Reputation: 10,206

Post » Mon Feb 10, 2014 1:06 am

The update was just a few bugfixes.
* fix pasting tiledbg in webGL mode.
* fix radial gradient fill.


I tested flood fill and it did work in letterbox scale. When floodfilling the position needs to be an integer, it won't work with floating point positions.
B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Mon Feb 10, 2014 2:15 am

@R0J0hound

Thanks! i can't believe i didn't think of it, adding int solved it :)
Image
B
59
S
21
G
10
Posts: 477
Reputation: 10,206

Post » Mon Feb 10, 2014 7:44 am

Oh! Great! Thank you, radial gradient work !
B
55
S
19
G
8
Posts: 191
Reputation: 8,831

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest