RGB och HSB (HSV) - Härledning av ekvationer
Sida: 1 ​​2 ​​3 ​​4 ​​5 ​​6 ​​7 ​​8
1. Proportionalitet mellan RGB-färger.
The saturation has a value between 0 and 1 and changes horizontally.
S =
1 - S =
Saturation remains constant vertically:
1. Proportionalitet mellan RGB-färger.
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:
To predict the RGB code when the saturation (S) changes:
Step 2. MOVING FROM ALMOST WHITE (0 < S) TO PURE COLOR
Calculation of R', G', B' (S:1, B:1) by using eq.5:
Step 3. EQUATION COMBINATION
Plugging Eq.6 into the original equation (Eq.5)
1. Proportionalitet mellan RGB-färger.
Displacement of saturation when brightness is equal or less than 100%.
Step 1 & 2. Determination of point C by using point A as a starting point:
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.
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
1. Proportionalitet mellan RGB-färger.
HOW TO PREDICT THE RGB FINAL REGARDLESS OF LOCATION
The expression:
(A) Is valid when the colors are within the same
hue range.
(B) Predicts the RGB code for horizontal and
vertical changes.
1. Proportionalitet mellan RGB-färger.
CALCULATION OF RGB MAX, INTERMEDIATE AND MIN
The expression:
(A) Is valid when the colors are within the same hue range.
(B) Predicts the RGB code for horizontal and vertical changes.