# AcPattern
An abstract class
for all pattern formats to inherit. Intended to be used a common interface for all pattern formats.
# Instance Accessors
# type
The type of the pattern (e.g. Standard, Shirt, Dress, etc.)
get
- Type:
PatternType
- Type:
set
- Type:
PatternType
- Type:
# palette
The mapping for rendering colors.
get
- Type:
Array<
color
>
- Type:
# pixels
The arrangement of the pixels as a pixel grid, includes unused pixels.
get
- Type:
PixelsSource
- Type:
# sections
The different possible access mappings of the pattern.
get
- Type:
Object
- Properties:
texture
- Type:
PixelsSource
- Type:
[key: string]
- Type:
PixelsSource
- Type:
- Type:
# hooks
The hook system for subscribing to and triggering events.
get
- Type:
HookSystem
- Type:
# Static Methods
# nearestColorInColorSpace
Translates the inputColor to the closest available hex color in the space.