Class: QgsStyleColorRampEntity

A color ramp entity for QgsStyle databases.

Added in version 3.10.

Class Hierarchy

Inheritance diagram of qgis.core.QgsStyleColorRampEntity

Base classes

QgsStyleEntityInterface

An interface for entities which can be placed in a QgsStyle database.

Methods

ramp

Returns the entity's color ramp.

class qgis.core.QgsStyleColorRampEntity[source]

Bases: QgsStyleEntityInterface

__init__(ramp: QgsColorRamp | None)

Constructor for QgsStyleColorRampEntity, with the specified color ramp.

Ownership of ramp is NOT transferred.

Parameters:

ramp (Optional[QgsColorRamp])

__init__(a0: QgsStyleColorRampEntity)
Parameters:

a0 (QgsStyleColorRampEntity)

ramp(self) QgsColorRamp | None[source]

Returns the entity’s color ramp.

Return type:

Optional[QgsColorRamp]