# paintScene Type

> paintScene type alias in the TX Sheet Control TypeScript API for Node.js, with the parameters drawingContext, scene and images and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > paintScene Type
- **399 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/paintscene/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/paintscene/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/paintscene/llms-full.txt

---

Public type for paintScene.

Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Syntax

```typescript
paintScene(drawingContext: CanvasRenderingContext2D, scene: PageScene, images?: Map<string, CanvasImageSource>): void
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `drawingContext` | `CanvasRenderingContext2D` | No | Value matching drawingContext's declared type and the owning object's validation rules. |
| `scene` | `PageScene` | No | Value matching scene's declared type and the owning object's validation rules. |
| `images` | `Map<string, CanvasImageSource> \| undefined` | Yes | Value matching images's declared type and the owning object's validation rules. |

### Return Value

`void`.

### Examples

Pass the paintScene value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

```typescript
function inspectpaintScene(paintScene: { value: unknown }) {
    const value = paintScene;
    console.log('paintScene.value', value);
}
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## Nearby

- **Previous:** [PageSetupPatch.showHeadings Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pagesetuppatch/showheadings-property/llms-full.txt)
- **Next:** [PasteMode Type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/pastemode/llms-full.txt)
