Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Check bounds in drawPoint().
[graphlib_java.git] / Exemple1.java
index cef22bc..f350c5f 100644 (file)
@@ -1,8 +1,11 @@
-public class Exemple1 {
+class Exemple1 {
 
     public static void main(String[] args) {
+        // Création de la fenêtre
         DrawingWindow w = new DrawingWindow("Exemple 1", 640, 480);
 
+        // Affichage d'un ensemble de lignes, du centre de la fenêtre
+        // vers les bords
         final int cx = w.width / 2;
         final int cy = w.height / 2;
         final int delta = 5;
@@ -16,5 +19,4 @@ public class Exemple1 {
         }
 
     }
-
-}
\ No newline at end of file
+}