← All docs

cairo_matrix_init_identity()

Creates an identity transformation matrix.

cairo_matrix_init_identity()

function cairo_matrix_init_identity(): mixed

Creates an identity transformation matrix.

Parameters: none.

Returns: mixed

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