Geometrize 1.0
C++ library for geometrizing images into geometric primitives
rgba.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5namespace geometrize
6{
7
12struct rgba
13{
14 std::uint8_t r;
15 std::uint8_t g;
16 std::uint8_t b;
17 std::uint8_t a;
18};
19
20bool operator==(const geometrize::rgba& lhs, const geometrize::rgba& rhs);
21bool operator!=(const geometrize::rgba& lhs, const geometrize::rgba& rhs);
22
23}
Definition: bitmap.cpp:8
bool operator==(const geometrize::rgba &lhs, const geometrize::rgba &rhs)
Definition: rgba.cpp:6
bool operator!=(const geometrize::rgba &lhs, const geometrize::rgba &rhs)
Definition: rgba.cpp:11
The rgba struct is a helper for manipulating RGBA8888 color data.
Definition: rgba.h:13
std::uint8_t a
‍The blue component (0-255).
Definition: rgba.h:17
std::uint8_t g
‍The red component (0-255).
Definition: rgba.h:15
std::uint8_t r
Definition: rgba.h:14
std::uint8_t b
‍The green component (0-255).
Definition: rgba.h:16