import java.awt._
import java.awt.event.ActionEvent
import java.awt.geom.Path2D

import javax.swing._

import scala.annotation.tailrec
import scala.math.{Pi, cos, sin, sqrt}

object SierpinskiPentagon extends App {
  SwingUtilities.invokeLater(() => {

    class SierpinskiPentagon extends JPanel {

      

      private var hue = math.random