To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 7261
7260  |  7262
Subject: 
Help with Dithered Colors
Newsgroups: 
lugnet.cad.dev
Date: 
Sun, 26 May 2002 23:15:36 GMT
Viewed: 
733 times
  
When calculating a new color that is a dithered combination
of two of the "basic" colors ("0" through "15"), the two
"parent" colors are called "A" and "B" in this calculation:

NewColorCode = 256 + ( 16 x A ) + B

Using an idea originally posted by Steve Bliss
("http://news.lugnet.com/cad/dat/?n=9&t=f&v=a"),
I've created a palette of all the possible dithered colors:
"http://www.brickshelf.com/gallery/fwcain/lcad/palette3.jpg"

Note that the block of dithered colors is surrounded a frame
consistig of rows of the sixteen "basic" colors, to help in
determining the two colors being dithered.  The vertial column
is the "A" value, and the (bottom) horizontal column is the "B" value.

(I usually just start counting from the first dithered color, "256",
and count downwards [i.e., in the same column], incrementing by 16,
until I get to the correct row, and then count horizontally to
the color I want...)

Here's the LCAD data file, in case you want to see what the palette
looks like in the LCAD renderer of your choice:

"http://www.brickshelf.com/gallery/fwcain/lcad/palette3.dat"

Here's the palette rendered by two of the more common LCAD programs:

"http://www.brickshelf.com/gallery/fwcain/lcad/palette3_l3lab.jpg"
"http://www.brickshelf.com/gallery/fwcain/lcad/palette3_mlcad.jpg"

(If memory serves, I used POV-RAY and L3P to render the "basic"
color palette, above...)

Please LMKWYT!  ;-D
Thanks,
Franklin



1 Message in This Thread:

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

Custom Search

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