Description

Change the tone of the screen

Usage

Parameters

  • color {String}

    Hexadecimal color value. Example : 000000 for black. You can put "reset" to reset the tone of the screen :

    var effect = canvas.Effect.new(this, el);
    effect.changeScreenColorTone("reset");
    

  • speed {Integer}

    Speed of the tone color.

  • composite {String}

    lighter|darker Darken or lighten the screen

  • opacity {Integer}

    Change the tone to the opacity assigned. Value between 0 and 1

  • callback {Function} optional

    (optional) Callback when the tone color is completed

Discussion