/**
 * Set Canvas pixels.
 * 
 * @param array $pixles Canvas pixels array with colors.
 * 
 * @access public
 */
public function pixels(array $pixels): self 

Examples

Set Canvas element pixels using fluent interface

use function Thermage\canvas;
use function Thermage\render;

// ...

render(
  canvas()->pixels([ ['red', 'red', 'red'], ['green', 'green', 'green'], ['blue', 'blue', 'blue'] ])
);
Terminal
$ php thermage.php