# qualpal::ColorspaceRegion

C++ · 4.1.0

[Source](<https://github.com/jolars/qualpal/blob/887b793a3795d298a62e49356a72314ce59dab0d/include/qualpal/qualpal.h>)

```cpp
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. 

<a id="cpp-fields"></a>

## Fields

<a id="cpp-e05551293f80dc1a488a71108adf6fbc615e039ca6c713a8359c60a5eb766f40"></a>

### `h_lim`

```cpp
std::array<double, 2> h_lim
```

[Source](<https://github.com/jolars/qualpal/blob/887b793a3795d298a62e49356a72314ce59dab0d/include/qualpal/qualpal.h>)

Hue range in degrees \[-360, 360\]. 

<a id="cpp-066c0642c24ab4f99c21e394a2c97772a85efb4f70f789751e0f00ae11a47253"></a>

### `l_lim`

```cpp
std::array<double, 2> l_lim
```

[Source](<https://github.com/jolars/qualpal/blob/887b793a3795d298a62e49356a72314ce59dab0d/include/qualpal/qualpal.h>)

Lightness range. 

<a id="cpp-0f29aa83845523c5de9a1704171a3700d316f1efe7a3fc066df1be865fbf78cf"></a>

### `s_or_c_lim`

```cpp
std::array<double, 2> s_or_c_lim
```

[Source](<https://github.com/jolars/qualpal/blob/887b793a3795d298a62e49356a72314ce59dab0d/include/qualpal/qualpal.h>)

Saturation/Chroma range.
