function ctools_stylizer_image_processor::command_fill in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 includes/stylizer.inc \ctools_stylizer_image_processor::command_fill()
File
- includes/
stylizer.inc, line 422 - 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, ctools_color_gd($this->workspace, $this->palette[$color]));
}