Class Canvas2DMX.RowLayoutConfig

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

public static class Canvas2DMX.RowLayoutConfig extends Object
Configuration for row-based polygon LED fill using fixed LED counts per row. Each row's LEDs are distributed across the polygon's width at that row.
  • Field Details

    • ledsPerRow

      public int[] ledsPerRow
      LEDs per row (top-to-bottom if startCorner is top, else bottom-to-top).
    • 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
    • rowSpacing

      public float rowSpacing
      Row/column spacing (pixels). If <= 0, rows are evenly distributed.
    • angleDeg

      public float angleDeg
      Row direction angle in degrees (0 = left-to-right)
    • margin

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

    • RowLayoutConfig

      public RowLayoutConfig(int[] ledsPerRow)
  • Method Details