neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived > Class Template Reference

#include <color.hpp>

Inheritance diagram for neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >:
neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived > neolib::math::basic_vector< T, _Size, Type >

Public Types

typedef uint32_t argb
 
typedef base_type abstract_type
 
typedef BaseComponent base_component
 
typedef ViewComponent view_component
 
typedef color_return_type_cracker< self_type, derived_type >::return_type return_type
 
- Public Types inherited from neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >
typedef base_type abstract_type
 
typedef BaseComponent base_component
 
typedef ViewComponent view_component
 
typedef color_return_type_cracker< self_type, derived_type >::return_type return_type
 
- Public Types inherited from neolib::math::basic_vector< T, _Size, Type >
typedef self_type abstract_type
 
typedef Type type
 
typedef T value_type
 
typedef basic_vector< value_type, _Size, Type > vector_type
 
typedef uint32_t size_type
 
typedef std::array< value_type, _Sizearray_type
 
typedef array_type::const_iterator const_iterator
 
typedef array_type::iterator iterator
 

Public Member Functions

 basic_rgb_color ()
 
 basic_rgb_color (const self_type &aOther)
 
 basic_rgb_color (const vec3 &aBaseNoAlpha)
 
 basic_rgb_color (const vec4 &aBase)
 
 basic_rgb_color (view_component aRed, view_component aGreen, view_component aBlue, view_component aAlpha=0xFF)
 
 basic_rgb_color (int32_t aRed, int32_t aGreen, int32_t aBlue, int32_t aAlpha=0xFF)
 
 basic_rgb_color (uint32_t aRed, uint32_t aGreen, uint32_t aBlue, uint32_t aAlpha=0xFF)
 
template<typename T >
 basic_rgb_color (T aRed, T aGreen, T aBlue, T aAlpha=1.0, std::enable_if_t< std::is_scalar_v< T > &&!std::is_same_v< view_component, T >, sfinae >={})
 
 basic_rgb_color (argb aValue)
 
self_typeoperator= (const self_type &aOther)
 
self_typeoperator= (const base_type &aOther)
 
view_component red () const
 
view_component green () const
 
view_component blue () const
 
template<typename T >
red () const
 
template<typename T >
green () const
 
template<typename T >
blue () const
 
return_typeset_red (view_component aRed)
 
return_typeset_green (view_component aGreen)
 
return_typeset_blue (view_component aBlue)
 
template<typename T >
return_typeset_red (T aRed)
 
template<typename T >
return_typeset_green (T aGreen)
 
template<typename T >
return_typeset_blue (T aBlue)
 
return_type with_red (view_component aRed) const
 
return_type with_green (view_component aGreen) const
 
return_type with_blue (view_component aBlue) const
 
template<typename T >
return_type with_red (T aRed) const
 
template<typename T >
return_type with_green (T aGreen) const
 
template<typename T >
return_type with_blue (T aBlue) const
 
argb as_argb () const
 
hsl_color to_hsl () const
 
hsv_color to_hsv () const
 
scalar intensity () const
 
bool similar_intensity (const self_type &aOther, scalar aThreshold=0.5) const
 
return_type mid (const self_type &aOther) const
 
return_type mix (const self_type &aOther, scalar aValue) const
 
bool light (scalar aThreshold=0.50) const
 
bool dark (scalar aThreshold=0.50) const
 
return_typelighten (view_component aDelta)
 
return_typedarken (view_component aDelta)
 
return_type lighter (view_component aDelta) const
 
return_type darker (view_component aDelta) const
 
return_typeshade (view_component aDelta)
 
return_typeunshade (view_component aDelta)
 
return_type shaded (view_component aDelta) const
 
return_type unshaded (view_component aDelta) const
 
return_type monochrome () const
 
return_type same_lightness_as (const self_type &aOther) const
 
return_type with_lightness (scalar aLightness) const
 
return_type inverse () const
 
return_typeoperator+= (view_component aDelta)
 
return_typeoperator-= (view_component aDelta)
 
return_type operator~ () const
 
bool operator== (const self_type &aOther) const
 
