top of page

RGB and HSB (HSV) - ​Derivation of equations.

Page: 1   2   3   4   5   6   7   8 

11.jpg

1. Saturation

2 copy.jpg

The saturation has a value between 0 and 1 and changes horizontally.
 

4.jpg

S = 

1 - S = 

1.jpg

Saturation remains constant vertically:

14.jpg

2. Saturation - When brightness is 1 (100%)

Step 1. Moving from a pure color (S: 1, B:1) to white (S: 0, B:1)

The distance between the RGB at saturation (S): 0 and saturation (S): 1 can be calculated as follows:

2.jpg
1.jpg
15.jpg

To predict the RGB code when the saturation (S) changes:

16.jpg
17.jpg

Step 2. MOVING FROM ALMOST WHITE (0 < S) TO PURE COLOR   

3.jpg

Calculation of R', G', B' (S:1,   B:1) by using eq.5:

1 copy.jpg
2.jpg

Step 3. EQUATION COMBINATION   

Plugging Eq.6 into the original equation (Eq.5)

4.jpg
3.jpg
22.jpg

3. Saturation: When brightness is ≤ 1

Displacement of saturation when brightness is equal or less than 100%.

1.jpg

Step 1 & 2. Determination of point C by using point A as a starting point:

23.jpg
8.jpg

Step 3. Determination of point D by using point C as a starting point  

- Moving from C to D can be obtained by combining equations 3 and 8.
- The answers tells which equation is needed to predict D from A.

15.jpg
Untitled-1.jpg

The expression:
(A) Is valid when the colors are within the same 
hue range.

(B) Predicts the RGB code for horizontal 
changes.

(C) B Initial = B Final

4.jpg

4. Saturation and brightness:
Horizontal and vertical changes

HOW TO PREDICT THE RGB FINAL REGARDLESS OF LOCATION 

27.jpg
28.jpg

The expression:
(A) Is valid when the colors are within the same
hue range.
(B) Predicts the RGB code for horizontal and 
vertical changes.

5.jpg

5. RGB prediction

CALCULATION OF RGB MAX, INTERMEDIATE AND MIN 

29.jpg
30.jpg
31.jpg
Untitled-1.jpg

The expression:
(A)  Is valid when the colors are within the same hue range.
(B)  Predicts the RGB code for horizontal and vertical changes. 

RGB and HSB (HSV) - ​Derivation of equations.

Page: 1   2   3   4   5   6   7   8 

bottom of page