← All docs

cairo_set_source()

Uses a pattern as the source for subsequent drawing.

cairo_set_source()

function cairo_set_source(mixed $context, mixed $pattern): void

Uses a pattern as the source for subsequent drawing.

Parameters:

  • $context (mixed)
  • $pattern (mixed)

Returns: void

Availability

Compiled (AOT)Magician (eval)
AvailableNot available yet

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

Internals

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