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
Namespaces | Functions
color.cpp File Reference
#include "./color.hpp"
Include dependency graph for color.cpp:

Go to the source code of this file.

Namespaces

namespace  scifir
 The namespace scifir contains all scifir-units, excepting the string literals, which are outside.
 

Functions

ostream & operator<< (ostream &os, const scifir::color &x)
 

Function Documentation

◆ operator<<()

ostream & operator<< ( ostream &  os,
const scifir::color x 
)

Definition at line 16 of file color.cpp.

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