* 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
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;
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;
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) {