r/creativecoding • • 3d ago

made an auto character selector using similar shape bitmap logic for drawing raster within my text painter program. timelapse of me painting with it.

basically the idea was you can paint detailed in a sub cell detail way so i could think less about placing text while im initially just getting a drawing oriented. this felt much closer to painting and drawing in traditional drawing programs to me, so i think its a win overall. :3

47 Upvotes

6 comments sorted by

2

u/CameronClarkFilm 3d ago

Very cool! Is the tool shareable? I’d love to see how it feels.

I have some similar logic in my tool at ascii-motion.app with the bezier pen tool, but adding it to a brush tool is great idea!

3

u/jkennedy1998 3d ago

it is!
https://www.reddit.com/r/Jartanddesign/comments/1wh4s7a/thaumpainter_available_free_for_linux_windows_and/

i built it for multiple typefaces as well, though i tuned its behavior on thaum-mono

2

u/SamiAlhammadi 1d ago

Painting below the cell size and letting it pick the character is a really nice idea. What happens when two characters fit about equally well? I'd guess they could flip back and forth while you drag.

1

u/jkennedy1998 1d ago

it just settles on the first and saves that as the character, not the lower resolution for long term things. when it needs to grab alpha again for the character to additive draw or subtractive draw it pulls from the character that is already there so it doesn't need to store the detailed drawing. kind of like how jpeg compression works with generalized cells.

for the thaum mono font its pixelated anyway so the 12x16 sample of the rasterized font is the 12x16 grid that i hand pixeled that font at. since its the native resolution there are not characters that are equal because each character is different.

2

u/SamiAlhammadi 12h ago

Settling on the first match and reading the character back instead of storing the detailed drawing is a neat trick. The JPEG comparison makes sense. And since the font is hand pixeled on the same 12x16 grid, ties can't really happen. Thanks for explaining.