Hallo John,
we are doing this with a changed formular
to calculate the "Neutral Density" of a given color.
So higher value is darker color,
lower value lighter.
Give it a try!
-------------------------------
//Get Color
dim bBool As Boolean
dim cBase As Color
bBool=SelectColor(cBase, "")
if bBool=False then
Return
end if
//Basis ND´s
dim ND_Cyan, ND_Magenta, ND_Yellow As Double
ND_Cyan=0.61
ND_Magenta=0.76
ND_Yellow=0.16
//CMYK Values, 0.00 - 1.00
dim dColor_C, dColor_M, dColor_Y As Double
dColor_C=cBase.Cyan
dColor_M=cBase.Magenta
dColor_Y=cBase.Yellow
//NEUTRAL DENSITY
dim dNd_C, dNd_M, dNd_Y As Double
dNd_C=-1.7 * (Log( 1-dColor_C * (1 - Pow(10, -0.6*ND_Cyan)))/Log(10))
dNd_M=-1.7 * (Log( 1-dColor_M * (1 - Pow(10, -0.6*ND_Magenta)))/Log(10))
dNd_Y=-1.7 * (Log( 1-dColor_Y * (1 - Pow(10, -0.6*ND_Yellow)))/Log(10))
//ND of cBase
dim ND_Base As Double
ND_Base=dNd_C+dNd_M+dNd_Y
//
ListBox1.AddRow(Str(ND_Base))
-------------------------------
Regards
Thomas
-------- Original Message --------
Subject: Re: Thoughts on sorting colors (11-Apr-2007 19:47)
From: John McKernon <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
> > Your code is reasonable, you're just not aware of all of the issues
> > with colors.
> >
> > In a pure white color (maximum intensity), hue and saturation are
> > meaningless. Hence, if you have a color at just below maximum
> > intensity, hue and saturation are meaningful, but only a little.
>
> Ah yes, maybe I should add a little something to reduce the importance of
> hue and saturation as intensity increases...?
>
> > As an example, the colors (255,255,254) and (255,254,255) are pretty
> > much the same color, but have very different hue values. So, it's
> > normal to see the effect that you do.
>
> > As colors (in these cases) have three dimensions, sorting them into a
> > linear scale is problematic at best. What problem are you trying to
> > solve?
>
> I'm a lighting designer, and various manufacturers sell color filters in a
> wide range of colors. Every manufacturer's colors are slightly different,
> of
> course. I need to present several different brands of color in either the
> mfg's numeric order (which is easy), or in color order (which is hard). And
> of course, it would be best if I could combine several mfg's colors into a
> single chromatic "rainbow".
>
> This is something that's best done in a 3D format, but we lighting
> designers
> are used to viewing rectangular swatches, so that's what I need to present
> to them: Those swatches in a color order that makes sense, or at least as
> close to sensible as possible.
>
> To make matters worse, most mfg's start their swatch books with pink/red
> and
> work their way through amber, yellow, and green, finishing up in blue.
> Which
> doesn't coincide with the HSV color model, which puts blue in the middle
> instead of at one end.
>
> Such a puzzle!
>
> - John
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>