Tint Screen
Tint Screen¶
Applies or remove a color tint on the screen using an easing function.
Properties¶
System¶
| Name | Explanation | Type |
|---|---|---|
| Color | The color to tint the screen with. | Color |
| Easing Function | The easing function that controls the tint transition over time. | Easing Function |
| Enable Tint | Whether to apply a tint to the screen. When disabled, the tint is removed. | Toggle |
| Run Asynchronously | Whether the tint runs asynchronously, allowing subsequent commands to execute without waiting. | Toggle |
Examples¶
Tint Screen Red with a Linear Transition¶
Applies a red tint to the screen over 1000 milliseconds using a linear easing function.
{"Data":{"EasingFunction":{"Duration":"00:00:01","TypeName":"MAR.Game.Shared.Models.Natives.EasingFunctions.LinearEasingFunction"},"IsAsynchronousOperation":false,"IsTinting":true,"TintColor":"#FF0000","Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Animation.TintScreenCommand"}
Remove Screen Tint with a Linear Transition¶
Removes the screen tint over 500 milliseconds using a linear easing function.
{"Data":{"EasingFunction":{"Duration":"00:00:00.5000000","TypeName":"MAR.Game.Shared.Models.Natives.EasingFunctions.LinearEasingFunction"},"IsAsynchronousOperation":false,"IsTinting":false,"TintColor":"#000000","Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Animation.TintScreenCommand"}
Tint Screen Asynchronously with a Bounce Effect¶
Applies a red tint using a bounce easing function over 2000 milliseconds without blocking subsequent commands.
{"Data":{"EasingFunction":{"Duration":"00:00:02","TypeName":"MAR.Game.Shared.Models.Natives.EasingFunctions.BounceEasingFunction"},"IsAsynchronousOperation":true,"IsTinting":true,"TintColor":"#FF0000","Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Animation.TintScreenCommand"}