import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.scene.shape.LineTo;
import javafx.scene.shape.MoveTo;
import javafx.scene.shape.Path;
import javafx.scene.shape.SVGPath;
import javafx.stage.Stage;
public class Main extends Application {
public static void main(String[] args) {
Application.launch(args);
}
@Override
public void start(Stage stage) {
Path pathTriangle = new Path(new MoveTo(50, 0), new LineTo(0, 50),
new LineTo(100, 50), new LineTo(50, 0));
pathTriangle.setFill(Color.LIGHTGRAY);
pathTriangle.setStroke(Color.BLACK);
SVGPath svgTriangle = new SVGPath();
svgTriangle.setContent("M50, 0 L10, 20 L100, 50 Z");
svgTriangle.