To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 136
135  |  137
Subject: 
Re: [LDLite] Codes for new colors
Newsgroups: 
lugnet.cad
Date: 
Wed, 28 Oct 1998 12:49:03 GMT
Viewed: 
2842 times
  
Once upon a time, Paul Gyugyi <paul@gyugyi.com> wrote:

Lets see, I'll dig out my source here.
In file stub.c, in the routine translate_color(), the
color numbers 0-15, 17-23 and 25 are hard-coded to non-dithered
colors.  Colors 16 and 24 are of course "special" colors.
Colors 25-32 inclusive are as yet undefined.  Colors 33 to
64 are intended to be transparent colors,
although only 33,34,36,39,41,42,46,47,and 57 are defined.

What about colors 431, 495, and 382?  They appear to be rendering as
solid colors.

(Note to self: colors 256, 273, 290, 307, 324, 341, 358, 375, 392,
409, 426, 443, 460, 477, 494, and 511 look solid because they are
dithering a solid color with itself.)

Anything greater than 256 is dithered, with the
highcolor = (c-256)/16 and the basecolor = c & 0xf.
Upon looking at the code, if you specify a transparent
color for the highcolor, you will get the highcolor mapped
to "empty", in effect making a transparent version of the basecolor.
In other words, color (33*16+256)+5 is a transparent version of
color 5.  Not that I recommend that you do this, but that's
how it works.

Cool.  So you can dither the new colors with any of the 16 standard
solids, you just have to use the new color as the high-color.  So
orange-on-white is 671.

Steve



Message has 1 Reply:
  Re: [LDLite] Codes for new colors
 
Yep, I can confirm they render as as solid. I have no idea why, but I'll try to look into it. Personally I'd like to switch over to a name-based color specification, since I'm still not sure what color I should use for trans-flourescent-green. Then (...) (26 years ago, 28-Oct-98, to lugnet.cad)

Message is in Reply To:
  Re: [LDLite] Codes for new colors
 
Lets see, I'll dig out my source here. In file stub.c, in the routine translate_color(), the color numbers 0-15, 17-23 and 25 are hard-coded to non-dithered colors. Colors 16 and 24 are of course "special" colors. Colors 25-32 inclusive are as yet (...) (26 years ago, 28-Oct-98, to lugnet.cad)

10 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR