Problem with RGB
Posted on 2002-06-13
Here is my Problem... to understand me better, furst put this code on a Command1_Click event:
Private Sub Command1_Click()
Me.Line (0, 0)-(1000, 1000), &HFF0000, BF
Me.Line (1000, 0)-(2000, 1000), &HFF2020, BF
Me.Line (0, 1000)-(1000, 2000), &HBF0000, BF
Here, as you see, I paint 3 boxes.
First is blue,
second is blue, but lighter,
third is blue, darker.
If You calculate the sum of RGB for the lighter and the darker, their absolute values of (difference from the blue) are equal . But... it does not seem so to my eyes.
The problem is, that the lighter does not seem to be as bright, as the darker is dark. :-(
Let's say I'm trying to draw 3d borders around a box.
So, do you have any idea how can I "Shift" some color in both directions (ligter, darker), so the visual perception is ok?
Or is it that just my display is not ok? :-)))