29#ifndef QA_COMMON_COLOR4D_TEST_UTILS__H
30#define QA_COMMON_COLOR4D_TEST_UTILS__H
53 unsigned char b,
unsigned char a )
55 const double tol = 0.5 / 255.0;
A color representation with 4 components: red, green, blue, alpha.
bool IsColorNearHex(const KIGFX::COLOR4D &aCol, unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Checks if a COLOR4D is close enough to a given RGB char value.
bool IsColorNear(const KIGFX::COLOR4D &aCol, const KIGFX::COLOR4D aOther, double aTol)
Checks if a COLOR4D is close enough to another.
bool IsWithin(T aValue, T aNominal, T aError)
Check if a value is within a tolerance of a nominal value.
Numerical test predicates.