← All docs

imagesetpixel()

Sets one pixel to a color.

imagesetpixel()

function imagesetpixel(mixed $image, int $x, int $y, int $color): bool

Sets one pixel to a color.

Parameters:

  • $image (mixed)
  • $x (int)
  • $y (int)
  • $color (int)

Returns: bool

Availability

Compiled (AOT)Magician (eval)
AvailableNot available yet

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how imagesetpixel is implemented in the compiler, see the internals page.