Skip to main content

Grain

Represents a PostEffect specifically designed for the Grain.

TypeNameInterface Description
Variablescolor: number

Function: Gets or sets the grain color contribution. Adjusts how much color noise is blended into the effect. Range: [0, 1].

Variablesspeed: number

Function: Gets or sets the grain animation speed. Higher values make the grain move faster across frames. Range: [0, 10].

Variablesstrength: number

Function: Gets or sets the grain strength. Controls the overall intensity of the film grain effect. Range: [0, 1].

Functionsconstructor()

Examples

constructor()

let obj = new APJS.Grain();

Use Case

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use Grain here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies