NovaSVG 0.10.0
A header-only SVG library
Loading...
Searching...
No Matches
color.h File Reference
#include <stdexcept>
#include <string>
#include <cstdint>
#include <math.h>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cctype>
#include <ostream>
#include <utility>
#include <type_traits>
Include dependency graph for color.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  novasvg::Color
 Represents a color in RGBA format (0xRRGGBBAA). More...
 
class  novasvg::ColorBlend
 Lightweight helper class for color blending operations. More...
 

Namespaces

namespace  novasvg
 Main namespace for the NovaSVG library.
 
namespace  novasvg::color_literals
 String literal operators for creating Color instances.
 

Macros

#define NOVASVG_MAX(a, b)   ((a) > (b) ? (a) : (b))
 
#define NOVASVG_MIN(a, b)   ((a) < (b) ? (a) : (b))
 

Functions

std::ostream & novasvg::operator<< (std::ostream &os, const Color &color)
 Stream output operator for Color.
 
std::ostream & novasvg::operator<< (std::ostream &os, const ColorBlend &blend)
 Stream output operator for ColorBlend.
 
novasvg::Color novasvg::color_literals::operator""_c (const char *str, std::size_t len)
 String literal operator for creating Color instances.
 

Macro Definition Documentation

◆ NOVASVG_MAX

#define NOVASVG_MAX (   a,
  b 
)    ((a) > (b) ? (a) : (b))

Definition at line 11 of file color.h.

◆ NOVASVG_MIN

#define NOVASVG_MIN (   a,
  b 
)    ((a) < (b) ? (a) : (b))

Definition at line 14 of file color.h.