You are here

function ctools_stylizer_image_processor::command_fill in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/stylizer.inc \ctools_stylizer_image_processor::command_fill()

File

includes/stylizer.inc, line 414
Create customized CSS and images from palettes created by user input.

Class

ctools_stylizer_image_processor

Code

function command_fill($color, $x, $y, $width, $height) {
  $this
    ->log("Fill: {$color} ({$x}, {$y}, {$width}, {$height})");
  imagefilledrectangle($this->workspace, $x, $y, $x + $width, $y + $height, _color_gd($this->workspace, $this->palette[$color]));
}