Transparency

These are the attributes for using transparency in PDF graphics. The transparency is speficied by a fraction, with 1.0 for fully transparent and 0.0 for fully opaque. Since transparency can also be thought of in terms of opacity, there are accessors defined in those terms also. Thus, for example, setting fill_opacity to 0.2 is equivalent to setting fill_transparency to 0.8.

FigureMaker methods

FigureMaker attributes

fill_opacity  [ doc | example ]

Defines the opacity to use for `fill()` and other non-stroke
graphics operations including images.  Valid values are
between 1.0 (fully opaque) to 0.0 (fully transparent).
Default is 1.0 (opaque).

Example

On left, fill_opacity = 1.0; on right fill_opacity = 0.6.

stroke_opacity  [ doc ]

Defines the opacity to use for `stroke()` operations.  Valid
values are between 1.0 (fully opaque) to 0.0 (fully
transparent).  Default is 1.0 (opaque).

fill_transparency  [ doc | example ]

Defines the transparency to use for fill and other non-stroke
graphics operations including images.  Valid values are
between 0.0 (fully opaque) to 1.0 (fully transparent).
Default is 0.0 (opaque).

Example

On left, fill_transparency = 0.0; on right fill_transparency = 0.4.

stroke_transparency  [ doc ]

Defines the transparency to use for stroke operations.  Valid
values are between 0.0 (fully opaque) to 1.0 (fully
transparent).  Default is 0.0 (opaque).

PyTioga version: alpha (20071021)

Copyright (C) 2007 Taro Sato & Bill Paxton. All rights reserved.