/**
 * Set pixel.
 * 
 * @param int    $x     Canvas pixel position x.
 * @param int    $y     Canvas pixel position y.
 * @param string $color Canvas pixel color.
 * 
 * @access public
 */
public function pixel(int $x, int $y, string $color): self

Examples

Set Canvas element pixel using fluent interface

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

// ...

render(
  canvas()->pixel(0, 0, 'green')
);
Terminal
$ php thermage.php