bool operator< (const self_type &aOther) const
 
auto operator<=> (const self_type &aOther) const =default
 
std::string to_string () const
 
std::string to_hex_string () const
 
view_component alpha () const
 
template<typename T >
alpha () const
 
return_typeset_alpha (view_component aAlpha)
 
template<typename T >
return_typeset_alpha (T aAlpha)
 
return_type with_alpha (view_component aAlpha) const
 
template<typename T >
return_type with_alpha (T aAlpha) const
 
return_type with_combined_alpha (view_component aAlpha) const
 
template<typename T >
return_type with_combined_alpha (T aAlpha) const
 
- Public Member Functions inherited from neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >
 basic_color (const basic_vector< BaseComponent, ColorComponentCount > &aNoAlpha)
 
 basic_color (const self_type &aOther)
 
self_typeoperator= (const self_type &aOther)
 
view_component alpha () const
 
template<typename T >
alpha () const
 
return_typeset_alpha (view_component aAlpha)
 
template<typename T >
return_typeset_alpha (T aAlpha)
 
return_type with_alpha (view_component aAlpha) const
 
template<typename T >
return_type with_alpha (T aAlpha) const
 
return_type with_combined_alpha (view_component aAlpha) const
 
template<typename T >
return_type with_combined_alpha (T aAlpha) const
 
- Public Member Functions inherited from neolib::math::basic_vector< T, _Size, Type >
 basic_vector ()
 
template<typename SFINAE = int>
 basic_vector (value_type x, typename std::enable_if_t< Size==1, SFINAE >=0)
 
template<typename SFINAE = int>
 basic_vector (value_type x, value_type y, typename std::enable_if_t< Size==2, SFINAE >=0)
 
template<typename SFINAE = int>
 basic_vector (value_type x, value_type y, value_type z, typename std::enable_if_t< Size==3, SFINAE >=0)
 
template<typename SFINAE = int>
 basic_vector (value_type x, value_type y, value_type z, value_type w, typename std::enable_if_t< Size==4, SFINAE >=0)
 
template<typename... Arguments>
 basic_vector (const value_type &value, Arguments &&... aArguments)
 
template<typename... Arguments>
 basic_vector (value_type &&value, Arguments &&... aArguments)
 
 basic_vector (const array_type &v)
 
 basic_vector (std::initializer_list< value_type > values)
 
template<typename V , typename A , uint32_t S, uint32_t... Indexes>
 basic_vector (const swizzle< V, A, S, Indexes... > &aSwizzle)
 
 basic_vector (const self_type &other)
 
 basic_vector (self_type &&other)
 
template<typename T2 >
 basic_vector (const basic_vector< T2, Size, Type > &other)
 
template<typename T2 , uint32_t Size2, typename SFINAE = int>
 basic_vector (const basic_vector< T2, Size2, Type > &other, typename std::enable_if_t< Size2< Size, SFINAE >=0)
 
self_typeoperator= (const self_type &other)
 
self_typeoperator= (self_type &&other)
 
self_typeoperator= (std::initializer_list< value_type > values)
 
value_type operator[] (uint32_t aIndex) const
 
value_typeoperator[] (uint32_t aIndex)
 
const_iterator begin () const
 
const_iterator end () const
 
iterator begin ()
 
iterator end ()
 
 operator const array_type & () const
 
template<typename T2 >
basic_vector< T2, Size, Type > as () const
 
bool operator== (const self_type &right) const
 
bool operator!= (const self_type &right) const
 
self_typeoperator+= (value_type value)
 
self_typeoperator-= (value_type value)
 
self_typeoperator*= (value_type value)
 
self_typeoperator/= (value_type value)
 
self_typeoperator+= (const self_type &right)
 
self_typeoperator-= (const self_type &right)
 
self_typeoperator*= (const self_type &right)
 
self_typeoperator/= (const self_type &right)
 
self_type operator- () const
 
self_type scale (const self_type &right) const
 
value_type magnitude () const
 
self_type normalized () const
 
self_type min (const self_type &right) const
 
self_type max (const self_type &right) const
 
value_type min () const
 
