# 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
  • set
    • Type: PatternType

# palette

The mapping for rendering colors.

# pixels

The arrangement of the pixels as a pixel grid, includes unused pixels.

# sections

The different possible access mappings of the pattern.

# hooks

The hook system for subscribing to and triggering events.

# Static Methods

# nearestColorInColorSpace

Translates the inputColor to the closest available hex color in the space.

  • Arguments:
    • inputColorrequired
  • Returns
Last Updated: 11/30/2020, 9:31:43 PM