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.

Generated

cHsvSlice

struct cHsvSlice
{
   int64_t s;
   cHsv const* v;
};
typedef struct cHsvSlice cHsvSlice;

Via the macro SLICES_C_ generated struct.

cVarHsvSlice

struct cVarHsvSlice
{
   int64_t s;
   cHsv* v;
};
typedef struct cVarHsvSlice cVarHsvSlice;

Via the macro SLICES_C_ generated struct.

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_();
}