BackgroundColor

Chameleon\Patterns\BackgroundColor

BackgroundColor represents a plain unicolor background, equivalent to background-color in CSS

  • Class name: BackgroundColor
  • Namespace: Chameleon\Patterns
  • Fully qualified class name: Chameleon\Patterns\BackgroundColor
  • Extends: Chameleon\Patterns\Pattern

Methods

__construct()

void Pattern::__construct(integer $colors)

Pattern constructor.


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>