Files
Party-Parrots-At-Sea/src/main/java/seng302/controllers/CanvasController.java
T
Peter 550812d8e1 Currently displaying basic javafx window with canvas. Also changed the file structure a bit.
At this point the javafx is not tied to the old code in any way #story[377]
2017-03-15 18:16:43 +13:00

20 lines
447 B
Java

package seng302.controllers;
import javafx.fxml.FXML;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
/**
* Created by ptg19 on 15/03/17.
*/
public class CanvasController {
@FXML private Canvas canvas;
public void initialize() {
GraphicsContext gc = canvas.getGraphicsContext2D();
gc.setFill(Color.GREEN);
gc.fillOval(100, 200, 100, 80);
}
}