Module SypherEngine
Class GradientBuilder
java.lang.Object
dev.aurumbyte.sypherengine.core.graphics.gradients.GradientBuilder
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription(package private) javafx.scene.paint.CycleMethod
(package private) Vector2
(package private) int
(package private) int
(package private) GradientBuilder.GradientType
(package private) boolean
(package private) Vector2
(package private) int
(package private) Vector2
(package private) List<javafx.scene.paint.Stop>
-
Constructor Summary
ConstructorDescriptionGradientBuilder
(Vector2 center, int focusAngle, int focusDistance, int radius, List<javafx.scene.paint.Stop> stops) GradientBuilder
(Vector2 center, int focusAngle, int focusDistance, int radius, javafx.scene.paint.Stop[] stops) GradientBuilder
(Vector2 start, Vector2 end, List<javafx.scene.paint.Stop> stops) GradientBuilder
(Vector2 start, Vector2 end, javafx.scene.paint.Stop[] stops) -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.paint.Paint
List<javafx.scene.paint.Stop>
getStops()
void
setCycleMethod
(javafx.scene.paint.CycleMethod cycleMethod) void
void
setifProportional
(boolean proportional) void
setPosition
(Vector2 position) void
-
Field Details
-
gradientType
GradientBuilder.GradientType gradientType -
stops
List<javafx.scene.paint.Stop> stops -
start
Vector2 start -
end
Vector2 end -
position
Vector2 position -
focusAngle
int focusAngle -
focusDistance
int focusDistance -
radius
int radius -
isProportional
boolean isProportional -
cycleMethod
javafx.scene.paint.CycleMethod cycleMethod
-
-
Constructor Details
-
GradientBuilder
-
GradientBuilder
-
GradientBuilder
-
GradientBuilder
public GradientBuilder(Vector2 center, int focusAngle, int focusDistance, int radius, javafx.scene.paint.Stop[] stops)
-
-
Method Details
-
buildGradient
public javafx.scene.paint.Paint buildGradient() -
getGradientType
-
getStops
-
setifProportional
public void setifProportional(boolean proportional) -
setStart
-
setEnd
-
setPosition
-
setCycleMethod
public void setCycleMethod(javafx.scene.paint.CycleMethod cycleMethod)
-