X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/graphlib.git/blobdiff_plain/28503be4491f8b897c10fc7d00aa9f65133bffb5..HEAD:/test/hello.cpp diff --git a/test/hello.cpp b/test/hello.cpp index f8afa0d..615b3ca 100644 --- a/test/hello.cpp +++ b/test/hello.cpp @@ -2,14 +2,14 @@ * Pour compiler * ============= * - * 1. Créer le fichier hello.pro : - * +------------------------------------------------------------+ - * |TARGET = hello | - * |CONFIG += qt debug | - * |SOURCES += hello.cc | - * +------------------------------------------------------------+ + * 1. Créer le fichier hello.pro : + * ,---- + * |TARGET = hello + * |CONFIG += qt debug + * |SOURCES += hello.cpp + * `----- * - * 2. Créer le fichier Makefile avec la commande : + * 2. Créer le fichier Makefile avec la commande : * $ qmake -makefile hello.pro * ou tout simplement : * $ qmake -makefile @@ -50,7 +50,7 @@ void flip(DrawingWindow &w) void mandel(DrawingWindow &w) { - /* paramètres par défaut */ + /* paramètres par défaut */ int larg = w.width; int haut = w.height; float Rmin = -2.05; @@ -60,7 +60,7 @@ void mandel(DrawingWindow &w) int maxiter = 100; - int x, y; /* le pixel considéré */ + int x, y; /* le pixel considéré */ float cr, ci; /* le complexe correspondant */ float zr, zi; /* pour calculer la suite */ float zr2, zi2; @@ -89,7 +89,7 @@ void mandel(DrawingWindow &w) zi = 2*zr*zi + ci; zr = zr2 - zi2 + cr; } - /* on est sorti trop tôt du for(...): + /* on est sorti trop tôt du for(...): on affiche le pixel d'un couleur en fonction de i */ if (i <= maxiter / 2) {