Pattern

Chameleon\Patterns\Pattern

  • Class name: Pattern
  • Namespace: Chameleon\Patterns
  • Fully qualified class name: Chameleon\Patterns\Pattern
  • This class is abstract
  • Extends: SplFixedArray
  • Implements: Chameleon\Patterns\IPattern

    Methods

    getColorAt()

    IColor IPattern::getColorAt(integer $xCoordinate, integer $yCoordinate)

Get color in this pattern at the given position

  • Defined by Chameleon\Patterns\IPattern

    Arguments

  • $xCoordinate integer - <p>The x coordinate</p>

  • $yCoordinate integer - <p>The y coordinate</p>


__construct()

void Pattern::__construct(integer $colors)

Pattern constructor.

Arguments

  • $colors integer - <p>Number of colors used in this pattern</p>