I'm trying to find a way to convert any black image into a polygon shape.
The problem I'm trying to solve consists of two steps:
- Convert image into a polygon
- Fill the polygon with text
I'm struggling with the first step. As I haven't found any "converter" the only idea I am left with is to convert an image into an SVG format (if it isn't an SVG already), then fetch the vector data and paste it in right inside the CSS polygon shape (similarly as done with Raphaël.js).
Is this the only approach?
Constraints:
- I do not want to make tons of divs that will make up a shape.
- I do not want to use JavaScript for this task.
- If a shape is complex it must be a polygon.
Below are examples of what I'm trying to do (I'm interested only in complex polygons).
Any tips on types of approaches I should use?
Images taken from Adobe: http://adobe.github.com/web-platform/samples/css-exclusions/