Drawing an area using CSS -fx-shape. How is this possible?

I am looking for a way to draw shapes in an area (JavaFX8)

I saw several examples that set the style of a region as follows:

-fx-shape            : "M 3.0313 0 L 0 74 L 7.9688 74 L 4.9375 0 L 3.0313 0 Z";

Can anyone explain the meaning of this line?

Is there a way to create this type of string using Visual Software?

+4
source share
1 answer

The form string is an SVG Path .

Note that the form line for the area is the shape of the area, not the shape in the area. If you want to create shapes based on paths to place in a region, use SVGPath , not Region .

SVG- SVG.

SVG StackOverflow, Google, Inkscape ( Path | Object to Path).

+4

Source: https://habr.com/ru/post/1543890/


All Articles