6 #include "CalibreurF.h"
7 #include "ColorTools.h"
10 /*----------------------------------------------------------------------*\
12 \*---------------------------------------------------------------------*/
14 /*--------------------------------------*\
16 \*-------------------------------------*/
22 /*--------------------------------------*\
24 \*-------------------------------------*/
29 DamierMath(int n
):calibreur(IntervalF(-1, 1), IntervalF(0, 1))
34 // constructeur copie automatique car pas pointeur dans
39 /*--------------------------------------*\
41 \*-------------------------------------*/
50 void colorXY(uchar4
* ptrColor
,float x
, float y
,float t
)
54 calibreur
.calibrer(z
);
57 ColorTools::HSB_TO_RVB(hue01
,ptrColor
); // update color
59 ptrColor
->w
= 255; // opaque
65 float f(float x
, float y
,float t
)
67 return sin(x
* n
+ t
) * cos(y
* n
+ t
);
70 /*--------------------------------------*\
72 \*-------------------------------------*/
90 /*----------------------------------------------------------------------*\
92 \*---------------------------------------------------------------------*/