/*************************************************************************************************************************************/ /* */ /* 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 D R O I T E S H O R I Z O N T A L E S D E N I V E A U X A L E A T O I R E S : */ /* */ /* */ /* Author of '$xrC/ObjetComplexe.H31__1$vv$c' : */ /* */ /* Jean-Francois Colonna (LACTAMME, 20150904095530). */ /* */ /*************************************************************************************************************************************/ #ifdef COMMENTS # undef COMMENTS #else #endif #define COMMENTS "Droites horizontales de niveaux aleatoires (format octet) -luminance-" #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)) { Xi = ETLO(ADD2(MUL2(a,Xi),c),m); for (x=Xmin ; x <= Xmax ; x=ADD2(x,1)) { STORE_IMAGE_PLAN(x,y,(TypeImage)MUL2f(DIVIf(((double)Xi),((double)m)),borne_superieure)); } } SORTIE_DU_FICHIER_IMAGE; EDITER_LES_COMPTEURS_DES_FONCTIONS; } )