Constructor
new PatternActionEvent(tileValue, tileXIndex, tileYIndex, patternIndex, autoCompute, type, x, y)
Name | Type | Description |
---|---|---|
tileValue |
Object | The value of the tile in the pattern |
tileXIndex |
Number | The x index of the tile in the pattern |
tileYIndex |
Number | The y index of the tile in the pattern |
patternIndex |
Number | The index of the pattern; 0. |
autoCompute |
Boolean | Auto calculate the x and y specific location of the tile in the pattern. Uses BlitMath._specs.blitWidth and BlitMath._specs.blitHeight * the tileXIndex and tileYIndex given. |
type |
String | The type of PatternActionEvent either "patternActionEvent" or "functionAssignment" |
x |
Number | The specific x location of the tile referenced by this Event. |
y |
Number | The specific y location, in the pattern given to BlitMath.dispatchFunctionAssignments, of the tile referenced by this Event. |
Members
autoCompute
constructor
patternIndex
tileValue
tileXIndex
tileYIndex
typeToBe
x
y
Methods
clone() → {PatternActionEvent}
Clones the PatternActionEvent.
- Type
- PatternActionEvent