self_type ceil () const
 
self_type floor () const
 
self_type round () const
 
value_type distance (const self_type &right) const
 
value_type dot (const self_type &right) const
 
template<typename SFINAE = self_type>
std::enable_if_t< Size==3, SFINAEcross (const self_type &right) const
 
self_type hadamard_product (const self_type &right) const
 

Static Public Member Functions

static self_type from_argb (argb aValue)
 
static return_type from_hsl (scalar aHue, scalar aSaturation, scalar aLightness, scalar aAlpha=1.0)
 
static return_type from_hsv (scalar aHue, scalar aSaturation, scalar aValue, scalar aAlpha=1.0)
 
template<typename To , typename From >
static To convert (From aComponent)
 
static view_component base_to_view (base_component aComponent)
 
- Static Public Member Functions inherited from neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >
template<typename To , typename From >
static To convert (From aComponent)
 
static view_component base_to_view (base_component aComponent)
 
- Static Public Member Functions inherited from neolib::math::basic_vector< T, _Size, Type >
static uint32_t size ()
 

Static Public Attributes

static constexpr color_space color_space
 
static constexpr std::size_t component_count
 
- Static Public Attributes inherited from neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >
static constexpr color_space color_space = ColorSpace
 
static constexpr std::size_t component_count = ColorComponentCount + 1
 
static constexpr std::size_t alpha_component_index = component_count - 1
 
- Static Public Attributes inherited from neolib::math::basic_vector< T, _Size, Type >
static constexpr uint32_t Size = _Size
 

Static Protected Attributes

static const argb AlphaShift = 24
 
static const argb RedShift = 16
 
static const argb GreenShift = 8
 
static const argb BlueShift = 0
 

Additional Inherited Members

- Public Attributes inherited from neolib::math::basic_vector< T, _Size, Type >
union { 
 
   array_type   v 
 
   struct { 
 
      value_type   x 
 
      value_type   y 
 
      value_type   z 
 
   }  
 
   swizzle< vector_type, array_type, 2, 0, 0 >   xx 
 
   swizzle< vector_type, array_type, 2, 0, 1 >   xy 
 
   swizzle< vector_type, array_type, 2, 0, 2 >   xz 
 
   swizzle< vector_type, array_type, 2, 1, 0 >   yx 
 
   swizzle< vector_type, array_type, 2, 1, 1 >   yy 
 
   swizzle< vector_type, array_type, 2, 1, 2 >   yz 
 
   swizzle< vector_type, array_type, 2, 2, 0 >   zx 
 
   swizzle< vector_type, array_type, 2, 2, 1 >   zy 
 
   swizzle< vector_type, array_type, 2, 2, 2 >   zz 
 
   swizzle< vector_type, array_type, 3, 0, 0, 0 >   xxx 
 
   swizzle< vector_type, array_type, 3, 0, 0, 1 >   xxy 
 
   swizzle< vector_type, array_type, 3, 0, 0, 2 >   xxz 
 
   swizzle< vector_type, array_type, 3, 0, 1, 0 >   xyx 
 
   swizzle< vector_type, array_type, 3, 0, 1, 1 >   xyy 
 
   swizzle< vector_type, array_type, 3, 0, 1, 2 >   xyz 
 
   swizzle< vector_type, array_type, 3, 1, 0, 0 >   yxx 
 
   swizzle< vector_type, array_type, 3, 1, 0, 1 >   yxy 
 
   swizzle< vector_type, array_type, 3, 1, 0, 2 >   yxz 
 
   swizzle< vector_type, array_type, 3, 1, 1, 0 >   yyx 
 
   swizzle< vector_type, array_type, 3, 1, 1, 1 >   yyy 
 
   swizzle< vector_type, array_type, 3, 1, 1, 2 >   yyz 
 
   swizzle< vector_type, array_type, 3, 1, 2, 0 >   yzx 
 
   swizzle< vector_type, array_type, 3, 1, 2, 1 >   yzy 
 
   swizzle< vector_type, array_type, 3, 1, 2, 2 >   yzz 
 
