tp recursivite

This commit is contained in:
Simoes Lukas
2025-10-09 12:11:25 +02:00
parent 56258c01e6
commit 91d20e0ba6
15 changed files with 181 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import java.awt.*;
import javax.swing.*;
public class JFlocon extends JComponent {
private int ordre;
public JFlocon(int ordre) {
this.ordre = ordre;
}
@Override
public void paintComponent(Graphics pinceau) {
Graphics secondPinceau = pinceau.create();
if (this.isOpaque()) {
this.setColor(this.getBackgroundColor());
this.fillRect(0, 0, this.getWidth(), this.getHeight());
}
}
}