la086318@zach.fit.edu ( Mark R. Craig) (02/15/90)
I have a problem with using color in SUN's Pixrect/Pixwin language. I can
load the colortable fine, and also display a color for the background (of
the canvas). However, when I draw a line (for example), the line won't
show up. If I run the same program on a monochrome workstation, I can see
the line. Also, if I remove the loading of the colortable, I can see the
line. In one program I wrote, I set up the window dimensions of the canvas
and had the same problem. The solution was to take out the window dimensions,
ie. main_canvas=window_create(frame,CANVAS,0); works but
main_canvas=window_create(frame,CANVAS,WIN_X,0,WIN_Y,0,WIN_WIDTH,100,
WIN_HEIGHT,100,0) won't display the line (the line would be the
same color as the background (and no other changes to the program are made).
I have modified an existing SUN program to display color, and I have the
same problem. However, the code has two canvases - one that I have
successfully displayed color on and one that has the same problem as
mentioned above.
BTW, in the first program, I have only one colortable and only one canvas
that uses that colortable. Also, colortable size (ie. 16 vs 256 colors, etc)
doesn't make a difference.
Does anyone have any ideas about why this is happening?
Please respond to comp.graphics or email me at
la086318@zach.fit.edu
Mark R. Craig
Internet: la086318@zach.fit.edu
UUCP: ...!winnie!zach!la086318