/**
* Set Canvas size.
*
* @param int $width Canvas width.
* @param int $height Canvas height.
*
* @access public
*/
public function size(int $width, int $height): self
Examples
Set Canvas element size using fluent interface
use function Thermage\canvas;
use function Thermage\render;
// ...
render(
canvas()->size(16, 16)
);
Default Canvas element width is 16
and height is 16
.