30 #ifndef __CLAW_PIXEL_HPP_ 31 #define __CLAW_PIXEL_HPP_ 65 rgb_pixel( component_type r, component_type g, component_type b );
67 explicit rgb_pixel(
const std::string& c );
110 rgba_pixel( component_type r, component_type g, component_type b,
118 component_type luminosity()
const;
164 #endif // __CLAW_PIXEL_HPP__ bool operator!=(const rgb_pixel &that) const
Compare to a pixel.
rgba_pixel green_pixel(0, std::numeric_limits< rgba_pixel::component_type >::max(), 0, std::numeric_limits< rgba_pixel::component_type >::max())
The green color.
rgba_pixel cyan_pixel(0, std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max())
The cyan color.
rgba_pixel transparent_pixel(0, 0, 0, 0)
A transparent color.
component_type red
Red component.
component_type blue
Blue component.
rgba_pixel black_pixel(0, 0, 0, std::numeric_limits< rgba_pixel::component_type >::max())
The black color.
unsigned int pixel
Compressed representation.
rgb_pixel()
Default constructor.
component_type blue
Blue component.
struct claw::graphic::rgb_pixel::@14 components
Component by component representation.
rgb_pixel rgb_pixel_8
A color with 8 bits per component.
rgba_pixel rgba_pixel_8
A color with 8 bits per component and an alpha channel.
component_type red
Red component.
rgba_pixel yellow_pixel
The yellow color.
rgba_pixel magenta_pixel
The magenta color.
rgba_pixel red_pixel
The red color.
bool operator==(const rgb_pixel &that) const
Compare to a pixel.
component_type alpha
Translucy.
unsigned char component_type
The type of the components of the color.
unsigned char component_type
The type of the components of the color.
rgba_pixel white_pixel
The white color.
component_type green
Green component.
This is the main namespace.
component_type green
Green component.
rgba_pixel blue_pixel(0, 0, std::numeric_limits< rgba_pixel::component_type >::max(), std::numeric_limits< rgba_pixel::component_type >::max())
The blue color.