magic/magic
Ahmed Nematallah 1dcd09e20c Update the postscript file to be able to support much more stipples
The postscript template had a hardcoded stipple length of 29, any more stipples would cause problems with a postscript parser. This was particularly a problem since the default mos.24bit.dstyle has 36 stipples already.

It also used a base-30 encoding.

I have updated the template to fix both issues, it now uses base-10 encoding, and can support up to 255 stipples (which is the maximum length allowed by the current approach of using fonts)

I was also wondering if it made more sense to encode this file directly into the C program as a literal, as half of it already is in the C program. (some "begin"s have an "end" in strings directly embedded in magic, so this file basically serves as a large string that has to be loaded each time from disk, while other parts of the string are stored normally in memory)
2026-05-19 12:22:37 -04:00
..
bitmaps Changed the PNG bitmaps to GIF, because PNG is not supported in 2020-02-26 10:10:55 -05:00
Makefile Add WASM entry point and Emscripten build wiring 2026-05-11 14:20:47 -04:00
magicTop.c magic/Makefile: MAGIC_BUILDDATE and inherit values when possible 2025-07-29 10:50:32 -04:00
magicWasm.c Add WASM entry point and Emscripten build wiring 2026-05-11 14:20:47 -04:00
magicps.pro Update the postscript file to be able to support much more stipples 2026-05-19 12:22:37 -04:00
proto.initrc Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
proto.magicrc.in Fixed a number of places in the Tcl code where "snap" had been used 2026-02-24 15:59:21 -05:00
symbol.map Extended the "property" command and modified the way that properties 2026-02-18 10:48:47 -05:00