top of page

# RGB och HSB (HSV) - Härledning av ekvationer

# Sida: 1 â€‹â€‹2 â€‹â€‹3 â€‹â€‹4 â€‹â€‹5 â€‹â€‹6 â€‹â€‹7 â€‹â€‹8

# 1. C, X, 0 Diagram

# Calculation of gradient via HSB

# Gradient range:

The interval between brightness Initial and brightness final defines the gradient and can be written in equation 3 by replacing brightness final with:

Brightness (sp%): Initial → Final.

Gradient direction:

The direction of the arrow is equal to the direction of the gradient.

# Calculation of distance between color 1 and 2:

# Calculation of distance between color 1 and 2:

# Saturation and brightness change proportionally with change of hypotenuse. Calculation of Saturation when distance changes:

# Length change per %:

# Calculation of brightness when distance

changes:

Length change per %:

# 1. C, X, 0 Diagram

# Square gradient

How to calculate the square gradient for HSB color picker when Hue is fixed.

# Square gradient – Color picker Photoshop.

# Equation.10 from: RGB & HSB (HSV).

# The gradient is fixed from bottom to top and follows the same direction as how saturation and brightness are conventionally used.

'Brightness and saturation are expressed as percentage (0.01P) in this equation.

# Definition of arguments:

# The argument can be written as follows:

# The equation to calculate the square gradient will be:

# The designation S1, B1 means that the brightness and saturation of this color are 100% and is equal to 1 when normalized.

# Spectral gradient (0Ëš → 360Ëš)

bottom of page