Name
SetLayerTransparency -- set transparency of a layer (V1.5)
Synopsis
SetLayerTransparency(id, level)
Function
This function can be used to assign transpareny levels to layers. The transparency level can be from 0 to 255, where 0 means no transparency (layer default setting) and 255 is full transparency which means that you will not see the layer any more. Please note that this is just the other way round from SetAlphaIntensity() where 255 means no transparency and 0 means full transparency.

Starting with Hollywood 2.0, level can also be a string containing a percent specification, e.g. "50%".

Please note: Transparency calculations take some time on slow 68k computers. Therefore this function is only of limited use if your computer is too slow.

You need to enable layers before you can use this function. See Layers introduction for details.

Inputs
id
id or name of the layer
level
transparency level to apply (0 to 255 or percent specification)
Example
EnableLayers()

; do not display the text, just add the layer
SelectBGPic(1)
TextOut(#RIGHT, #BOTTOM, "Hello World")
EndSelect

; now it will be displayed!
SetLayerTransparency(1, 128)
The code above creates layer 1 (text "Hello World") and makes it appear with a transparency of 50% (= 128).

Show TOC