Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:opa}
h2. Name

*opa* — Opacity

h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}

*opa* _opacity_ \[*l*] \[*all*] 

{panel}

h2. Description

Set opacity to one or more displayed objects. 

h2. Arguments

_opacity_ 
{indent}A number between 0 and 1, where 1 is no opacity. With no further arguments, this will be applied to current actor list.{indent} 
*l* _from to_ 
{indent}Actorlist from _from_ to _to_, _from_ and _to_ are actor list numbers (integers).{indent} 
*all* 
{indent}All actor lists are given the opacity.{indent}
 
h2. Examples

h3. Ex.1: Opacity for display lists

{noformat:|borderWidth=1|bgColor=#eeeeee}
        z                        ;# Erase screen
        win demo                 ;# Get demo window (450000 460000 6450000 6460000 1000 4000)
        spe bgc whi              ;# Specify background color to white
        mak ran 11               ;# Make 11 random points
        grp 222 222              ;# Make grid
        oco frq 14 col bla liw 2 ;# Draw orthogonal contours
        oco dar                  ;# Calculate drainage areas
        map drain                ;# Map the drainage areas
        cln 2                    ;# Shift to display list 2
        gen 44 44 44             ;# Generate a dummy cube
        mak ras                  ;# Make random scalars
        dis                      ;# Display the cube
        opa .4                   ;# Set opacity 0.4 in display list 2
{noformat}

The above example produces this image.

!att:_img_ref^cmd_opa.png!
_Opacity in cube_

h2. See also

[acp|acp - Actor properties] _opa_ , [dis|dis - Display active dataset] _opa_ , [map|map - Map display] _opa_ , [amb - Ambient light]
{pagebreak}