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