homog2d library
Public Member Functions | Public Attributes | Friends | List of all members
h2d::img::Color Struct Reference

Color type , see DrawParams. More...

#include <homog2d.hpp>

Public Member Functions

 Color (uint8_t rr, uint8_t gg, uint8_t bb)
 
 Color ()=default
 

Public Attributes

uint8_t b = 80
 
uint8_t g = 80
 
uint8_t r = 80
 

Friends

std::ostream & operator<< (std::ostream &f, const Color &c)
 

Detailed Description

Color type , see DrawParams.

Constructor & Destructor Documentation

◆ Color() [1/2]

h2d::img::Color::Color ( uint8_t  rr,
uint8_t  gg,
uint8_t  bb 
)
inline
437 : r(rr),g(gg),b(bb) {}
uint8_t b
Definition: homog2d.hpp:436
uint8_t r
Definition: homog2d.hpp:434
uint8_t g
Definition: homog2d.hpp:435

◆ Color() [2/2]

h2d::img::Color::Color ( )
default

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  f,
const Color c 
)
friend
441  {
442  f << "Color:" << (int)c.r << '-' << (int)c.g << '-' << (int)c.b;
443  return f;
444  }

Member Data Documentation

◆ b

uint8_t h2d::img::Color::b = 80

◆ g

uint8_t h2d::img::Color::g = 80

◆ r

uint8_t h2d::img::Color::r = 80

The documentation for this struct was generated from the following file: