Class TriangleEffect

java.lang.Object
mindustry.entities.Effect
mindustry.entities.effect.TriangleEffect

public class TriangleEffect extends Effect
Creates a triangle with heavily customizable parameters.
  • Field Details

    • colorFrom

      public arc.graphics.Color colorFrom
      Triangle color.
    • colorTo

      public arc.graphics.Color colorTo
      Triangle color.
    • flippable

      public boolean flippable
      Gives the effect flipping compatability like casing effects.
    • interp

      public arc.math.Interp interp
      Triangle position interpolation. Also used as a fallback.
    • widthInterp

      @Nullable public arc.math.Interp widthInterp
      Width interpolation. Null to use interp.
    • heightInterp

      @Nullable public arc.math.Interp heightInterp
      Height interpolation. Null to use interp.
    • colorInterp

      @Nullable public arc.math.Interp colorInterp
      Triangle color interpolation. Null to use interp.
    • startX

      public float startX
      Controls the starting and ending positions of the triangle.
    • startY

      public float startY
      Controls the starting and ending positions of the triangle.
    • endX

      public float endX
      Controls the starting and ending positions of the triangle.
    • endY

      public float endY
      Controls the starting and ending positions of the triangle.
    • lightScl

      public float lightScl
      Triangle light properties.
    • lightOpacityFrom

      public float lightOpacityFrom
      Triangle light properties.
    • lightOpacityTo

      public float lightOpacityTo
      Triangle light properties.
    • lightColor

      @Nullable public arc.graphics.Color lightColor
      Color of the light the triangle emits.
    • widthFrom

      public float widthFrom
      Controls the initial and final positions of each point on the triangle.
    • widthTo

      public float widthTo
      Controls the initial and final positions of each point on the triangle.
    • heightFrom

      public float heightFrom
      Controls the initial and final positions of each point on the triangle.
    • heightTo

      public float heightTo
      Controls the initial and final positions of each point on the triangle.
    • useRotation

      public boolean useRotation
      Whether the rotation adds with the parent
    • spin

      public int spin
      Spin in degrees/tick.
    • offset

      public float offset
      Rotation offset.
  • Constructor Details

    • TriangleEffect

      public TriangleEffect()
  • Method Details