Skip to content

Instantly share code, notes, and snippets.

@g9yuayon
g9yuayon / Paint.java
Last active July 26, 2016 03:29
Paint with RxJava and JavaFx
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.geometry.Point2D;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.input.MouseEvent;
import javafx.stage.Stage;
import static javafx.scene.input.MouseEvent.*;