From e2bdb15d20f808be46db098026c4e6aad600c37c Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 26 Apr 2022 10:42:13 +0200 Subject: [PATCH] YAZAAAA* --- Etoile.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Etoile.java diff --git a/Etoile.java b/Etoile.java new file mode 100644 index 0000000..0197644 --- /dev/null +++ b/Etoile.java @@ -0,0 +1,13 @@ +import javax.swing.JComponent; +import java.awt.*; + +public class Etoile extends JComponent { + @Override + protected void paintComponent(Graphics pinceau) { + Graphics etoile = pinceau.create(); + int[] x={0,40,50,60,100,70,90,50,20,40}; + int[] y={40,40,0,40,40,60,100,80,100,80}; + etoile.setColor(Color.MAGENTA); + etoile.fillPolygon(x,y,10); + } +} \ No newline at end of file