Overview
Creates a curved path element, defined by three new points,
by drawing a Bézier curve that intersects both the current coordinates
and the specified coordinates (x,y)
,
using the specified points (controlX1,controlY1)
and (controlX2,controlY2)
as Bézier control points. All coordinates are specified in double precision.
the code:
import javafx.scene.geometry.*;
import javafx.scene.paint.*;
Path {
fill:Color.BLACK
elements: [
MoveTo { x: 0 y: 50 },
CurveTo {
controlX1: 0 controlY1: 0
controlX2: 100 controlY2: 100
x: 100 y: 50
}
]
}
produces:
Profile: common
This comment needs review.
Attribute Summary
name | type | description |
---|---|---|
Public | ||
controlX1 | Number |
Defines the X coordinate of the first Bézier control point. More: [+]Defines the X coordinate of the first Bézier control point. Profile: common |
controlX2 | Number |
Defines the X coordinate of the second Bézier control point. More: [+]Defines the X coordinate of the second Bézier control point. Profile: common |
controlY1 | Number |
Defines the Y coordinate of the first Bézier control point. More: [+]Defines the Y coordinate of the first Bézier control point. Profile: common |
controlY2 | Number |
Defines the Y coordinate of the second Bézier control point. More: [+]Defines the Y coordinate of the second Bézier control point. Profile: common |
x | Number |
Defines the X coordinate of the final end point. More: [+]Defines the X coordinate of the final end point. Profile: common |
y | Number |
Defines the Y coordinate of the final end point. More: [+]Defines the Y coordinate of the final end point. Profile: common |
Protected |
Inherited Attributes
javafx.scene.geometry.PathElement
name | type | description |
---|---|---|
absolute | Boolean |
More: [+]
Profile: common |