← All docs

cairo_arc()

Adds a clockwise arc of the given radius and angle span to the current path.

cairo_arc()

function cairo_arc(mixed $context, float $xc, float $yc, float $radius, float $angle1, float $angle2): void

Adds a clockwise arc of the given radius and angle span to the current path.

Parameters:

  • $context (mixed)
  • $xc (float)
  • $yc (float)
  • $radius (float)
  • $angle1 (float)
  • $angle2 (float)

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_arc is implemented in the compiler, see the internals page.