/*************************************************************************************************************************************/ /* */ /* E T U D E D E L A C O M P L E X I T E S T R U C T U R E L L E */ /* D E P O I N T S P S E U D O - A L E A T O I R E S E N C O U L E U R S : */ /* */ /* */ /* Author of '$xrC/ObjetComplexe.K1$vv$c' : */ /* */ /* Jean-Francois Colonna (LACTAMME, 20130621112723). */ /* */ /*************************************************************************************************************************************/ #ifdef COMMENTS # undef COMMENTS #else #endif #define COMMENTS "Points pseudo-aleatoires type 'drand48(...)' (format octet) -fausses couleurs-" #define DEFINE_01 "-DBORNE_SUPERIEURE=(COULEURS-3)" #define DEFINE_02 "-DBORNE_SUPERIEURE=(COULEURS-2)" #define DEFINE_03 "-DBORNE_SUPERIEURE=(COULEURS-1)" #define DEFINE_04 "-DBORNE_SUPERIEURE=(COULEURS-0)" #include "images_1octet.01.vv.I" #ifndef BORNE_SUPERIEURE # define BORNE_SUPERIEURE \ COULEURS #else #endif double borne_superieure=BORNE_SUPERIEURE; MAIN( { long int m=0x0000ffffffffffff; long int a=0x5DEECE66D; long int c=0xB; long int Xi=1; /* Les valeurs des parametres {m,a,c} sont ceux de la fonction 'drand48(...)'. */ for (y=Ymin ; y <= Ymax ; y=ADD2(y,1)) { for (x=Xmin ; x <= Xmax ; x=ADD2(x,1)) { Xi = ETLO(ADD2(MUL2(a,Xi),c),m); STORE_IMAGE_PLAN(x,y,(TypeImage)MUL2f(DIVIf(((double)Xi),((double)m)),borne_superieure)); } } SORTIE_DU_FICHIER_IMAGE; EDITER_LES_COMPTEURS_DES_FONCTIONS; } )