Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Unknown macro: {alias}

Name

opa — Opacity

Syntax

opa opacity [l] [all]

Description

Set opacity to one or more displayed objects.

Arguments

opacity

Unknown macro: {indent}

A number between 0 and 1, where 1 is no opacity. With no further arguments, this will be applied to current actor list.

l from to

Unknown macro: {indent}

Actorlist from from to to, from and to are actor list numbers (integers).

all

Unknown macro: {indent}

All actor lists are given the opacity.

Examples

Ex.1: Opacity for display lists

        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

The above example produces this image.


Opacity in cube

See also

acp opa , dis opa , map opa , amb - Ambient light

  • No labels