Canvas floodfill

New releases and general discussions.

Post » Sun Jan 25, 2009 5:27 pm

well i find it kinda strange that theres no way to flood fill with the canvas, its a pretty basic drawing operation, and i think it should be implemented, along with a filled polygon tool.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Mon Jan 26, 2009 9:55 pm

bump
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Tue Jan 27, 2009 2:16 am

You can try "Clear to Colour" under the Canvas actions.
If it's just to start then the flood fill tool works in the canvas object picture editor.

Or. . just in case you meant something else: Layout Properties > Layout Colour
B
1
G
4
Posts: 3
Reputation: 1,031

Post » Tue Jan 27, 2009 2:51 am

you dont understand, i want to be able to draw lets say a circles then say fill at x,y and it will fill the inside of that circle or the outside depending if i filled inside or outside the circle

basically i want to be able to fill like you can in paint

(and do you seriously think i dont know about clear to colour :wink: )
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Tue Jan 27, 2009 3:58 pm

I couldn't imagine that you didn't know about any of that.
You were so incredibly vague at the outset. I felt I had to be very base in my answer to get you to expound on your post. I hope my little ruse de guerre hasn't offended.

Maybe, as you've now explained what you actually want, someone else will be able to help.
B
1
G
4
Posts: 3
Reputation: 1,031

Post » Tue Jan 27, 2009 6:06 pm

I knew exactly was he was looking for from reading his first post.
B
2
S
2
G
4
Posts: 136
Reputation: 1,722

Post » Tue Jan 27, 2009 9:46 pm

I'm just curious if you had any applications in mind for this. The only thing I can think of is making a more complete paint example.
B
3
S
2
G
4
Posts: 271
Reputation: 2,017

Post » Tue Jan 27, 2009 11:03 pm

well atm there is no way of creating filled shapes, besides pasting. id like to be able to make filled in shapes on the fly like how you can currently draw lines. the only way to do said things would be to have a polygon option, or have a polygon drawing action.

i find construct's canvas object is very lacking in the feature department, all you can really do is draw lines and paste atm.

the mmf overlay redux (same thing as canvas) is much more advanced, as you can give it N number of points, and then it will create a filled polygon for you. i would really like it if one of the devs made this feature availabe. (it also has a flood fill action) it has line thickness, and ellipse drawing with line thickness, all of these things can very much be used, and should be implemented in the very basic canvas object.

btw Euphronios dont wrry about it :D
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Wed Jan 28, 2009 1:20 am

Ah, now I'm starting to see applications for it ... games that draw all sorts of interesting geometric shapes that are player controlled in some interesting way ... they all seem to involve the sort of complex math that would be right up your alley. I guess I should have expected that all along.
B
3
S
2
G
4
Posts: 271
Reputation: 2,017

Post » Wed Jan 28, 2009 11:47 pm

I'm with quazi on this one
specially the polygons
also GM had textured polygons
gradient fills is another idea down the line

[quote="stainsor":1ao1w11d]games that draw all sorts of interesting geometric shapes that are player controlled in some interesting way[/quote:1ao1w11d]

not just random shapes, but objects like characters that deform according to physics (soft bodies)
you could make scenes that don't lose detail regardless of how much you zoom
smooth animations with any amount of frames but no extra ram usage
basically anything you could do with a vector graphics program
granted, yes, those types of things would take some major math
but I agree with quazi that without some extra features canvas's feature set seems pretty sparse
even for simpler applications. not that I'm complaining, construct freakin rocks, but I noticed the same thing

I was trying to make a vector graphics engine with gm, but the math to convert an arbitrary arrangement of points into a triangle list totally slowed down the interpreter after about 20 points.
and once I added bezier curves (even rough ones), it was clear it wasn't going to happen. construct is much faster, I'd love to have another crack at something like that
filled polygons + layers + opacity + pixel shaders = heaven
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests