BlendOperation
Defines the blend operations that can be used for blending colors.
| Type | Name | Interface Description |
|---|---|---|
| Enum | Add | • Function: Adds the source and destination colors. |
| Enum | Max | • Function: Takes the maximum of the source and destination colors. |
| Enum | Min | • Function: Takes the minimum of the source and destination colors. |
| Enum | ReverseSubtract | • Function: Subtracts the source color from the destination color. |
| Enum | Subtract | • 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) {
}
}