|
tiny-skia-cpp
A C++20 2D rendering library (port of tiny-skia)
|
A float guaranteed to be in [0, 1].
#include <tiny_skia/FloatingPoint.h>

Static Public Member Functions | |
| static std::optional< NormalizedF32 > | create (float value) |
| Returns nullopt if outside [0,1] or non-finite. | |
| static NormalizedF32 | newClamped (float value) |
| Clamps to [0,1]. | |