← All docs

imagefilledpolygon()

Draws a filled polygon.

imagefilledpolygon()

function imagefilledpolygon(mixed $image, array $points, int $color): bool

Draws a filled polygon.

Parameters:

  • $image (mixed)
  • $points (array)
  • $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 imagefilledpolygon is implemented in the compiler, see the internals page.