object.clearColor

Type Paint
Object SnapshotObject
Library display.*
Revision Release 2024.3703
Keywords color
See also display.newSnapshot()
snapshot:invalidate()

Overview

The clear color controls how the snapshot's texture is cleared when the snapshot is invalidated.

By default, the texture is cleared with 0 for all color channels.

Syntax

snapshot.clearColor

Example

-- Clear with red
snapshot.clearColor = { 1, 0, 0 }