Package com.studiojordanshaw.canvas2dmx
Class Canvas2DMX.PolygonFillConfig
java.lang.Object
com.studiojordanshaw.canvas2dmx.Canvas2DMX.PolygonFillConfig
- Enclosing class:
- Canvas2DMX
Configuration for polygon LED fill orientation.
Controls how LEDs are ordered when filling an arbitrary polygon.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatRotation angle in radians (applied to fill pattern, not polygon)booleanPrimary fill direction: true=horizontal rows, false=vertical columnsfloatSpacing between LEDs along the primary axis (pixels)intIf > 0, force an exact number of LEDs per row/column segment.floatMargin inset from polygon edges (pixels)floatSpacing between rows/columns (pixels)booleanIf true, alternate row directions (serpentine/zigzag wiring)intStarting corner: 0=TopLeft, 1=TopRight, 2=BottomRight, 3=BottomLeft -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionangle(float a) horizontal(boolean h) margin(float m) rowLedCount(int count) serpentine(boolean s) spacing(float led, float row) startAt(int corner)
-
Field Details
-
startCorner
public int startCornerStarting corner: 0=TopLeft, 1=TopRight, 2=BottomRight, 3=BottomLeft -
serpentine
public boolean serpentineIf true, alternate row directions (serpentine/zigzag wiring) -
horizontal
public boolean horizontalPrimary fill direction: true=horizontal rows, false=vertical columns -
ledSpacing
public float ledSpacingSpacing between LEDs along the primary axis (pixels) -
rowSpacing
public float rowSpacingSpacing between rows/columns (pixels) -
ledsPerRow
public int ledsPerRowIf > 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 angleRotation angle in radians (applied to fill pattern, not polygon) -
margin
public float marginMargin inset from polygon edges (pixels)
-
-
Constructor Details
-
PolygonFillConfig
public PolygonFillConfig() -
PolygonFillConfig
public PolygonFillConfig(float ledSpacing, float rowSpacing)
-
-
Method Details
-
startAt
-
serpentine
-
horizontal
-
spacing
-
rowLedCount
-
angle
-
margin
-