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 / 158
157  |  159
Subject: 
Re: How does the inliner tool handle the colours 16 and 24?
Newsgroups: 
lugnet.cad.dev
Date: 
Mon, 15 Feb 1999 16:16:41 GMT
Viewed: 
894 times
  
On Sat, 13 Feb 1999 21:59:26 GMT, Fredrik Glöckner
<fredrik.glockner@bio.uio.no> wrote:

How does the inliner tool handle the colours 16 and 24 in parts that are
inlined?

Ok, 16 is pretty obvious, simply substitute 16 with the colour of the
part to be inlined.  But 24?  Does the inliner need a table of the
conversions?  I'm just curious.

Yes, the table is hard-coded into the Inliner.  It uses just the
low-nybble of the color value to look up the value for color 24:

// iColorMain is the value for color code 16
// iEdgeColor will hold the value for color code 24
// Array is a function which returns a zero-based array of the
// specified elements.
iEdgeColor = Array(8, 9, 10, 11, 12, 13, 0, 8, 0, 1, 2, 3, 4, 5, 8,
8)(iColorMain And 15)

Steve



Message is in Reply To:
  How does the inliner tool handle the colours 16 and 24?
 
How does the inliner tool handle the colours 16 and 24 in parts that are inlined? Ok, 16 is pretty obvious, simply substitute 16 with the colour of the part to be inlined. But 24? Does the inliner need a table of the conversions? I'm just curious. (...) (26 years ago, 13-Feb-99, to lugnet.cad.dev)

2 Messages 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