scifir-units 2.0.0
scifir-units is a library of units of measurement, angles, coordinates, fields, and related data, all lightweight, that help in the development of scientific software and scientific machines
Loading...
Searching...
No Matches
color.cpp
Go to the documentation of this file.
1#include "./color.hpp"
2
3using namespace std;
4
5namespace scifir
6{
7 color::color() : red(),blue(),green(),alpha()
8 {
9 }
10
12 {
13 }
14}
15
16ostream& operator <<(ostream& os, const scifir::color& x)
17{
18 return os << "color(" << x.get_red() << "," << x.get_green() << "," << x.get_blue() << "," << x.get_alpha() << ")";
19}
const int & get_green() const
Definition color.hpp:22
const int & get_alpha() const
Definition color.hpp:32
const int & get_blue() const
Definition color.hpp:27
const int & get_red() const
Definition color.hpp:17
ostream & operator<<(ostream &os, const scifir::color &x)
Definition color.cpp:16
The namespace scifir contains all scifir-units, excepting the string literals, which are outside.
Definition address.cpp:6