manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.1.1 Transparency (MGL)

There are several commands for setup transparency. The general command is alpha which switch on/off the transparency for overall plot. It influence only for graphics which created after alpha call. Command alphadef specify the default value of alpha-channel. You may switch off transparency of selected plot by command transparent. Finally, command transptype set the kind of transparency. See section Transparent surface sample, for sample code and picture.

MGL command: alpha [val=on]

Sets the transparency on/off. It is recommended to call this command before any plotting command. Default value is off. Use transparent off in particular plot to disable its transparency.

MGL command: alphadef val

Default value of alpha channel (transparency) for all plotting commands. Initial value is 0.5.

MGL command: transparent val

Temporary switches transparency on/off for the plot.

MGL command: transptype val

This command set the transparency type. Normal transparency (‘0’) – below things is less visible than upper ones. Glass-like transparency (‘1’) – below and upper things are commutable and just decrease intensity of light by RGB channel. Lamp-like transparency (‘2’) – below and upper things are commutable and are the source of some additional light. I recommend to set alphadef 0.3 or less for lamp-like transparency. See section Normal transparency, Glass-like transparency, Lamp-like transparency.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.