ColorRampElement(bpy_struct)#
base class — bpy_struct
- class bpy.types.ColorRampElement(bpy_struct)#
Element defining a color at a position in the color ramp
- alpha#
Set alpha of selected color stop
- Type:
float in [0, inf], default 0.0
- color#
Set color of selected color stop
- Type:
float array of 4 items in [0, inf], default (0.0, 0.0, 0.0, 0.0)
- position#
Set position of selected color stop
- Type:
float in [0, 1], default 0.0
- classmethod bl_rna_get_subclass(id, default=None)#
- Parameters:
id (string) – The RNA type identifier.
- Returns:
The RNA type or default when not found.
- Return type:
bpy.types.Struct
subclass
- classmethod bl_rna_get_subclass_py(id, default=None)#
- Parameters:
id (string) – The RNA type identifier.
- Returns:
The class or default when not found.
- Return type:
type