package npw; import painter.SPainter; import shapes.SCircle; import shapes.SSquare; import java.awt.*; public class Invention1 { public static void main(String[]args) { SPainter Invention = new SPainter("Invention 1",600,600); SSquare square = new SSquare(40); SCircle circle = new SCircle(20); Invention.setColor(Color.BLACK); Invention.paint(square); int x =1; while (x<6){ Invention.setColor(Color.darkGray); Invention.mbk(25); Invention.mlt(25); Invention.paint(square); x = x + 1; } Invention.moveToCenter(); x =1; while(x < 15) { if (x < 10) { Invention.setColor(Color.PINK); Invention.mrt(25); Invention.mfd(25); Invention.paint(circle); } else { Invention.setColor(Color.lightGray); Invention.mbk(25); Invention.paint(circle); } x = x + 1; } int y = 1; while(y <3){ Invention.setColor(Color.red); Invention.mbk(40); circle.expand(9); Invention.paint(circle); y = y +1; } }}