Java examples for JavaFX:Shape
JavaFX circle Points
//package com.java2s; import javafx.geometry.Point2D; import javafx.scene.image.PixelWriter; import javafx.scene.paint.Color; public class Main { static void circlePoints(Point2D center, int x, int y, Color color, PixelWriter pw) {//www . j a v a 2 s . c o m pw.setColor(x, y, color); pw.setColor(y, x, color); pw.setColor((int) (center.getX() - x), y, color); pw.setColor(y, (int) (center.getX() - x), color); pw.setColor(x, (int) (center.getY() - y), color); pw.setColor((int) (center.getY() - y), x, color); pw.setColor((int) (center.getX() - x), (int) (center.getY() - y), color); pw.setColor((int) (center.getY() - y), (int) (center.getX() - x), color); } }