Skip to main content

ClearColorOption

Enum

Settings for how color will be cleared before rendering.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Since Lens Scripting v272

Index

Enumeration Members

Background

Background: number

Use the Device Texture for the color color

Since

Lens Scripting Version 272


CustomColor

CustomColor: number

The frame will be cleared with a color before being rendered to.

Since

Lens Scripting Version 272


CustomTexture

CustomTexture: number

The frame will be cleared with a texture before being rendered to.

Since

Lens Scripting Version 272


None

None: number

The frame will not be cleared before being rendered to (draws over the previous frame).

Since

Lens Scripting Version 272