Class: QgsCptCityColorRamp¶
A color ramp from the CPT City collection.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Gradient color ramp, which smoothly interpolates between two colors and also supports optional extra color stops. |
|
Abstract base class for color ramps. |
Methods
Static Methods
Creates the symbol layer |
|
Returns the string identifier for QgsCptCityColorRamp. |
- class qgis.core.QgsCptCityColorRamp[source]¶
Bases:
QgsGradientColorRamp- __init__(schemeName: str | None = '', variantName: str | None = '', inverted: bool = False, doLoadFile: bool = True)
Constructor for QgsCptCityColorRamp
- __init__(schemeName: str | None, variantList: Iterable[str | None], variantName: str | None = '', inverted: bool = False, doLoadFile: bool = True)
Constructor for QgsCptCityColorRamp
- __init__(a0: QgsCptCityColorRamp)
- Parameters:
a0 (QgsCptCityColorRamp)
- cloneGradientRamp(self) QgsGradientColorRamp | None[source]¶
- Return type:
- copy(self, other: QgsCptCityColorRamp | None)[source]¶
- Parameters:
other (Optional[QgsCptCityColorRamp])
- static create(properties: dict[str | None, Any] = {}) QgsColorRamp | None[source]¶
Creates the symbol layer
- Parameters:
- Return type:
- setName(self, schemeName: str | None, variantName: str | None = '', variantList: Iterable[str | None] = [])[source]¶
- setVariantList(self, variantList: Iterable[str | None])[source]¶
- Parameters:
variantList (Iterable[Optional[str]])