- Home /
Creating 2d shapes with code and filling them
In Using vectrosity to make 2D shapes programmatically and modify them. It works great. However vectrosity does not support filling shapes with materials, colors or textures. Are there any suggestions to how this could be done?
Answer by VesuvianPrime · Feb 09, 2015 at 09:55 PM
My approach would be to fill the shape with a Mesh to draw the material.
The following outlines an approach to filling 2D shapes with the scanline method:
http://stackoverflow.com/questions/25964313/algorithm-to-fill-in-a-closed-2d-curve
O$$anonymous$$! This is interesting. But i did not know its possible to crete a mesh from sets of points. I will google it.
Your answer
Follow this Question
Related Questions
Texture flickering (sniper scope reticle) 0 Answers
Distribute terrain in zones 3 Answers
How to break a sprite into shapes with script 1 Answer
Screen Points to construct a Rect (Not axis aligned) 0 Answers
Equivelant of GUI.DrawSprite() ? 0 Answers