# samj octobre 2010 www.aljacom.com/~gimp # quelques essais des filtres de gmic # tests sur version 1442 # licence : CC-BY http://creativecommons.org/licenses/by/3.0/deed.fr_CA # commande gmic -m test_mosaic.txt -test_mosaic ######################################################## # # # test_mosaic # # # ######################################################## #@gmic test_mosaic : : Tests effets gmic test_mosaic : image_a_tester=320_240.png temporisation_en_ms=400 creer_fichiers_images=1 taille_police=32 ## boucle # paramètre sur lequel on joue X=1 #index N° image Y=0 -do ##mosaic -input $image_a_tester -mosaic $X,0 commande_testee=mosaic parametres={$X}\\0 -af_sa $commande_testee,$parametres,$temporisation_en_ms,$creer_fichiers_images,$taille_police,$Y #index N° image Y={$Y+1} # paramètre sur lequel on joue X={$X+1} -while {$X<20.1} ## fin de la boucle ######################################################## ## boucle 2 # paramètre sur lequel on joue X=1 #index N° image ##Y=0 -do ##mosaic -input $image_a_tester -mosaic $X,1 commande_testee=mosaic parametres={$X}\\1 -af_sa $commande_testee,$parametres,$temporisation_en_ms,$creer_fichiers_images,$taille_police,$Y #index N° image Y={$Y+1} # paramètre sur lequel on joue X={$X+01} -while {$X<20.1} ## fin de la boucle 2 ######################################################## # # # af_sa : Affichage Sauvegarde # # # ######################################################## #@gmic af_sa #@gmic : fonctions d'affichage / sauvegarde af_sa : -skip ${1=0},${2=0},${3=0},${4=0},${5=0},${6=0} -text_outline $1\ $2,0,0,$5,1,1,255,255,255 -window -1,-1,0,0,$1 -if {$4==1} -output $1_$6.png -endif -wait $3 -window 0,0 -remove