function ctools_stylizer_image_processor::command_fill in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 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
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]));
}