wavelength 1.0.0
Loading...
Searching...
No Matches
color.h
Go to the documentation of this file.
1#pragma once
2
3#include "os/prnstream.h"
4
12struct Color {
13 float r;
14 float g;
15 float b;
16 float a;
17};
18
28PrnStream &operator<<(PrnStream &stream, const Color &color);
Text output stream.
Definition prnstream.h:16
PrnStream & operator<<(PrnStream &stream, const Color &color)
Write a colour as (r: g: b: a:).
Linear colour with four float components.
Definition color.h:12
float b
Definition color.h:15
float r
Definition color.h:13
float g
Definition color.h:14
float a
Definition color.h:16