/*************************************************************************************************************************************/
/* */
/* 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 ' U N E T R A N S F O R M A T I O N Z ^ 2 S U R U N T O R E : */
/* */
/* */
/* Author of '$xrC/ObjetComplexe.A1$vv$c' : */
/* */
/* Jean-Francois Colonna (LACTAMME, 20130506112203). */
/* */
/*************************************************************************************************************************************/
#ifdef COMMENTS
# undef COMMENTS
#else
#endif
#define COMMENTS "Transformation Z^2 des coordonnees sur un tore (format octet) -noir ou blanc-"
#include "images_1octet.01.vv.I"
#ifndef FACTEUR
# define FACTEUR \
(1)
#else
#endif
#ifndef DIVISEUR
# define DIVISEUR \
(7)
#else
#endif
int facteur=FACTEUR;
int diviseur=DIVISEUR;
MAIN(
{
for (y=Ymin ; y <= Ymax ; y=ADD2(y,1))
{
for (x=Xmin ; x <= Xmax ; x=ADD2(x,1))
{
int xc=SOUS(x,dimXs2);
int yc=SOUS(y,dimYs2);
STORE_IMAGE_TORE(ADD2(DIVI(MUL2(facteur,SOUS(MUL2(xc,xc),MUL2(yc,yc))),diviseur),dimXs2)
,ADD2(DIVI(MUL2(facteur,MUL2(2,MUL2(xc,yc))),diviseur),dimYs2)
,BLANC
)
}
}
SORTIE_DU_FICHIER_IMAGE;
EDITER_LES_COMPTEURS_DES_FONCTIONS;
}
)