[PD] Gridflow Font Fun!

Claude Heiland-Allen claudiusmaximus at goto10.org
Wed Jan 11 08:02:53 CET 2006


Hi all,

Here is an example of how to render text with background and foreground 
colours in Gridflow.

#image_to_font-help.pd is a tool for converting an image containing font 
characters (fixed width/height only!) to a format suitable for the font 
rendering patch.  Any black pixels (0 in all channels) will be output as 
1, all other pixels will be output as 0.  This makes using the font as a 
mask really easy.  To use the patch, adjust the values from right to 
left - clicking the load button will also process the image and save the 
generated font.

cm_#render_text-help.pd renders random characters with random background 
and foreground colours.  See inside cm_#render_text.pd to see how it is 
done.

The purpose of all this was to speed up some cellular automata stuff 
(ANSI graphics in a terminal just don't cut it for live visuals...) but 
that part isn't done yet.

Many thanks to matju for his help debugging my stupidities in #dataflow :)

Tested with a fresh Gridflow CVS checkout (with a fresh Gentoo ruby-cvs 
1.9.0-r3) and Miller's Pd 0.39-2.


Claude
-- 
http://claudiusmaximus.goto10.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gridflow-font-fun.png
Type: image/png
Size: 10370 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060111/66703a6c/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gridflow-font-fun.tar.gz
Type: application/gzip
Size: 11065 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060111/66703a6c/attachment.bin>


More information about the Pd-list mailing list