38 return((
double)rand() /(
double)(RAND_MAX+1));
45 nf =(double)(
morand() *(double)(n));
51 LIBMOLDEO_API void HSVtoRGB(
short iInHue,
short iInSaturation,
short iInValue,
float* piRed,
float* piGreen,
float* piBlue)
53 if(iInSaturation == 0) {
55 fInValue =(float)(iInValue) / 255.0;
60 float fHue, fValue, fSaturation;
65 if(iInHue == 360) iInHue = 0;
67 fHue =(float)iInHue / 60;
72 fValue =(float)iInValue / 255;
73 fSaturation =(float)iInSaturation / 255;
74 p = fValue *(1.0 - fSaturation);
75 q = fValue *(1.0 -(fSaturation *f));
76 t = fValue *(1.0 -(fSaturation *(1.0 - f)));
154 #define PACKAGE_VERSION "0.9.1.0"
161 return moText(PACKAGE_VERSION);
LIBMOLDEO_API MOint moRand(MOint n)
void moColor4f(float r, float g, float b, float a)
LIBMOLDEO_API void HSVtoRGB(short iInHue, short iInSaturation, short iInValue, float *piRed, float *piGreen, float *piBlue)
moText moGetVersionStr()
Devuelve la versión de libmoldeo.
clase de para manejar textos
LIBMOLDEO_API MOfloat morand()
void moColor3f(float r, float g, float b)
void moNormal3f(float x, float y, float z)