-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
34 lines (31 loc) · 1.12 KB
/
Main.java
File metadata and controls
34 lines (31 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import be.kdg.uno.view.start.StartPresenter;
import be.kdg.uno.view.start.StartScreenView;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.paint.CycleMethod;
import javafx.scene.paint.LinearGradient;
import javafx.scene.paint.Stop;
import javafx.stage.Stage;
public class Main extends Application {
@Override
public void start(Stage stage) throws Exception {
StartScreenView startScreenView = new StartScreenView();
StartPresenter startPresenter = new StartPresenter(startScreenView);
Scene scene = new Scene(startScreenView);
stage.setScene(scene);
stage.setTitle("Uno The Game!");
stage.setResizable(true);
stage.setMaximized(true);
stage.show();
scene.setFill(new LinearGradient(
1, 1, 0, 0, true,
CycleMethod.REPEAT,
new Stop(0, Color.web("rgba(248,219,34,255)")), //colors
new Stop(1, Color.web("rgba(238,22,31,255)")))
);
}
public static void main(String[] args) {
Application.launch(args);
}
}