Adjustments¶
src.helpers.adjustments.create_vibrant_saturation(vibrancy: int, saturation: int) -> None
¶
Experimental scoot action to add vibrancy and saturation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
vibrancy
|
int
|
Vibrancy level integer |
required |
saturation
|
int
|
Saturation level integer |
required |
Source code in src\helpers\adjustments.py
src.helpers.adjustments.create_color_layer(color: Union[list[int], SolidColor, str], layer: Union[ArtLayer, LayerSet, None], docref: Optional[Document] = None, **kwargs) -> ArtLayer
¶
Create a solid color adjustment layer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
color
|
list[int] | SolidColor | str
|
Color to use for the layer. |
required |
layer
|
ArtLayer | LayerSet | None
|
ArtLayer or LayerSet to make active, if provided. |
required |
docref
|
Document | None
|
Reference Document, use active if not provided. |
None
|
Returns:
| Type | Description |
|---|---|
ArtLayer
|
The new solid color adjustment layer. |
Source code in src\helpers\adjustments.py
src.helpers.adjustments.create_gradient_layer(colors: list[dict], layer: Union[ArtLayer, LayerSet, None], docref: Optional[Document] = None, **kwargs) -> ArtLayer
¶
Create a gradient adjustment layer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
colors
|
list[dict]
|
List of gradient color dicts. |
required |
layer
|
ArtLayer | LayerSet | None
|
ArtLayer or LayerSet to make active, if provided. |
required |
docref
|
Document | None
|
Reference Document, use active if not provided. |
None
|
Returns:
| Type | Description |
|---|---|
ArtLayer
|
The new gradient adjustment layer. |