20 #include "../bitmap/pixel_arithmetic.h"
48 h = ((
b -
r) / C + 2) / 6;
50 h = ((
r -
g) / C + 4) / 6;
51 s =
v > 0 ? C /
v : 0;
60 H =
h - (long)
h + (
h >= 0 ? 0 : 1),
62 X = C*(1 - fabs(
modf(H*6, 2) - 1)),
69 else if (H < 2.0f / 6) {
72 else if (H < 3.0f / 6) {
75 else if (H < 4.0f / 6) {
78 else if (H < 5.0f / 6) {
105 v = (float)_.
x / 255;
CustomPoint< numeric > min(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
CustomPoint< numeric > max(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
HSVA quad (for hue, saturation, value and alpha)
hsva_t(const pixfloat3 &_)
hsva_t(pixfloat r, pixfloat g, pixfloat b)
Constructs an HSVA quad from r, g, b, a values.
hsva_t(const pixfloat4 &_)
hsva_t(const pixfloat1 &_)
Monochromatic floating point arithmetic.
Trichromatic floating point arithmetic.
4-channel floating point arithmetic
Monochromatic integer arithmetic.
Trichromatic integer arithmetic.
4-channel integer arithmetic
float modf(float x, float y)
jobject jlong jint jint jint jint g
jobject jlong jint jint jint jint jint b
jobject jlong jint jint jint r