Sometimes when I'm bored, I take some text and fill the "holes" in the letters. But isn't filling the holes the most boring thing you can do? I think we should automate it, so we could use our time better.
Standard code-golf rules apply.
Input
A string containing sequence of alphanumeric characters (a-z, A-Z, 0-9) and spaces.
Output
Image containing string rendered and holes on it filled. You can use any human readable font as long as it still requires filling the holes. You can either save image to file i.png
(in png format) or just display the image.
Image properties:
- Black text
- White or transparent background
- Padding:
- The dimensions of the image can be maximum two times the dimensions of the text
- Padding should be same color as background, either white or transparent
Example
Input: Example text