-
-
Notifications
You must be signed in to change notification settings - Fork 5
Image for demo #2
Description
The image used for the logo is a bit blurry due to several factors:
- the resize from the main logo into the png in this lib is using (cubic?) interpolation, which makes all the pixels blurred.
- the mapping of screen pixels to image pixels isn't on an integer amount, so they leave random gaps between pixels
These can both be fixed to make a higher fidelity image (but it's a bit of work to get it perfect).
Here's a half baked attempt that works ok 160x40. I mainly just resized the logo using linear interpolation and redid the text as 30 pt size (the font is Silkscreen)) with a offset shadow layer that is the width of the character cell.
To get this perfect, you'd need to align the text so that the outlines of each letter start and end at a multiple of the braille character sizing (x = 2, y = 4) and aim to ensure that only a single color is in each 2x4 area. For the logo, it would probably require some pixel editing. The colors for things rendered in braille need to be a bit brighter also to avoid the background washing them out.
I noticed that rendering at double this pixel density (e.g. a 320x160 image instead of 160x40 here renders pretty slowly).
Also, there's a bug that causes a panic if the render area > buffer size (this is something in a lot of widgets, which I try to generally stamp out when possible).
If you want to start with something higher fidelity than the existing png, then take a look at the gimp xcf file in the website repo.
