Subject:
|
Re: [LDLite] Codes for new colors
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Wed, 28 Oct 1998 05:51:13 GMT
|
Viewed:
|
2403 times
|
| |
| |
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.
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.
Jacob Sparre Andersen wrote:
>
> Steve Bliss (blisses@worldnet.att.net) wrote:
>
> | Three of the new colors have two codes: one in the range 17-23,25, and
> | another in the dithered color range. The other five new colors only
> | have a single code in the 17-23,25 range. How about if we identified
> | a secondary code in the dithered color range for these other new
> | colors? These will be more backward-compatible with LDraw, and Paul
> | could (if willing) add support for these codes in LDLite as well.
>
> Makes sense. We should probably _define_ the selected colour numbers to
> identify those colours, no matter what colour the dithering actually results
> in.
>
> | 509 LtPurple
> | 378 Glow-in-the-Dark
> | 276 Purple
> | 405 PurpleBlue
> | 334,492 Orange (1)
>
> I will add these to the LDraw FAQ.
>
> Play well,
>
> Jacob
>
> ----------------------------------------------
> -- E-mail: Jacob.Sparre.Andersen@risoe.dk --
> -- Web...: <URL:http://hugin.risoe.dk/> --
> ----------------------------------------------
>
> LEGO: MOC+++c TO+++(6543) TC+++(8880) AQ+++ BV-- #++ S LS++ A-/+ YB72m
|
|
Message has 1 Reply: | | Re: [LDLite] Codes for new colors
|
| (...) 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 (...) (26 years ago, 28-Oct-98, to lugnet.cad)
|
Message is in Reply To:
| | Re: [LDLite] Codes for new colors
|
| Steve Bliss (blisses@worldnet.att.net) wrote: | Three of the new colors have two codes: one in the range 17-23,25, and | another in the dithered color range. The other five new colors only | have a single code in the 17-23,25 range. How about if we (...) (26 years ago, 27-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
|
|
|
|