Package mindustry.entities.effect
Class TriangleEffect
java.lang.Object
mindustry.entities.Effect
mindustry.entities.effect.TriangleEffect
Creates a triangle with heavily customizable parameters.
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.entities.Effect
Effect.EffectContainer -
Field Summary
FieldsModifier and TypeFieldDescriptionarc.graphics.ColorTriangle color.arc.math.InterpTriangle color interpolation.arc.graphics.ColorTriangle color.floatControls the starting and ending positions of the triangle.floatControls the starting and ending positions of the triangle.booleanGives the effect flipping compatability like casing effects.floatControls the initial and final positions of each point on the triangle.arc.math.InterpHeight interpolation.floatControls the initial and final positions of each point on the triangle.arc.math.InterpTriangle position interpolation.arc.graphics.ColorColor of the light the triangle emits.floatTriangle light properties.floatTriangle light properties.floatTriangle light properties.floatRotation offset.intSpin in degrees/tick.floatControls the starting and ending positions of the triangle.floatControls the starting and ending positions of the triangle.booleanWhether the rotation adds with the parentfloatControls the initial and final positions of each point on the triangle.arc.math.InterpWidth interpolation.floatControls the initial and final positions of each point on the triangle.Fields inherited from class mindustry.entities.Effect
all, baseRotation, clip, followParent, id, layer, layerDuration, lifetime, renderer, rotWithParent, startDelay -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class mindustry.entities.Effect
add, at, at, at, at, at, at, at, at, at, baseRotation, create, decal, decal, floorDust, floorDustAngle, followParent, get, layer, layer, render, rotWithParent, rubble, scorch, shake, shake, shockwaveDust, shockwaveDust, shouldCreate, startDelay, wrap, wrap
-
Field Details
-
colorFrom
public arc.graphics.Color colorFromTriangle color. -
colorTo
public arc.graphics.Color colorToTriangle color. -
flippable
public boolean flippableGives the effect flipping compatability like casing effects. -
interp
public arc.math.Interp interpTriangle position interpolation. Also used as a fallback. -
widthInterp
@Nullable public arc.math.Interp widthInterpWidth interpolation. Null to use interp. -
heightInterp
@Nullable public arc.math.Interp heightInterpHeight interpolation. Null to use interp. -
colorInterp
@Nullable public arc.math.Interp colorInterpTriangle color interpolation. Null to use interp. -
startX
public float startXControls the starting and ending positions of the triangle. -
startY
public float startYControls the starting and ending positions of the triangle. -
endX
public float endXControls the starting and ending positions of the triangle. -
endY
public float endYControls the starting and ending positions of the triangle. -
lightScl
public float lightSclTriangle light properties. -
lightOpacityFrom
public float lightOpacityFromTriangle light properties. -
lightOpacityTo
public float lightOpacityToTriangle light properties. -
lightColor
@Nullable public arc.graphics.Color lightColorColor of the light the triangle emits. -
widthFrom
public float widthFromControls the initial and final positions of each point on the triangle. -
widthTo
public float widthToControls the initial and final positions of each point on the triangle. -
heightFrom
public float heightFromControls the initial and final positions of each point on the triangle. -
heightTo
public float heightToControls the initial and final positions of each point on the triangle. -
useRotation
public boolean useRotationWhether the rotation adds with the parent -
spin
public int spinSpin in degrees/tick. -
offset
public float offsetRotation offset.
-
-
Constructor Details
-
TriangleEffect
public TriangleEffect()
-
-
Method Details