   swizzle< vector_type, array_type, 3, 2, 0, 0 >   zxx 
 
   swizzle< vector_type, array_type, 3, 2, 0, 1 >   zxy 
 
   swizzle< vector_type, array_type, 3, 2, 0, 2 >   zxz 
 
   swizzle< vector_type, array_type, 3, 2, 1, 0 >   zyx 
 
   swizzle< vector_type, array_type, 3, 2, 1, 1 >   zyy 
 
   swizzle< vector_type, array_type, 3, 2, 1, 2 >   zyz 
 
   swizzle< vector_type, array_type, 3, 2, 2, 0 >   zzx 
 
   swizzle< vector_type, array_type, 3, 2, 2, 1 >   zzy 
 
   swizzle< vector_type, array_type, 3, 2, 2, 2 >   zzz 
 
};  
 

Detailed Description

template<color_space ColorSpace, typename BaseComponent, typename ViewComponent = BaseComponent, typename Derived = void>
class neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >

Definition at line 175 of file color.hpp.

Member Typedef Documentation

◆ abstract_type

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
typedef base_type neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::abstract_type

Definition at line 81 of file color.hpp.

◆ argb

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
typedef uint32_t neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::argb

Definition at line 184 of file color.hpp.

◆ base_component

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
typedef BaseComponent neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::base_component

Definition at line 82 of file color.hpp.

◆ return_type

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
typedef color_return_type_cracker<self_type,derived_type>::return_type neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::return_type

Definition at line 84 of file color.hpp.

◆ view_component

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
typedef ViewComponent neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::view_component

Definition at line 83 of file color.hpp.

Constructor & Destructor Documentation

◆ basic_rgb_color() [1/9]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::basic_rgb_color ( )
inline

Definition at line 196 of file color.hpp.

◆ basic_rgb_color() [2/9]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::basic_rgb_color ( const self_type aOther)
inline

Definition at line 198 of file color.hpp.

◆ basic_rgb_color() [3/9]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::basic_rgb_color ( const vec3 aBaseNoAlpha)
inlineexplicit

Definition at line 200 of file color.hpp.

◆ basic_rgb_color() [4/9]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::basic_rgb_color ( const vec4 aBase)
inlineexplicit

Definition at line 202 of file color.hpp.

◆ basic_rgb_color() [5/9]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::basic_rgb_color ( view_component  aRed,
view_component  aGreen,
view_component  aBlue,
view_component  aAlpha = 0xFF 
)
inline

Definition at line 204 of file color.hpp.

◆ basic_rgb_color() [6/9]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::basic_rgb_color ( int32_t  aRed,
int32_t  aGreen,
int32_t  aBlue,
int32_t  aAlpha = 0xFF 
)
inline

Definition at line 206 of file color.hpp.

◆ basic_rgb_color() [7/9]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::basic_rgb_color ( uint32_t  aRed,
uint32_t  aGreen,
uint32_t  aBlue,
uint32_t  aAlpha = 0xFF 
)
inline

Definition at line 208 of file color.hpp.

◆ basic_rgb_color() [8/9]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::basic_rgb_color ( aRed,
aGreen,
aBlue,
aAlpha = 1.0,
std::enable_if_t< std::is_scalar_v< T > &&!std::is_same_v< view_component, T >, sfinae = {} 
)
inline

Definition at line 211 of file color.hpp.

◆ basic_rgb_color() [9/9]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::basic_rgb_color ( argb  aValue)
inlineexplicit

Definition at line 213 of file color.hpp.

Member Function Documentation

◆ alpha() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
T neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::alpha ( ) const
inline

Definition at line 139 of file color.hpp.

◆ alpha() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
view_component neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::alpha ( ) const
inline

Definition at line 134 of file color.hpp.

◆ as_argb()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::argb neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::as_argb ( ) const
inline

Definition at line 41 of file color.inl.

◆ base_to_view()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
static view_component neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::base_to_view ( base_component  aComponent)
inlinestatic

Definition at line 130 of file color.hpp.

◆ blue() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
view_component neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::blue ( ) const
inline

Definition at line 253 of file color.hpp.

