← All docs

cairo_fill()

Fills the current path with the current source and clears the path.

cairo_fill()

function cairo_fill(mixed $context): void

Fills the current path with the current source and clears the path.

Parameters:

  • $context (mixed)

Returns: void

Availability

  • Compiled (AOT): supported through the compiler-injected image prelude.
  • eval() (magician interpreter): not available inside eval’d code.

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

Internals

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