Color

Overview

Color is a class in Aspose.PDF FOSS for Python.

Represents a color in PDF documents.

This class provides 1 method for working with Color objects in Python programs. Available methods include: __init__. All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: pattern_color_space, r.

Properties

NameTypeAccessDescription
pattern_color_spaceGradientAxialShading | NoneReadGet the pattern color space (gradient).
rfloatReadGet the red component.

Methods

SignatureDescription
__init__(pattern_color_space: GradientAxialShading | None, r: float, g: float, b: float)Initialize a color.

See Also