Skip to content
Snippets Groups Projects
Commit 9ff32763 authored by augustrb's avatar augustrb
Browse files

Moved the main file to launcher file

parent dfcb02b4
No related branches found
No related tags found
1 merge request!2Merge Bug fixes into main
package edu.ntnu.stud;
import edu.ntnu.stud.model.*;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Vector2D minCoords = new Vector2D(0, 0);
Vector2D maxCoords = new Vector2D(1, 1);
AffineTransform2D transform1 = new AffineTransform2D(new Matrix2x2(0.5, 0, 0, 0.5), new Vector2D(0, 0));
AffineTransform2D transform2 = new AffineTransform2D(new Matrix2x2(0.5, 0, 0, 0.5), new Vector2D(0.25, 0.5));
AffineTransform2D transform3 = new AffineTransform2D(new Matrix2x2(0.5, 0, 0, 0.5), new Vector2D(0.5, 0));
ChaosGameDescription description = new ChaosGameDescription(minCoords, maxCoords, Arrays.asList(transform1, transform2, transform3));
ChaosGame game = new ChaosGame(description, 80, 120);
game.runSteps(10000000);
game.getCanvas().showCanvas();
}
}
\ No newline at end of file
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment