Overview
The RTriangle class defines a right triangle, a triangle with one 90 degree angle
the code:
import org.jfxtras.scene.shape.RTriangle;
import javafx.scene.paint.*;
RTriangle {
angle: 0
x: 10
y: 10
width: 50
height: 50
rotateAtCenter: false
anglePosition: RTriangle.ANGLE_AT_END
fill: Color.BLACK
}produces:

Profile: desktop
Script Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | ANGLE_AT_END | Integer | ![]() | ||||
| public | ANGLE_AT_START | Integer | ![]() | ||||
| public | NONE | Integer | ![]() |
Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | anglePosition | Number | ![]() | ![]() | ![]() | RTriangle.ANGLE_AT_START |
Defines the position of the 90 degree angle.
Defines the position of the 90 degree angle. Valid values RTriangle.NONE, RTriangle.ANGLE_AT_START, and RTriangle.ANGLE_AT_END. RTriangle.ANGLE_AT_START |
| public | height | Number | ![]() | ![]() | ![]() | 40 |
Defines the height of the triangle in pixels. |
| public | width | Number | ![]() | ![]() | ![]() | 80 |
Defines the width of the triangle's sides in pixels. |
| public | x | Number | ![]() | ![]() | ![]() | 0.0 |
Defines the X coordinate of the triangle's lower left point |
| public | y | Number | ![]() | ![]() | ![]() | 0.0 |
Defines the Y coordinate of the triangle's lower left point. |

