From b20c3b551a4a87888cf00e5f7da22d836015a073 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 10 Oct 2023 09:11:27 +1100 Subject: Use global constants for opaque black and white and local constants for greys. Makes it easier to understand and reduces warnings. --- src/Geometry.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Geometry.h') diff --git a/src/Geometry.h b/src/Geometry.h index 89c9c08fb..28f2f022d 100644 --- a/src/Geometry.h +++ b/src/Geometry.h @@ -256,6 +256,9 @@ public: ColourRGBA MixedWith(ColourRGBA other, double proportion) const noexcept; }; +constexpr ColourRGBA white(maximumByte, maximumByte, maximumByte); +constexpr ColourRGBA black(0x0, 0x0, 0x0); + /** * Holds an RGBA colour and stroke width to stroke a shape. */ -- cgit v1.2.3