← All docs

cairo_rotate()

Rotates the context's transformation by the given angle in radians.

cairo_rotate()

function cairo_rotate(mixed $context, float $angle): void

Rotates the context’s transformation by the given angle in radians.

Parameters:

  • $context (mixed)
  • $angle (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_rotate is implemented in the compiler, see the internals page.