Description

An attack is a quick and strong distortion of reality, created with the purpose of grabbing the user attention or to process the visual sensation as an attack by an exterior force.
Attacks can be done by changing quickly colors, texts, images and dimensions.

This plugin has the following built-in attack tasks:

  • color-attack - produces a change in colors, returning to the original color at the end.
 

API

AttackTaskName

public export type

export type AttackTaskName =
    /** @see #ColorAttackTaskParams */
    | 'color-attack';

AttackTaskParams

public export type

export type AttackTaskParams =
    ColorAttackTaskParams;
 

ColorAttackTaskParams

public export interface

export interface ColorAttackTaskParams extends AnyParams{ }

ColorAttackTaskParams.attack

public property [ColorAttackTaskParams]

attack: string[];

List of colors to attack the original color.

ColorAttackTaskParams.prop

public property [ColorAttackTaskParams]

prop?: string;

Property Name.
default: : 'color'

ColorAttackTaskParams.cycles

public property [ColorAttackTaskParams]

cycles?: uint | ExprString;

Number of times it will attack the color before returning to the original.
Expressions are supported.

ColorAttackTaskParams.endColor

public property [ColorAttackTaskParams]

endColor?: string;

Color to end the attack. If undefined, it uses the original color.