← All docs

imagefilltoborder()

Flood-fills from a point until it reaches a border color.

imagefilltoborder()

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

Flood-fills from a point until it reaches a border color.

Parameters:

  • $image (mixed)
  • $x (int)
  • $y (int)
  • $border_color (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 imagefilltoborder is implemented in the compiler, see the internals page.