Class: QgsStyleColorRampEntity

class qgis.core.QgsStyleColorRampEntity

Bases: QgsStyleEntityInterface

A color ramp entity for QgsStyle databases.

New in version 3.10.

QgsStyleColorRampEntity(ramp: QgsColorRamp) Constructor for QgsStyleColorRampEntity, with the specified color ramp.

Ownership of ramp is NOT transferred.

QgsStyleColorRampEntity(QgsStyleColorRampEntity)

Methods

ramp

Returns the entity's color ramp.

type

rtype:

QgsStyle.StyleEntity

ramp(self) QgsColorRamp

Returns the entity’s color ramp.

Return type:

QgsColorRamp

type(self) QgsStyle.StyleEntity
Return type:

QgsStyle.StyleEntity