Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 612 Bytes

File metadata and controls

33 lines (19 loc) · 612 Bytes

setTint()

Availability

Adobe Animate 2019.

Usage

camera.setRotation(frameIndex, amount, red, green, blue)

Parameters

frameIndex:int amount:int red:int green:int blue:int

Return

nothing

Description

Set camera tint using tint color(RGB) & tint percent (percentage of tint).

Example

The following example sets camera tint using tint color(RGB) & tint percent (percentage of tint).

var timeline = an.getDocumentDOM().getTimeline();
timeline.camera.cameraEnabled = true;
timeline.camera.tintEnabled = true;

timeline.camera.setTint(0, 100,255,255,255 );