From: Oliver Scholz <alkibiades@gmx.de>
Subject: Re: gamegrid.el and some games
Date: Wed, 18 Sep 2002 17:04:41 +0200 [thread overview]
Message-ID: <m3znufnxti.fsf@ID-87814.user.dfncis.de> (raw)
In-Reply-To: E17rKfS-0004Ei-00@fencepost.gnu.org
[-- Attachment #1: Type: text/plain, Size: 884 bytes --]
Richard Stallman <rms@gnu.org> writes:
> I don't know anything about Emacs' internals. Does an Emacs that
> supports images always support colours, too?
>
> Emacs always supports colors, but the display in use could be monochrome.
> Use display-color-p to test that.
Pardon my ignorance: what happens with colour images on monochrome
displays? Are they displayed in shades of gray if
`display-grayscale-p' returns nil? If so, the conversion of XPM to
PPM would probably do for such displays.
Are there any displays for which `display-images-p' returns t, but
both `display-color-p' and `display-grayscale-p' return nil? Is it
necessary to make sure that gamegrid.el DTRT on such displays?
If not, I suggest to simply convert XPMs via some Lisp functions if
Emacs is compiled without XPM-support on the C-level. I have written a
prototype[1] for this. What do you think?
[-- Attachment #2: xpm.el --]
[-- Type: application/emacs-lisp, Size: 9438 bytes --]
[-- Attachment #3: Type: text/plain, Size: 928 bytes --]
-- Oliver
PS: Could someone who has an Emacs compiled with image-support, but
without XPM-support check if the following gives a coloured image for
him or her, please?
(require 'gamegrid)
(insert-image
(xpm-convert-string gamegrid-xpm
'((col1 . "Blue")
(col2 . "Red")
(col3 . "Green"))
:ascent 'center))
Footnotes:
[1] I have not read the specification for the XPM-format, yet. (My
ghostscript is b0rked.) My knowledge of the format is based on a few
example XPMs.
Furthermore I am just an amateur. I would appreciate it, if an
experienced programmer could have a quick glance over my code and tell
me if the approach is clean/unclean/silly/sound.
And finally, if you like the idea, this should probably go into
images.el, not into gamegrid.el, and hook there into the functions to
create images.
--
Jour du Génie de l'Année 210 de la Révolution
Liberté, Egalité, Fraternité!
next prev parent reply other threads:[~2002-09-18 15:04 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-13 10:55 gamegrid.el and some games Francesco Potorti`
[not found] ` <87sn0eglkp.fsf@bundalo.shootybangbang.com>
2002-09-13 13:09 ` Francesco Potorti`
2002-09-14 17:35 ` Richard Stallman
2002-09-13 14:16 ` Oliver Scholz
2002-09-13 17:32 ` Francesco Potorti`
2002-09-13 23:11 ` Oliver Scholz
2002-09-14 1:03 ` Alex Schroeder
2002-09-15 1:50 ` Richard Stallman
2002-09-16 12:11 ` Oliver Scholz
2002-09-19 15:22 ` Luke A. Olbrish
2002-09-20 3:44 ` Richard Stallman
2002-09-15 1:51 ` Richard Stallman
2002-09-16 11:58 ` Oliver Scholz
2002-09-16 19:27 ` Richard Stallman
2002-09-16 12:01 ` Oliver Scholz
2002-09-16 19:27 ` Richard Stallman
2002-09-16 23:13 ` alkibiades
2002-09-17 15:53 ` Richard Stallman
2002-09-17 16:12 ` Gerd Moellmann
2002-09-18 15:04 ` Oliver Scholz [this message]
2002-09-18 16:03 ` Oliver Scholz
2002-09-19 11:45 ` Eli Zaretskii
2002-09-19 15:17 ` Richard Stallman
2002-09-20 0:26 ` Oliver Scholz
2002-09-20 9:40 ` Miles Bader
2002-09-20 12:01 ` Oliver Scholz
2002-09-20 10:12 ` Francesco Potorti`
2002-09-20 1:18 ` Miles Bader
2002-09-20 9:20 ` rms
2002-09-20 11:41 ` Oliver Scholz
2002-09-20 6:54 ` Gerd Moellmann
2002-09-14 17:35 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3znufnxti.fsf@ID-87814.user.dfncis.de \
--to=alkibiades@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.