Class Canvas2DMX.PolygonFillConfig

java.lang.Object
com.studiojordanshaw.canvas2dmx.Canvas2DMX.PolygonFillConfig
Enclosing class:
Canvas2DMX

public static class Canvas2DMX.PolygonFillConfig extends Object
Configuration for polygon LED fill orientation. Controls how LEDs are ordered when filling an arbitrary polygon.
  • Field Details

    • startCorner

      public int startCorner
      Starting corner: 0=TopLeft, 1=TopRight, 2=BottomRight, 3=BottomLeft
    • serpentine

      public boolean serpentine
      If true, alternate row directions (serpentine/zigzag wiring)
    • horizontal

      public boolean horizontal
      Primary fill direction: true=horizontal rows, false=vertical columns
    • ledSpacing

      public float ledSpacing
      Spacing between LEDs along the primary axis (pixels)
    • rowSpacing

      public float rowSpacing
      Spacing between rows/columns (pixels)
    • ledsPerRow

      public int ledsPerRow
      If > 0, force an exact number of LEDs per row/column segment. When enabled, ledSpacing is ignored for that axis and LEDs are distributed evenly between the segment endpoints.
    • angle

      public float angle
      Rotation angle in radians (applied to fill pattern, not polygon)
    • margin

      public float margin
      Margin inset from polygon edges (pixels)
  • Constructor Details

    • PolygonFillConfig

      public PolygonFillConfig()
    • PolygonFillConfig

      public PolygonFillConfig(float ledSpacing, float rowSpacing)
  • Method Details