cHsv
Overview
Types and Definitions
cHsv
struct cHsv
{
float hue;
float saturation;
float value;
};
typedef struct cHsv cHsv;
The cHsv struct can store a color from the HSV color space.
Functions
overall
hsv_c_
#define hsv_c_( Hue, Saturation, Lightness )
Creates a cHsv instance.
eq_hsv_c
#define eq_hsv_c_( A, B ) \
eq_hsv_c( (A), (B), FLT_EPSILON )
bool eq_hsv_c( cHsv a, cHsv b, float epsilon );
Example
#include "clingo/color/cHsv.h"
#include "clingo/lang/expect.h"
int main( void )
{
init_tap_c_();
expect_c_( false );
return finish_tap_c_();
}