◆ blue() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
T neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::blue ( ) const
inline

Definition at line 268 of file color.hpp.

◆ convert()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename To , typename From >
static To neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::convert ( From  aComponent)
inlinestatic

Definition at line 93 of file color.hpp.

◆ dark()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
bool neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::dark ( scalar  aThreshold = 0.50) const
inline

Definition at line 97 of file color.inl.

◆ darken()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::darken ( view_component  aDelta)
inline

Definition at line 110 of file color.inl.

◆ darker()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::darker ( view_component  aDelta) const
inline

Definition at line 125 of file color.inl.

◆ from_argb()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
static self_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::from_argb ( argb  aValue)
inlinestatic

Definition at line 229 of file color.hpp.

◆ from_hsl()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::from_hsl ( scalar  aHue,
scalar  aSaturation,
scalar  aLightness,
scalar  aAlpha = 1.0 
)
inlinestatic

Definition at line 29 of file color.inl.

◆ from_hsv()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::from_hsv ( scalar  aHue,
scalar  aSaturation,
scalar  aValue,
scalar  aAlpha = 1.0 
)
inlinestatic

Definition at line 35 of file color.inl.

◆ green() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
view_component neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::green ( ) const
inline

Definition at line 249 of file color.hpp.

◆ green() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
T neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::green ( ) const
inline

Definition at line 263 of file color.hpp.

◆ intensity()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
double neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::intensity ( ) const
inline

Definition at line 59 of file color.inl.

◆ inverse()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::inverse ( ) const
inline

Definition at line 192 of file color.inl.

◆ light()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
bool neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::light ( scalar  aThreshold = 0.50) const
inline

Definition at line 91 of file color.inl.

◆ lighten()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::lighten ( view_component  aDelta)
inline

Definition at line 103 of file color.inl.

◆ lighter()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::lighter ( view_component  aDelta) const
inline

Definition at line 117 of file color.inl.

◆ mid()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::mid ( const self_type aOther) const
inline

Definition at line 71 of file color.inl.

◆ mix()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::mix ( const self_type aOther,
scalar  aValue 
) const
inline

Definition at line 81 of file color.inl.

◆ monochrome()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::monochrome ( ) const
inline

Definition at line 169 of file color.inl.

◆ operator+=()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::operator+= ( view_component  aDelta)
inline

Definition at line 198 of file color.inl.

◆ operator-=()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::operator-= ( view_component  aDelta)
inline

Definition at line 208 of file color.inl.

◆ operator<()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
bool neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::operator< ( const self_type aOther) const
inline

Definition at line 230 of file color.inl.

◆ operator<=>()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
auto neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::operator<=> ( const self_type aOther) const
default

◆ operator=() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
self_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::operator= ( const base_type aOther)
inline

Definition at line 222 of file color.hpp.

◆ operator=() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
self_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::operator= ( const self_type aOther)
inline

Definition at line 217 of file color.hpp.

◆ operator==()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
bool neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::operator== ( const self_type aOther) const
inline

Definition at line 224 of file color.inl.

◆ operator~()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::operator~ ( ) const
inline

Definition at line 218 of file color.inl.

◆ red() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
view_component neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::red ( ) const
inline

Definition at line 245 of file color.hpp.

◆ red() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
T neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::red ( ) const
inline

Definition at line 258 of file color.hpp.

◆ same_lightness_as()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::same_lightness_as ( const self_type aOther) const
inline

Definition at line 176 of file color.inl.

◆ set_alpha() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
return_type & neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::set_alpha ( aAlpha)
inline

Definition at line 149 of file color.hpp.

◆ set_alpha() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
return_type & neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::set_alpha ( view_component  aAlpha)
inline

Definition at line 143 of file color.hpp.

◆ set_blue() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
return_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::set_blue ( aBlue)
inline

Definition at line 300 of file color.hpp.

◆ set_blue() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
return_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::set_blue ( view_component  aBlue)
inline

Definition at line 282 of file color.hpp.

◆ set_green() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
return_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::set_green ( aGreen)
inline

