Thread View: comp.windows.x.intrinsics
1 messages
1 total messages
Started by Jeff Aitken
Wed, 27 Jan 1993 07:56
colormaps
Author: Jeff Aitken
Date: Wed, 27 Jan 1993 07:56
Date: Wed, 27 Jan 1993 07:56
35 lines
2077 bytes
2077 bytes
I apologize if I am posting this in the wrong group, but I've got
a few questions concerning a program I am working on. I have only
recently started to program in X, and one of my first attempts at a
program is one that draws several different types of fractals. I have
two basic problems at this point. First, I understand that it is
better to draw into a core widget than a label widget (I'm using the
Athena widgets, BTW), although I'm not so sure I understand why.
Second, I need to install a private colormap with 256 colors.
1. How do I draw into a core widget as opposed to a label widget?
My application works fine if I use the label, but I have been
unsuccessful drawing into the core widget and getting it to
display.
2. Why is it better to use a core than a label?
3. How do I install a private colormap? How do I choose which
colors go into it? And how do I draw in different colors once
I have done this?
I have numbers 2, 4, and 5 of the O'Reilly series on X, but there is
no clear explanation of any of these topics. I would appreciate any
help anyone can give. If you do not have time to help me out, perhaps
you could point me in the direction of more documentation or an
existing application that has _Easy to read_ code. I have tried
looking at a few programs, but as I am inexperienced with this stuff,
they are usually too complex for me to figure out what is what.
Again, thanks in advance for any help.
--
Jeff Aitken |
jaitken@csugrad.cs.vt.edu | Everyone is allowed to be stupid.
DEC User's Group Vice President | It's just that some people abuse
Va. Tech Computer Science Dept. | the priviledge.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads