[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OpenClipart.org for ELPA?
From: |
Thien-Thi Nguyen |
Subject: |
Re: OpenClipart.org for ELPA? |
Date: |
Tue, 20 May 2014 20:52:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
() Mario Lang <address@hidden>
() Tue, 20 May 2014 17:05:54 +0200
We currently need XPM format, as %c-%p.xpm, where %c is either
black or white, and %p is one of pawn, knight, bishop, rook,
queen and king.
I just added package ‘xpm’ to ELPA. Maybe you could use it to
"compose" (algorithmically create) these pieces? Here's a snapshot
of wip gnugo-d0.el, which does just that, for (ELPA package)
‘gnugo’:
gnugo-d0.el
Description: application/emacs-lisp
The component forms are much simpler (lines and circles only) than
for chess, so artistry is not the draw (yuk yuk), here. Instead,
the Cool Hack IMHO is that the primary dimension (pixel length of a
square side) is computed based on window height, and moreover that
computation is user customizable (see ‘gnugo-d0-sizing-function’).
The end result is that the user can turn on the menu-bar (for
example) or resize the frame, and it's enough to type ‘i’ (to
toggle image-display mode) twice to have updated XPMs appear.
It's not real-time ("SIGWINCH" handler) resizing, but close enough
for me (and my slow computer :-D).
Also, it *almost* goes w/o mentioning: Generating XPM images on
the fly means less disk footprint, easier package management, no
search-path groveling, etc. That's regardless of resize support.
--
Thien-Thi Nguyen
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
=> nil
pgpR6RzVY3REM.pgp
Description: PGP signature