Definition at line 294 of file color.hpp.

◆ set_green() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
return_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::set_green ( view_component  aGreen)
inline

Definition at line 277 of file color.hpp.

◆ set_red() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
return_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::set_red ( aRed)
inline

Definition at line 288 of file color.hpp.

◆ set_red() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
return_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::set_red ( view_component  aRed)
inline

Definition at line 272 of file color.hpp.

◆ shade()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::shade ( view_component  aDelta)
inline

Definition at line 133 of file color.inl.

◆ shaded()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::shaded ( view_component  aDelta) const
inline

Definition at line 151 of file color.inl.

◆ similar_intensity()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
bool neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::similar_intensity ( const self_type aOther,
scalar  aThreshold = 0.5 
) const
inline

Definition at line 65 of file color.inl.

◆ to_hex_string()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
std::string neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::to_hex_string ( ) const
inline

Definition at line 246 of file color.inl.

◆ to_hsl()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
hsl_color neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::to_hsl ( ) const
inline

Definition at line 47 of file color.inl.

◆ to_hsv()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
hsv_color neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::to_hsv ( ) const
inline

Definition at line 53 of file color.inl.

◆ to_string()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
std::string neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::to_string ( ) const
inline

Definition at line 238 of file color.inl.

◆ unshade()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type & neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::unshade ( view_component  aDelta)
inline

Definition at line 142 of file color.inl.

◆ unshaded()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::unshaded ( view_component  aDelta) const
inline

Definition at line 160 of file color.inl.

◆ with_alpha() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
return_type neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::with_alpha ( aAlpha) const
inline

Definition at line 159 of file color.hpp.

◆ with_alpha() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
return_type neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::with_alpha ( view_component  aAlpha) const
inline

Definition at line 154 of file color.hpp.

◆ with_blue() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::with_blue ( aBlue) const
inline

Definition at line 328 of file color.hpp.

◆ with_blue() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::with_blue ( view_component  aBlue) const
inline

Definition at line 313 of file color.hpp.

◆ with_combined_alpha() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
return_type neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::with_combined_alpha ( aAlpha) const
inline

Definition at line 168 of file color.hpp.

◆ with_combined_alpha() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
return_type neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::with_combined_alpha ( view_component  aAlpha) const
inline

Definition at line 163 of file color.hpp.

◆ with_green() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::with_green ( aGreen) const
inline

Definition at line 323 of file color.hpp.

◆ with_green() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::with_green ( view_component  aGreen) const
inline

Definition at line 309 of file color.hpp.

◆ with_lightness()

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent , typename Derived >
basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::with_lightness ( scalar  aLightness) const
inline

Definition at line 184 of file color.inl.

◆ with_red() [1/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
template<typename T >
return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::with_red ( aRed) const
inline

Definition at line 318 of file color.hpp.

◆ with_red() [2/2]

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
return_type neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::with_red ( view_component  aRed) const
inline

Definition at line 305 of file color.hpp.

Member Data Documentation

◆ AlphaShift

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
const argb neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::AlphaShift = 24
staticprotected

Definition at line 186 of file color.hpp.

◆ BlueShift

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
const argb neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::BlueShift = 0
staticprotected

Definition at line 189 of file color.hpp.

◆ color_space

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
constexpr color_space neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::color_space
staticconstexpr

Definition at line 87 of file color.hpp.

◆ component_count

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
constexpr std::size_t neogfx::basic_color< ColorSpace, BaseComponent, ViewComponent, ColorComponentCount, Derived >::component_count
staticconstexpr

Definition at line 88 of file color.hpp.

◆ GreenShift

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
const argb neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::GreenShift = 8
staticprotected

Definition at line 188 of file color.hpp.

◆ RedShift

template<color_space ColorSpace, typename BaseComponent , typename ViewComponent = BaseComponent, typename Derived = void>
const argb neogfx::basic_rgb_color< ColorSpace, BaseComponent, ViewComponent, Derived >::RedShift = 16
staticprotected

Definition at line 187 of file color.hpp.


The documentation for this class was generated from the following files: