Esposter
    Preparing search index...

    Interface TintConfiguration

    interface TintConfiguration {
        isTinted: boolean;
        tint: number;
        tintBottomLeft: number;
        tintBottomRight: number;
        tintFill: boolean;
        tintTopLeft: number;
        tintTopRight: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    isTinted: boolean

    Does this Game Object have a tint applied?

    It checks to see if the 4 tint properties are set to the value 0xffffff and that the tintFill property is false. This indicates that a Game Object isn't tinted.

    tint: number

    The tint value being applied to the whole of the Game Object. Return tintTopLeft when read this tint property.

    tintBottomLeft: number

    The tint value being applied to the bottom-left vertice of the Game Object. This value is interpolated from the corner to the center of the Game Object. The value should be set as a hex number, i.e. 0xff0000 for red, or 0xff00ff for purple.

    tintBottomRight: number

    The tint value being applied to the bottom-right vertice of the Game Object. This value is interpolated from the corner to the center of the Game Object. The value should be set as a hex number, i.e. 0xff0000 for red, or 0xff00ff for purple.

    tintFill: boolean

    The tint fill mode.

    false = An additive tint (the default), where vertices colors are blended with the texture. true = A fill tint, where the vertices colors replace the texture, but respects texture alpha.

    tintTopLeft: number

    The tint value being applied to the top-left vertice of the Game Object. This value is interpolated from the corner to the center of the Game Object. The value should be set as a hex number, i.e. 0xff0000 for red, or 0xff00ff for purple.

    tintTopRight: number

    The tint value being applied to the top-right vertice of the Game Object. This value is interpolated from the corner to the center of the Game Object. The value should be set as a hex number, i.e. 0xff0000 for red, or 0xff00ff for purple.