Font Effects

Effects can enhance or distort the appearance of fonts in various ways and some effects are provided with Lightwing that are specifically for use with fonts for the text and ticker commands. Their names begin with the term Font. This example uses the effect option of the text command to apply several different effects to the fonts used for the text on these pages. This option can also be used with the ticker command in the same way. This option overrides the default font effect which is named Font. An extension of .pfx is assumed for effects.

The arg0 option defines effect-specific parameters for the selected font effect. Up to four floating-point values are passed to the effect for arg0. The meaning of these values is different for each effect. These parameters are required by some effects, but ignored by the default font effect. To determine the appropriate values for particular effects, refer to the comments in the effect files. Also refer to the online Scripting Guide for more details about these commands.

// Scripting Tutorial - Font Effects

version: 1.0

page: Mercury                time: 1, 3    image: PlanetMercuryBackground.pvr
    text: OpenSansBold_100    time: 1, 2    fade: 1, 1    position: 50, 50    align: CenterCenter    type: "Hello Mercury!"   effect: FontColorBlocks                  arg0: 1, 0, 0, 1

page: Venus                    time: 1, 3    image: PlanetVenusBackground.pvr
    text: OpenSansBold_100    time: 1, 2    fade: 1, 1    position: 50, 50    align: CenterCenter    type: "Hello Venus!"      effect: FontColorAnimate                arg0: 0, 0, 1

page: Earth                    time: 1, 3    image: PlanetEarthBackground.pvr
    text: OpenSansBold_100    time: 1, 2    fade: 1, 1    position: 50, 50    align: CenterCenter    type: "Hello Earth!"       effect: FontEclipseAnimate

page: Mars                    time: 1, 3    image: PlanetMarsBackground.pvr
    text: OpenSansBold_100    time: 1, 2    fade: 1, 1    position: 50, 50    align: CenterCenter    type: "Hello Mars!"        effect: FontPixelAnimate

page: Jupiter                time: 1, 3    image: PlanetJupiterBackground.pvr
    text: OpenSansBold_100    time: 1, 2    fade: 1, 1    position: 50, 50    align: CenterCenter    type: "Hello Jupiter!"     effect: FontStaticAnimate                arg0: 1, 0

page: Saturn                time: 1, 3    image: PlanetSaturnBackground.pvr
    text: OpenSansBold_100    time: 1, 2    fade: 1, 1    position: 50, 50    align: CenterCenter    type: "Hello Saturn!"      effect: FontRollSplitAnimate           arg0: 0.1

page: Uranus                time: 1, 3    image: PlanetUranusBackground.pvr
    text: OpenSansBold_100    time: 1, 2    fade: 1, 1    position: 50, 50    align: CenterCenter    type: "Hello Uranus!"     effect: FontStaticBlocksAnimate    arg0: 0.1, 0.1

page: Neptune              time: 1, 3    image: PlanetNeptuneBackground.pvr
    text: OpenSansBold_100    time: 1, 2    fade: 1, 1    position: 50, 50    align: CenterCenter    type: "Hello Neptune!"   effect: FontStaticFadeAnimate       arg0: 0.1, 0.1

page: Pluto                    time: 1, 3    image: PlanetPlutoCharonBackground.pvr
    text: OpenSansBold_100    time: 1, 2    fade: 1, 1    position: 50, 50    align: CenterCenter    type: "Hello Pluto!"         effect: FontScatterAnimate              arg0: 0.2, 0.2
    jump: Mercury

 

 

<   Object Effects                                             Introduction                                            Branching   >