Skip to main content

BlendOperation

Defines the blend operations that can be used for blending colors.

TypeNameInterface Description
EnumAdd

Function: Adds the source and destination colors.

EnumMax

Function: Takes the maximum of the source and destination colors.

EnumMin

Function: Takes the minimum of the source and destination colors.

EnumReverseSubtract

Function: Subtracts the source color from the destination color.

EnumSubtract

Function: Subtracts the destination color from the source color.

Examples

Add

let value = APJS.BlendOperation.Add;

Max

let value = APJS.BlendOperation.Max;

Min

let value = APJS.BlendOperation.Min;

ReverseSubtract

let value = APJS.BlendOperation.ReverseSubtract;

Subtract

let value = APJS.BlendOperation.Subtract;

Use Case

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