> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# useGraphics

> Register the graphics library.

import { PageLink } from '/snippets/tsdocs/PageLink.jsx';
import { RefLink } from '/snippets/tsdocs/RefLink.jsx';

# useGraphics

## Summary

Register the graphics library.

## Signature

```typescript theme={null}
useGraphics(library: IGraphicsLibrary): void;
```

## Parameters

### library

**Type**:`IGraphicsLibrary`

Graphics library instance (e.g. Graphics2DLibrary).

## Returns

**Type**:`void`

Register the graphics library.
