Qualpal
Repositories

qualpal::ColorspaceRegion

C++ · cpp · 4.1.0

struct qualpal::ColorspaceRegion

Defines a rectangular region in a cylindrical color space.

This struct represents a 3D rectangular subset of a cylindrical color space (HSL or LCHab). Multiple regions can be combined to sample from arbitrary unions of subsets within the same color space. Regions may overlap, which will result in higher sampling density in overlapping areas.

Fields

h_lim

std::array<double, 2> h_lim

Hue range in degrees [-360, 360].

l_lim

std::array<double, 2> l_lim

Lightness range.

s_or_c_lim

std::array<double, 2> s_or_c_lim

Saturation/Chroma range.