cHsl

Overview

Types and Definitions

cHsl

struct cHsl
{
   float hue;
   float saturation;
   float lightness;
};
typedef struct cHsl cHsl;

The cHsl struct can store a color from the HSL color space.

Generated

cHslSlice

struct cHslSlice
{
   int64_t s;
   cHsl const* v;
};
typedef struct cHslSlice cHslSlice;

Via the macro SLICES_C_ generated struct.

cVarHslSlice

struct cVarHslSlice
{
   int64_t s;
   cHsl* v;
};
typedef struct cVarHslSlice cVarHslSlice;

Via the macro SLICES_C_ generated struct.

Functions

overall

hsl_c_

#define hsl_c_( Hue, Saturation, Lightness )

Creates a cHsl instance.

eq_hsl_c

#define eq_hsl_c_( A, B )                                                      \
   eq_hsl_c( (A), (B), FLT_EPSILON )
bool eq_hsl_c( cHsl a, cHsl b, float epsilon );
Example
#include "clingo/color/cHsl.h"
#include "clingo/lang/expect.h"

int main( void )
{
   init_tap_c_();

   expect_c_( false );

   return finish_tap_c_();
}