brushcue

Examples

  1# (c) Dito Technologies LLC. Auto-generated. Do not modify directly.
  2# hash: fb78d43bc47b89903912b54c623fc3d137405da3267d956405d22383288f239f
  3# generated from templates/py_brushcue_init.jinja
  4
  5from __future__ import annotations
  6
  7"""Typed Python bindings for BrushCue graph construction."""
  8
  9from . import _py as _internal
 10from ._graph import Project
 11from .fn import brushcue_fn
 12from ._py import (
 13    Bounds,
 14    Context,
 15    ImageRecipe,
 16    MovieRecipe,
 17    TypeDefinition,
 18)
 19from . import input_parsers
 20
 21def float_list_empty() -> FloatList:
 22    result = _internal.float_list_empty_internal()
 23    from .float_list import FloatList
 24    return FloatList(result)
 25
 26
 27def int_list_empty() -> IntList:
 28    result = _internal.int_list_empty_internal()
 29    from .int_list import IntList
 30    return IntList(result)
 31
 32
 33def null_value() -> Null:
 34    result = _internal.null_value_internal()
 35    from .null import Null
 36    return Null(result)
 37
 38
 39def point2f_list_empty() -> Point2fList:
 40    result = _internal.point2f_list_empty_internal()
 41    from .point2f_list import Point2fList
 42    return Point2fList(result)
 43
 44
 45def point2i_list_empty() -> Point2iList:
 46    result = _internal.point2i_list_empty_internal()
 47    from .point2i_list import Point2iList
 48    return Point2iList(result)
 49
 50
 51def string_list_empty() -> StringList:
 52    result = _internal.string_list_empty_internal()
 53    from .string_list import StringList
 54    return StringList(result)
 55
 56
 57from .bool import Bool
 58
 59from .bounds2f import Bounds2f
 60
 61from .bounds2f_list import Bounds2fList
 62
 63from .bounds2i import Bounds2i
 64
 65from .bounds2i_list import Bounds2iList
 66
 67from .brush import Brush
 68
 69from .bytes import Bytes
 70
 71from .character import Character
 72
 73from .character_list import CharacterList
 74
 75from .color_profile import ColorProfile
 76
 77from .color_representation import ColorRepresentation
 78
 79from .composition import Composition
 80
 81from .curve import Curve
 82
 83from .dictionary import Dictionary
 84
 85from .fill import Fill
 86
 87from .float import Float
 88
 89from .float_list import FloatList
 90
 91from .font import Font
 92
 93from .image import Image
 94
 95from .int import Int
 96
 97from .int_list import IntList
 98
 99from .l_m_s_a import LMSA
100
101from .null import Null
102
103from .ok_lab_a import OkLabA
104
105from .ok_lab_color import OkLabColor
106
107from .ok_lab_hist import OkLabHist
108
109from .ok_lch_a import OkLchA
110
111from .painted_illustration import PaintedIllustration
112
113from .painted_illustration_list import PaintedIllustrationList
114
115from .painter import Painter
116
117from .path import Path
118
119from .path_command import PathCommand
120
121from .path_command_list import PathCommandList
122
123from .pixel_encoding import PixelEncoding
124
125from .point2f import Point2f
126
127from .point2f_list import Point2fList
128
129from .point2i import Point2i
130
131from .point2i_list import Point2iList
132
133from .profiled_color import ProfiledColor
134
135from .profiled_color_list import ProfiledColorList
136
137from .r_g_b_a_color import RGBAColor
138
139from .r_g_b_color import RGBColor
140
141from .render_style import RenderStyle
142
143from .sequence import Sequence
144
145from .string import String
146
147from .string_list import StringList
148
149from .styled_character import StyledCharacter
150
151from .styled_character_list import StyledCharacterList
152
153from .styled_string import StyledString
154
155from .transform2 import Transform2
156
157from .transform2_list import Transform2List
158
159from .vector2f import Vector2f
160
161from .vector2i import Vector2i
162
163from .vector3f import Vector3f
164
165from .void import Void
166
167from .x_y_z import XYZ
168
169from .x_y_z_a import XYZA
170
171from .any_graph import AnyGraph
172
173from .list import List
174
175from .object import Object
176
177
178from ._operators import setup_operators
179
180setup_operators()
181
182__all__ = [
183    "Context", "Project", "brushcue_fn", "ImageRecipe", "MovieRecipe", "Bounds", "TypeDefinition",
184
185    "float_list_empty",
186
187    "int_list_empty",
188
189    "null_value",
190
191    "point2f_list_empty",
192
193    "point2i_list_empty",
194
195    "string_list_empty",
196
197    "Bool",
198
199    "Bounds2f",
200
201    "Bounds2fList",
202
203    "Bounds2i",
204
205    "Bounds2iList",
206
207    "Brush",
208
209    "Bytes",
210
211    "Character",
212
213    "CharacterList",
214
215    "ColorProfile",
216
217    "ColorRepresentation",
218
219    "Composition",
220
221    "Curve",
222
223    "Dictionary",
224
225    "Fill",
226
227    "Float",
228
229    "FloatList",
230
231    "Font",
232
233    "Image",
234
235    "Int",
236
237    "IntList",
238
239    "LMSA",
240
241    "Null",
242
243    "OkLabA",
244
245    "OkLabColor",
246
247    "OkLabHist",
248
249    "OkLchA",
250
251    "PaintedIllustration",
252
253    "PaintedIllustrationList",
254
255    "Painter",
256
257    "Path",
258
259    "PathCommand",
260
261    "PathCommandList",
262
263    "PixelEncoding",
264
265    "Point2f",
266
267    "Point2fList",
268
269    "Point2i",
270
271    "Point2iList",
272
273    "ProfiledColor",
274
275    "ProfiledColorList",
276
277    "RGBAColor",
278
279    "RGBColor",
280
281    "RenderStyle",
282
283    "Sequence",
284
285    "String",
286
287    "StringList",
288
289    "StyledCharacter",
290
291    "StyledCharacterList",
292
293    "StyledString",
294
295    "Transform2",
296
297    "Transform2List",
298
299    "Vector2f",
300
301    "Vector2i",
302
303    "Vector3f",
304
305    "Void",
306
307    "XYZ",
308
309    "XYZA",
310
311    "AnyGraph",
312
313    "List",
314
315    "Object",
316]
class Context:
class Project:
122class Project:
123    """A Python façade for a Rust graph project."""
124
125    def __init__(self, inner: _internal.Project | None = None):
126        self._inner = _internal.Project() if inner is None else inner
127
128    def add_graph(self, graph: _GraphWrapper | _internal.Graph) -> Project:
129        return Project(self._inner.add_graph(unwrap_graph(graph)))
130
131    def execute(self, context: _internal.Context, graph_id: int) -> _internal.Type:
132        return self._inner.execute(context, graph_id)

A Python façade for a Rust graph project.

Project(inner: '_internal.Project | None' = None)
125    def __init__(self, inner: _internal.Project | None = None):
126        self._inner = _internal.Project() if inner is None else inner
def add_graph( self, graph: brushcue._graph._GraphWrapper | Graph) -> Project:
128    def add_graph(self, graph: _GraphWrapper | _internal.Graph) -> Project:
129        return Project(self._inner.add_graph(unwrap_graph(graph)))
def execute(self, context: Context, graph_id: int) -> Type:
131    def execute(self, context: _internal.Context, graph_id: int) -> _internal.Type:
132        return self._inner.execute(context, graph_id)
def brushcue_fn(fn):
 9def brushcue_fn(fn):
10    @wraps(fn)
11    def wrapper(*args, **kwargs):
12        return fn(*args, **kwargs)
13
14    def brushcue_make_graph(
15            type_definitions: list[brushcue.TypeDefinition],
16    ):
17        inputs = [
18            brushcue.Object.input(type_definition)
19            for type_definition in type_definitions
20        ]
21        output = fn(*inputs)
22        wrapper.__brushcue_output_graph__ = output
23        return *(unwrap_graph(graph) for graph in inputs), unwrap_graph(output)
24
25    wrapper.__brushcue_make_graph__ = brushcue_make_graph
26    return wrapper
class ImageRecipe:

Wraps image_recipe::ImageRecipe for Python. Methods return new PyImageRecipe instances following ImageRecipe's immutable builder pattern.

def to_image_bytes(self, /, context):
class MovieRecipe:

Wraps movie_recipe::MovieRecipe for Python.

def duration(self, /):
def export_gif(self, /, context, frame_rate):
class Bounds:
width
height
y
x
class TypeDefinition:
def from_name(name):
def from_id(type_id):
display_name
type_id
name
description
def float_list_empty() -> FloatList:
22def float_list_empty() -> FloatList:
23    result = _internal.float_list_empty_internal()
24    from .float_list import FloatList
25    return FloatList(result)
def int_list_empty() -> IntList:
28def int_list_empty() -> IntList:
29    result = _internal.int_list_empty_internal()
30    from .int_list import IntList
31    return IntList(result)
def null_value() -> Null:
34def null_value() -> Null:
35    result = _internal.null_value_internal()
36    from .null import Null
37    return Null(result)
def point2f_list_empty() -> Point2fList:
40def point2f_list_empty() -> Point2fList:
41    result = _internal.point2f_list_empty_internal()
42    from .point2f_list import Point2fList
43    return Point2fList(result)
def point2i_list_empty() -> Point2iList:
46def point2i_list_empty() -> Point2iList:
47    result = _internal.point2i_list_empty_internal()
48    from .point2i_list import Point2iList
49    return Point2iList(result)
def string_list_empty() -> StringList:
52def string_list_empty() -> StringList:
53    result = _internal.string_list_empty_internal()
54    from .string_list import StringList
55    return StringList(result)
class Bool(brushcue.Object):
17class Bool(Object):
18    """A bool"""
19
20    def execute(self, context):
21        return self._inner.execute(context).as_bool()
22
23    if TYPE_CHECKING:
24        # Implemented at runtime via monkeypatching in `_operators.py`; declared
25        # here only so static type checkers recognize these operators.
26        def __and__(self, other: Bool | builtins.bool) -> Bool: ...
27        def __rand__(self, other: Bool | builtins.bool) -> Bool: ...
28        def __or__(self, other: Bool | builtins.bool) -> Bool: ...
29        def __ror__(self, other: Bool | builtins.bool) -> Bool: ...
30        def __xor__(self, other: Bool | builtins.bool) -> Bool: ...
31        def __rxor__(self, other: Bool | builtins.bool) -> Bool: ...
32        def __invert__(self) -> Bool: ...
33
34    def and_(self, bool2) -> Bool:
35        """And
36
37        Returns true if both inputs are true.
38
39        Args:
40            bool2: Graph of Bool
41
42        Returns:
43            Graph: A graph node producing a Bool.
44        """
45        bool1_parsed = input_parsers.parse_bool_graph(self)
46        bool2_parsed = input_parsers.parse_bool_graph(bool2)
47        result = _internal.and_internal(bool1_parsed, bool2_parsed)
48        return Bool(result)
49
50    def not_(self) -> Bool:
51        """Not
52
53        Returns the opposite of a boolean
54
55        Returns:
56            Graph: A graph node producing a Bool.
57        """
58        bool_parsed = input_parsers.parse_bool_graph(self)
59        result = _internal.not_internal(bool_parsed)
60        return Bool(result)
61
62    def or_(self, bool2) -> Bool:
63        """Or
64
65        Returns true if either inputs are true.
66
67        Args:
68            bool2: Graph of Bool
69
70        Returns:
71            Graph: A graph node producing a Bool.
72        """
73        bool1_parsed = input_parsers.parse_bool_graph(self)
74        bool2_parsed = input_parsers.parse_bool_graph(bool2)
75        result = _internal.or_internal(bool1_parsed, bool2_parsed)
76        return Bool(result)
77
78    def xor(self, bool2) -> Bool:
79        """Exclusive Or
80
81        Returns true if either the inputs are true. But false if both are true.
82
83        Args:
84            bool2: Graph of Bool
85
86        Returns:
87            Graph: A graph node producing a Bool.
88        """
89        bool1_parsed = input_parsers.parse_bool_graph(self)
90        bool2_parsed = input_parsers.parse_bool_graph(bool2)
91        result = _internal.xor_internal(bool1_parsed, bool2_parsed)
92        return Bool(result)

A bool

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context).as_bool()
def and_(self, bool2) -> Bool:
34    def and_(self, bool2) -> Bool:
35        """And
36
37        Returns true if both inputs are true.
38
39        Args:
40            bool2: Graph of Bool
41
42        Returns:
43            Graph: A graph node producing a Bool.
44        """
45        bool1_parsed = input_parsers.parse_bool_graph(self)
46        bool2_parsed = input_parsers.parse_bool_graph(bool2)
47        result = _internal.and_internal(bool1_parsed, bool2_parsed)
48        return Bool(result)

And

Returns true if both inputs are true.

Args: bool2: Graph of Bool

Returns: Graph: A graph node producing a Bool.

def not_(self) -> Bool:
50    def not_(self) -> Bool:
51        """Not
52
53        Returns the opposite of a boolean
54
55        Returns:
56            Graph: A graph node producing a Bool.
57        """
58        bool_parsed = input_parsers.parse_bool_graph(self)
59        result = _internal.not_internal(bool_parsed)
60        return Bool(result)

Not

Returns the opposite of a boolean

Returns: Graph: A graph node producing a Bool.

def or_(self, bool2) -> Bool:
62    def or_(self, bool2) -> Bool:
63        """Or
64
65        Returns true if either inputs are true.
66
67        Args:
68            bool2: Graph of Bool
69
70        Returns:
71            Graph: A graph node producing a Bool.
72        """
73        bool1_parsed = input_parsers.parse_bool_graph(self)
74        bool2_parsed = input_parsers.parse_bool_graph(bool2)
75        result = _internal.or_internal(bool1_parsed, bool2_parsed)
76        return Bool(result)

Or

Returns true if either inputs are true.

Args: bool2: Graph of Bool

Returns: Graph: A graph node producing a Bool.

def xor(self, bool2) -> Bool:
78    def xor(self, bool2) -> Bool:
79        """Exclusive Or
80
81        Returns true if either the inputs are true. But false if both are true.
82
83        Args:
84            bool2: Graph of Bool
85
86        Returns:
87            Graph: A graph node producing a Bool.
88        """
89        bool1_parsed = input_parsers.parse_bool_graph(self)
90        bool2_parsed = input_parsers.parse_bool_graph(bool2)
91        result = _internal.xor_internal(bool1_parsed, bool2_parsed)
92        return Bool(result)

Exclusive Or

Returns true if either the inputs are true. But false if both are true.

Args: bool2: Graph of Bool

Returns: Graph: A graph node producing a Bool.

class Bounds2f(brushcue.Object):
17class Bounds2f(Object):
18    """A 2D bounding box of Floats"""
19
20    def execute(self, context):
21        return self._inner.execute(context).as_bounds2f()
22
23    @staticmethod
24    def from_x_y_width_height(x, y, width, height) -> Bounds2f:
25        """Bounds 2D Float from X, Y, Width & Height
26
27        Creates the bounds of a 2D float region from its X, Y, Width and Height.
28
29        Args:
30            x: Graph of Float
31            y: Graph of Float
32            width: Graph of Float
33            height: Graph of Float
34
35        Returns:
36            Graph: A graph node producing a Bounds2f.
37        """
38        x_parsed = input_parsers.parse_float_graph(x)
39        y_parsed = input_parsers.parse_float_graph(y)
40        width_parsed = input_parsers.parse_float_graph(width)
41        height_parsed = input_parsers.parse_float_graph(height)
42        result = _internal.bounds2f_from_x_y_width_height_internal(x_parsed, y_parsed, width_parsed, height_parsed)
43        return Bounds2f(result)
44
45    def height(self) -> float.Float:
46        """Bounds2f Height
47
48        Gets the height of the bounds.
49
50        Returns:
51            Graph: A graph node producing a Float.
52        """
53        bounds_parsed = input_parsers.parse_graph(self)
54        result = _internal.bounds2f_height_internal(bounds_parsed)
55        from .float import Float
56        return Float(result)
57
58    def min_x(self) -> float.Float:
59        """Bounds2f Min X
60
61        Gets the minimum X coordinate (left edge) of the bounds.
62
63        Returns:
64            Graph: A graph node producing a Float.
65        """
66        bounds_parsed = input_parsers.parse_graph(self)
67        result = _internal.bounds2f_min_x_internal(bounds_parsed)
68        from .float import Float
69        return Float(result)
70
71    def min_y(self) -> float.Float:
72        """Bounds2f Min Y
73
74        Gets the minimum Y coordinate (top edge) of the bounds.
75
76        Returns:
77            Graph: A graph node producing a Float.
78        """
79        bounds_parsed = input_parsers.parse_graph(self)
80        result = _internal.bounds2f_min_y_internal(bounds_parsed)
81        from .float import Float
82        return Float(result)
83
84    def width(self) -> float.Float:
85        """Bounds2f Width
86
87        Gets the width of the bounds.
88
89        Returns:
90            Graph: A graph node producing a Float.
91        """
92        bounds_parsed = input_parsers.parse_graph(self)
93        result = _internal.bounds2f_width_internal(bounds_parsed)
94        from .float import Float
95        return Float(result)

A 2D bounding box of Floats

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context).as_bounds2f()
@staticmethod
def from_x_y_width_height(x, y, width, height) -> Bounds2f:
23    @staticmethod
24    def from_x_y_width_height(x, y, width, height) -> Bounds2f:
25        """Bounds 2D Float from X, Y, Width & Height
26
27        Creates the bounds of a 2D float region from its X, Y, Width and Height.
28
29        Args:
30            x: Graph of Float
31            y: Graph of Float
32            width: Graph of Float
33            height: Graph of Float
34
35        Returns:
36            Graph: A graph node producing a Bounds2f.
37        """
38        x_parsed = input_parsers.parse_float_graph(x)
39        y_parsed = input_parsers.parse_float_graph(y)
40        width_parsed = input_parsers.parse_float_graph(width)
41        height_parsed = input_parsers.parse_float_graph(height)
42        result = _internal.bounds2f_from_x_y_width_height_internal(x_parsed, y_parsed, width_parsed, height_parsed)
43        return Bounds2f(result)

Bounds 2D Float from X, Y, Width & Height

Creates the bounds of a 2D float region from its X, Y, Width and Height.

Args: x: Graph of Float y: Graph of Float width: Graph of Float height: Graph of Float

Returns: Graph: A graph node producing a Bounds2f.

def height(self) -> Float:
45    def height(self) -> float.Float:
46        """Bounds2f Height
47
48        Gets the height of the bounds.
49
50        Returns:
51            Graph: A graph node producing a Float.
52        """
53        bounds_parsed = input_parsers.parse_graph(self)
54        result = _internal.bounds2f_height_internal(bounds_parsed)
55        from .float import Float
56        return Float(result)

Bounds2f Height

Gets the height of the bounds.

Returns: Graph: A graph node producing a Float.

def min_x(self) -> Float:
58    def min_x(self) -> float.Float:
59        """Bounds2f Min X
60
61        Gets the minimum X coordinate (left edge) of the bounds.
62
63        Returns:
64            Graph: A graph node producing a Float.
65        """
66        bounds_parsed = input_parsers.parse_graph(self)
67        result = _internal.bounds2f_min_x_internal(bounds_parsed)
68        from .float import Float
69        return Float(result)

Bounds2f Min X

Gets the minimum X coordinate (left edge) of the bounds.

Returns: Graph: A graph node producing a Float.

def min_y(self) -> Float:
71    def min_y(self) -> float.Float:
72        """Bounds2f Min Y
73
74        Gets the minimum Y coordinate (top edge) of the bounds.
75
76        Returns:
77            Graph: A graph node producing a Float.
78        """
79        bounds_parsed = input_parsers.parse_graph(self)
80        result = _internal.bounds2f_min_y_internal(bounds_parsed)
81        from .float import Float
82        return Float(result)

Bounds2f Min Y

Gets the minimum Y coordinate (top edge) of the bounds.

Returns: Graph: A graph node producing a Float.

def width(self) -> Float:
84    def width(self) -> float.Float:
85        """Bounds2f Width
86
87        Gets the width of the bounds.
88
89        Returns:
90            Graph: A graph node producing a Float.
91        """
92        bounds_parsed = input_parsers.parse_graph(self)
93        result = _internal.bounds2f_width_internal(bounds_parsed)
94        from .float import Float
95        return Float(result)

Bounds2f Width

Gets the width of the bounds.

Returns: Graph: A graph node producing a Float.

class Bounds2fList(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
11class Bounds2fList(List):
12    """List of Bounds 2D Floats"""
13
14    def __init__(self, inner, resolved_type=None):
15        from .bounds2f import Bounds2f
16        super().__init__(inner, Bounds2f if resolved_type is None else resolved_type)
17
18    def execute(self, context):
19        return self._inner.execute(context)

List of Bounds 2D Floats

Bounds2fList(inner, resolved_type=None)
14    def __init__(self, inner, resolved_type=None):
15        from .bounds2f import Bounds2f
16        super().__init__(inner, Bounds2f if resolved_type is None else resolved_type)
class Bounds2i(brushcue.Object):
12class Bounds2i(Object):
13    """A 2D bounding box of Ints"""
14
15    def execute(self, context):
16        return self._inner.execute(context)
17
18    @staticmethod
19    def from_x_y_width_height(x, y, width, height) -> Bounds2i:
20        """Bounds 2D Int from X, Y, Width & Height
21
22        Creates the bounds of a 2D array from its X, Y, Width and Height.
23
24        Args:
25            x: Graph of Int
26            y: Graph of Int
27            width: Graph of Int
28            height: Graph of Int
29
30        Returns:
31            Graph: A graph node producing a Bounds2i.
32        """
33        x_parsed = input_parsers.parse_int_graph(x)
34        y_parsed = input_parsers.parse_int_graph(y)
35        width_parsed = input_parsers.parse_int_graph(width)
36        height_parsed = input_parsers.parse_int_graph(height)
37        result = _internal.bounds2i_from_x_y_width_height_internal(x_parsed, y_parsed, width_parsed, height_parsed)
38        return Bounds2i(result)

A 2D bounding box of Ints

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context)
@staticmethod
def from_x_y_width_height(x, y, width, height) -> Bounds2i:
18    @staticmethod
19    def from_x_y_width_height(x, y, width, height) -> Bounds2i:
20        """Bounds 2D Int from X, Y, Width & Height
21
22        Creates the bounds of a 2D array from its X, Y, Width and Height.
23
24        Args:
25            x: Graph of Int
26            y: Graph of Int
27            width: Graph of Int
28            height: Graph of Int
29
30        Returns:
31            Graph: A graph node producing a Bounds2i.
32        """
33        x_parsed = input_parsers.parse_int_graph(x)
34        y_parsed = input_parsers.parse_int_graph(y)
35        width_parsed = input_parsers.parse_int_graph(width)
36        height_parsed = input_parsers.parse_int_graph(height)
37        result = _internal.bounds2i_from_x_y_width_height_internal(x_parsed, y_parsed, width_parsed, height_parsed)
38        return Bounds2i(result)

Bounds 2D Int from X, Y, Width & Height

Creates the bounds of a 2D array from its X, Y, Width and Height.

Args: x: Graph of Int y: Graph of Int width: Graph of Int height: Graph of Int

Returns: Graph: A graph node producing a Bounds2i.

class Bounds2iList(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
11class Bounds2iList(List):
12    """List of Bounds 2D Ints"""
13
14    def __init__(self, inner, resolved_type=None):
15        from .bounds2i import Bounds2i
16        super().__init__(inner, Bounds2i if resolved_type is None else resolved_type)
17
18    def execute(self, context):
19        return self._inner.execute(context)

List of Bounds 2D Ints

Bounds2iList(inner, resolved_type=None)
14    def __init__(self, inner, resolved_type=None):
15        from .bounds2i import Bounds2i
16        super().__init__(inner, Bounds2i if resolved_type is None else resolved_type)
class Brush(brushcue.Object):
12class Brush(Object):
13    """A brush to stroke on 2D objects"""
14
15    def execute(self, context):
16        return self._inner.execute(context)
17
18    @staticmethod
19    def custom(function_body, helpers, inputs, radius) -> Brush:
20        """Brush Custom
21
22        Creates a brush with a custom shader.
23
24        Args:
25            function_body: Graph of String
26            helpers: Graph of String
27            inputs: Graph of Dictionary
28            radius: Graph of Float
29
30        Returns:
31            Graph: A graph node producing a Brush.
32        """
33        function_body_parsed = input_parsers.parse_string_graph(function_body)
34        helpers_parsed = input_parsers.parse_string_graph(helpers)
35        inputs_parsed = input_parsers.parse_graph(inputs)
36        radius_parsed = input_parsers.parse_float_graph(radius)
37        result = _internal.brush_custom_internal(function_body_parsed, helpers_parsed, inputs_parsed, radius_parsed)
38        return Brush(result)
39
40    @staticmethod
41    def dashed(color_1, color_1_length, color_2, color_2_length, radius) -> Brush:
42        """Brush Dashed
43
44        Creates a brush that alternates between two colors along the length of the path, for dashed/dotted strokes.
45
46        Args:
47            color_1: Graph of ProfiledColor
48            color_1_length: Graph of Float
49            color_2: Graph of ProfiledColor
50            color_2_length: Graph of Float
51            radius: Graph of Float
52
53        Returns:
54            Graph: A graph node producing a Brush.
55        """
56        color_1_parsed = input_parsers.parse_graph(color_1)
57        color_1_length_parsed = input_parsers.parse_float_graph(color_1_length)
58        color_2_parsed = input_parsers.parse_graph(color_2)
59        color_2_length_parsed = input_parsers.parse_float_graph(color_2_length)
60        radius_parsed = input_parsers.parse_float_graph(radius)
61        result = _internal.brush_dashed_internal(color_1_parsed, color_1_length_parsed, color_2_parsed, color_2_length_parsed, radius_parsed)
62        return Brush(result)
63
64    @staticmethod
65    def solid(color, radius) -> Brush:
66        """Brush Solid
67
68        Creates a brush with a color and radius. Will stroke with the solid color.
69
70        Args:
71            color: Graph of ProfiledColor
72            radius: Graph of Float
73
74        Returns:
75            Graph: A graph node producing a Brush.
76        """
77        color_parsed = input_parsers.parse_graph(color)
78        radius_parsed = input_parsers.parse_float_graph(radius)
79        result = _internal.brush_solid_internal(color_parsed, radius_parsed)
80        return Brush(result)

A brush to stroke on 2D objects

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context)
@staticmethod
def custom(function_body, helpers, inputs, radius) -> Brush:
18    @staticmethod
19    def custom(function_body, helpers, inputs, radius) -> Brush:
20        """Brush Custom
21
22        Creates a brush with a custom shader.
23
24        Args:
25            function_body: Graph of String
26            helpers: Graph of String
27            inputs: Graph of Dictionary
28            radius: Graph of Float
29
30        Returns:
31            Graph: A graph node producing a Brush.
32        """
33        function_body_parsed = input_parsers.parse_string_graph(function_body)
34        helpers_parsed = input_parsers.parse_string_graph(helpers)
35        inputs_parsed = input_parsers.parse_graph(inputs)
36        radius_parsed = input_parsers.parse_float_graph(radius)
37        result = _internal.brush_custom_internal(function_body_parsed, helpers_parsed, inputs_parsed, radius_parsed)
38        return Brush(result)

Brush Custom

Creates a brush with a custom shader.

Args: function_body: Graph of String helpers: Graph of String inputs: Graph of Dictionary radius: Graph of Float

Returns: Graph: A graph node producing a Brush.

@staticmethod
def dashed( color_1, color_1_length, color_2, color_2_length, radius) -> Brush:
40    @staticmethod
41    def dashed(color_1, color_1_length, color_2, color_2_length, radius) -> Brush:
42        """Brush Dashed
43
44        Creates a brush that alternates between two colors along the length of the path, for dashed/dotted strokes.
45
46        Args:
47            color_1: Graph of ProfiledColor
48            color_1_length: Graph of Float
49            color_2: Graph of ProfiledColor
50            color_2_length: Graph of Float
51            radius: Graph of Float
52
53        Returns:
54            Graph: A graph node producing a Brush.
55        """
56        color_1_parsed = input_parsers.parse_graph(color_1)
57        color_1_length_parsed = input_parsers.parse_float_graph(color_1_length)
58        color_2_parsed = input_parsers.parse_graph(color_2)
59        color_2_length_parsed = input_parsers.parse_float_graph(color_2_length)
60        radius_parsed = input_parsers.parse_float_graph(radius)
61        result = _internal.brush_dashed_internal(color_1_parsed, color_1_length_parsed, color_2_parsed, color_2_length_parsed, radius_parsed)
62        return Brush(result)

Brush Dashed

Creates a brush that alternates between two colors along the length of the path, for dashed/dotted strokes.

Args: color_1: Graph of ProfiledColor color_1_length: Graph of Float color_2: Graph of ProfiledColor color_2_length: Graph of Float radius: Graph of Float

Returns: Graph: A graph node producing a Brush.

@staticmethod
def solid(color, radius) -> Brush:
64    @staticmethod
65    def solid(color, radius) -> Brush:
66        """Brush Solid
67
68        Creates a brush with a color and radius. Will stroke with the solid color.
69
70        Args:
71            color: Graph of ProfiledColor
72            radius: Graph of Float
73
74        Returns:
75            Graph: A graph node producing a Brush.
76        """
77        color_parsed = input_parsers.parse_graph(color)
78        radius_parsed = input_parsers.parse_float_graph(radius)
79        result = _internal.brush_solid_internal(color_parsed, radius_parsed)
80        return Brush(result)

Brush Solid

Creates a brush with a color and radius. Will stroke with the solid color.

Args: color: Graph of ProfiledColor radius: Graph of Float

Returns: Graph: A graph node producing a Brush.

class Bytes(brushcue.Object):
 18class Bytes(Object):
 19    """A list of bytes"""
 20
 21    def execute(self, context):
 22        return self._inner.execute(context)
 23
 24    @staticmethod
 25    def from_url(url) -> Bytes:
 26        """Bytes from URL
 27
 28        Given a URL. Performs a GET request and downloads the result as bytes.
 29
 30        Args:
 31            url: Graph of String
 32
 33        Returns:
 34            Graph: A graph node producing a Bytes.
 35        """
 36        url_parsed = input_parsers.parse_string_graph(url)
 37        result = _internal.bytes_from_u_r_l_internal(url_parsed)
 38        return Bytes(result)
 39
 40    def save_to_path(self, path) -> string.String:
 41        """Bytes Save to Path
 42
 43        Writes a byte list to a specified file path on disk. Returns the path that was written to.
 44
 45        Args:
 46            path: Graph of String
 47
 48        Returns:
 49            Graph: A graph node producing a String.
 50        """
 51        bytes_parsed = input_parsers.parse_graph(self)
 52        path_parsed = input_parsers.parse_string_graph(path)
 53        result = _internal.bytes_save_to_path_internal(bytes_parsed, path_parsed)
 54        from .string import String
 55        return String(result)
 56
 57    def file_convert_image_to_bmp(self) -> Bytes:
 58        """File Convert Image to BMP
 59
 60        Converts any image format (JPEG, PNG, WebP, TIFF, HEIC, etc.) to BMP. Returns BMP bytes.
 61
 62        Returns:
 63            Graph: A graph node producing a Bytes.
 64        """
 65        image_bytes_parsed = input_parsers.parse_graph(self)
 66        result = _internal.file_convert_image_to_bmp_internal(image_bytes_parsed)
 67        return Bytes(result)
 68
 69    def file_convert_image_to_heic(self, quality) -> Bytes:
 70        """File Convert Image to HEIC
 71
 72        Converts any image format (JPEG, PNG, WebP, TIFF, BMP, etc.) to HEIC. Returns HEIC bytes.
 73
 74        Args:
 75            quality: Graph of Int
 76
 77        Returns:
 78            Graph: A graph node producing a Bytes.
 79        """
 80        image_bytes_parsed = input_parsers.parse_graph(self)
 81        quality_parsed = input_parsers.parse_int_graph(quality)
 82        result = _internal.file_convert_image_to_heic_internal(image_bytes_parsed, quality_parsed)
 83        return Bytes(result)
 84
 85    def file_convert_image_to_jpeg(self, quality) -> Bytes:
 86        """File Convert Image to JPEG
 87
 88        Converts any image format (PNG, WebP, TIFF, BMP, HEIC, etc.) to JPEG. Returns JPEG bytes.
 89
 90        Args:
 91            quality: Graph of Int
 92
 93        Returns:
 94            Graph: A graph node producing a Bytes.
 95        """
 96        image_bytes_parsed = input_parsers.parse_graph(self)
 97        quality_parsed = input_parsers.parse_int_graph(quality)
 98        result = _internal.file_convert_image_to_jpeg_internal(image_bytes_parsed, quality_parsed)
 99        return Bytes(result)
100
101    def file_convert_image_to_png(self) -> Bytes:
102        """File Convert Image to PNG
103
104        Converts any image format (JPEG, WebP, TIFF, BMP, HEIC, etc.) to PNG. Returns PNG bytes.
105
106        Returns:
107            Graph: A graph node producing a Bytes.
108        """
109        image_bytes_parsed = input_parsers.parse_graph(self)
110        result = _internal.file_convert_image_to_png_internal(image_bytes_parsed)
111        return Bytes(result)
112
113    def file_convert_image_to_tiff(self) -> Bytes:
114        """File Convert Image to TIFF
115
116        Converts any image format (JPEG, PNG, WebP, BMP, HEIC, etc.) to TIFF. Returns TIFF bytes.
117
118        Returns:
119            Graph: A graph node producing a Bytes.
120        """
121        image_bytes_parsed = input_parsers.parse_graph(self)
122        result = _internal.file_convert_image_to_tiff_internal(image_bytes_parsed)
123        return Bytes(result)
124
125    def file_convert_image_to_web_p(self, quality) -> Bytes:
126        """File Convert Image to WebP
127
128        Converts any image format (JPEG, PNG, TIFF, BMP, HEIC, etc.) to WebP. Returns WebP bytes.
129
130        Args:
131            quality: Graph of Int
132
133        Returns:
134            Graph: A graph node producing a Bytes.
135        """
136        image_bytes_parsed = input_parsers.parse_graph(self)
137        quality_parsed = input_parsers.parse_int_graph(quality)
138        result = _internal.file_convert_image_to_web_p_internal(image_bytes_parsed, quality_parsed)
139        return Bytes(result)
140
141    def file_convert_video_to_gif(self, frame_rate) -> Bytes:
142        """File Convert Video to GIF
143
144        Converts any video format (MP4, MOV, WebM, AVI, MKV) to a GIF. Returns GIF bytes.
145
146        Args:
147            frame_rate: Graph of Int
148
149        Returns:
150            Graph: A graph node producing a Bytes.
151        """
152        video_bytes_parsed = input_parsers.parse_graph(self)
153        frame_rate_parsed = input_parsers.parse_int_graph(frame_rate)
154        result = _internal.file_convert_video_to_gif_internal(video_bytes_parsed, frame_rate_parsed)
155        return Bytes(result)
156
157    def file_convert_video_to_mp4(self) -> Bytes:
158        """File Convert Video to MP4
159
160        Converts any video format (MOV, WebM, AVI, MKV) to MP4. Returns MP4 bytes.
161
162        Returns:
163            Graph: A graph node producing a Bytes.
164        """
165        video_bytes_parsed = input_parsers.parse_graph(self)
166        result = _internal.file_convert_video_to_m_p4_internal(video_bytes_parsed)
167        return Bytes(result)
168
169    def file_convert_video_to_web_m(self) -> Bytes:
170        """File Convert Video to WebM
171
172        Converts any video format (MP4, MOV, AVI, MKV) to WebM. Returns WebM bytes.
173
174        Returns:
175            Graph: A graph node producing a Bytes.
176        """
177        video_bytes_parsed = input_parsers.parse_graph(self)
178        result = _internal.file_convert_video_to_web_m_internal(video_bytes_parsed)
179        return Bytes(result)
180
181    def upload_bytes(self, url, content_type) -> void.Void:
182        """Upload Bytes
183
184        Given bytes and a URL. Performs a PUT request and uploads the bytes
185
186        Args:
187            url: Graph of String
188            content_type: Graph of String
189
190        Returns:
191            Graph: A graph node producing a Void.
192        """
193        bytes_parsed = input_parsers.parse_graph(self)
194        url_parsed = input_parsers.parse_string_graph(url)
195        content_type_parsed = input_parsers.parse_string_graph(content_type)
196        result = _internal.upload_bytes_internal(bytes_parsed, url_parsed, content_type_parsed)
197        from .void import Void
198        return Void(result)

A list of bytes

def execute(self, context):
21    def execute(self, context):
22        return self._inner.execute(context)
@staticmethod
def from_url(url) -> Bytes:
24    @staticmethod
25    def from_url(url) -> Bytes:
26        """Bytes from URL
27
28        Given a URL. Performs a GET request and downloads the result as bytes.
29
30        Args:
31            url: Graph of String
32
33        Returns:
34            Graph: A graph node producing a Bytes.
35        """
36        url_parsed = input_parsers.parse_string_graph(url)
37        result = _internal.bytes_from_u_r_l_internal(url_parsed)
38        return Bytes(result)

Bytes from URL

Given a URL. Performs a GET request and downloads the result as bytes.

Args: url: Graph of String

Returns: Graph: A graph node producing a Bytes.

def save_to_path(self, path) -> String:
40    def save_to_path(self, path) -> string.String:
41        """Bytes Save to Path
42
43        Writes a byte list to a specified file path on disk. Returns the path that was written to.
44
45        Args:
46            path: Graph of String
47
48        Returns:
49            Graph: A graph node producing a String.
50        """
51        bytes_parsed = input_parsers.parse_graph(self)
52        path_parsed = input_parsers.parse_string_graph(path)
53        result = _internal.bytes_save_to_path_internal(bytes_parsed, path_parsed)
54        from .string import String
55        return String(result)

Bytes Save to Path

Writes a byte list to a specified file path on disk. Returns the path that was written to.

Args: path: Graph of String

Returns: Graph: A graph node producing a String.

def file_convert_image_to_bmp(self) -> Bytes:
57    def file_convert_image_to_bmp(self) -> Bytes:
58        """File Convert Image to BMP
59
60        Converts any image format (JPEG, PNG, WebP, TIFF, HEIC, etc.) to BMP. Returns BMP bytes.
61
62        Returns:
63            Graph: A graph node producing a Bytes.
64        """
65        image_bytes_parsed = input_parsers.parse_graph(self)
66        result = _internal.file_convert_image_to_bmp_internal(image_bytes_parsed)
67        return Bytes(result)

File Convert Image to BMP

Converts any image format (JPEG, PNG, WebP, TIFF, HEIC, etc.) to BMP. Returns BMP bytes.

Returns: Graph: A graph node producing a Bytes.

def file_convert_image_to_heic(self, quality) -> Bytes:
69    def file_convert_image_to_heic(self, quality) -> Bytes:
70        """File Convert Image to HEIC
71
72        Converts any image format (JPEG, PNG, WebP, TIFF, BMP, etc.) to HEIC. Returns HEIC bytes.
73
74        Args:
75            quality: Graph of Int
76
77        Returns:
78            Graph: A graph node producing a Bytes.
79        """
80        image_bytes_parsed = input_parsers.parse_graph(self)
81        quality_parsed = input_parsers.parse_int_graph(quality)
82        result = _internal.file_convert_image_to_heic_internal(image_bytes_parsed, quality_parsed)
83        return Bytes(result)

File Convert Image to HEIC

Converts any image format (JPEG, PNG, WebP, TIFF, BMP, etc.) to HEIC. Returns HEIC bytes.

Args: quality: Graph of Int

Returns: Graph: A graph node producing a Bytes.

def file_convert_image_to_jpeg(self, quality) -> Bytes:
85    def file_convert_image_to_jpeg(self, quality) -> Bytes:
86        """File Convert Image to JPEG
87
88        Converts any image format (PNG, WebP, TIFF, BMP, HEIC, etc.) to JPEG. Returns JPEG bytes.
89
90        Args:
91            quality: Graph of Int
92
93        Returns:
94            Graph: A graph node producing a Bytes.
95        """
96        image_bytes_parsed = input_parsers.parse_graph(self)
97        quality_parsed = input_parsers.parse_int_graph(quality)
98        result = _internal.file_convert_image_to_jpeg_internal(image_bytes_parsed, quality_parsed)
99        return Bytes(result)

File Convert Image to JPEG

Converts any image format (PNG, WebP, TIFF, BMP, HEIC, etc.) to JPEG. Returns JPEG bytes.

Args: quality: Graph of Int

Returns: Graph: A graph node producing a Bytes.

def file_convert_image_to_png(self) -> Bytes:
101    def file_convert_image_to_png(self) -> Bytes:
102        """File Convert Image to PNG
103
104        Converts any image format (JPEG, WebP, TIFF, BMP, HEIC, etc.) to PNG. Returns PNG bytes.
105
106        Returns:
107            Graph: A graph node producing a Bytes.
108        """
109        image_bytes_parsed = input_parsers.parse_graph(self)
110        result = _internal.file_convert_image_to_png_internal(image_bytes_parsed)
111        return Bytes(result)

File Convert Image to PNG

Converts any image format (JPEG, WebP, TIFF, BMP, HEIC, etc.) to PNG. Returns PNG bytes.

Returns: Graph: A graph node producing a Bytes.

def file_convert_image_to_tiff(self) -> Bytes:
113    def file_convert_image_to_tiff(self) -> Bytes:
114        """File Convert Image to TIFF
115
116        Converts any image format (JPEG, PNG, WebP, BMP, HEIC, etc.) to TIFF. Returns TIFF bytes.
117
118        Returns:
119            Graph: A graph node producing a Bytes.
120        """
121        image_bytes_parsed = input_parsers.parse_graph(self)
122        result = _internal.file_convert_image_to_tiff_internal(image_bytes_parsed)
123        return Bytes(result)

File Convert Image to TIFF

Converts any image format (JPEG, PNG, WebP, BMP, HEIC, etc.) to TIFF. Returns TIFF bytes.

Returns: Graph: A graph node producing a Bytes.

def file_convert_image_to_web_p(self, quality) -> Bytes:
125    def file_convert_image_to_web_p(self, quality) -> Bytes:
126        """File Convert Image to WebP
127
128        Converts any image format (JPEG, PNG, TIFF, BMP, HEIC, etc.) to WebP. Returns WebP bytes.
129
130        Args:
131            quality: Graph of Int
132
133        Returns:
134            Graph: A graph node producing a Bytes.
135        """
136        image_bytes_parsed = input_parsers.parse_graph(self)
137        quality_parsed = input_parsers.parse_int_graph(quality)
138        result = _internal.file_convert_image_to_web_p_internal(image_bytes_parsed, quality_parsed)
139        return Bytes(result)

File Convert Image to WebP

Converts any image format (JPEG, PNG, TIFF, BMP, HEIC, etc.) to WebP. Returns WebP bytes.

Args: quality: Graph of Int

Returns: Graph: A graph node producing a Bytes.

def file_convert_video_to_gif(self, frame_rate) -> Bytes:
141    def file_convert_video_to_gif(self, frame_rate) -> Bytes:
142        """File Convert Video to GIF
143
144        Converts any video format (MP4, MOV, WebM, AVI, MKV) to a GIF. Returns GIF bytes.
145
146        Args:
147            frame_rate: Graph of Int
148
149        Returns:
150            Graph: A graph node producing a Bytes.
151        """
152        video_bytes_parsed = input_parsers.parse_graph(self)
153        frame_rate_parsed = input_parsers.parse_int_graph(frame_rate)
154        result = _internal.file_convert_video_to_gif_internal(video_bytes_parsed, frame_rate_parsed)
155        return Bytes(result)

File Convert Video to GIF

Converts any video format (MP4, MOV, WebM, AVI, MKV) to a GIF. Returns GIF bytes.

Args: frame_rate: Graph of Int

Returns: Graph: A graph node producing a Bytes.

def file_convert_video_to_mp4(self) -> Bytes:
157    def file_convert_video_to_mp4(self) -> Bytes:
158        """File Convert Video to MP4
159
160        Converts any video format (MOV, WebM, AVI, MKV) to MP4. Returns MP4 bytes.
161
162        Returns:
163            Graph: A graph node producing a Bytes.
164        """
165        video_bytes_parsed = input_parsers.parse_graph(self)
166        result = _internal.file_convert_video_to_m_p4_internal(video_bytes_parsed)
167        return Bytes(result)

File Convert Video to MP4

Converts any video format (MOV, WebM, AVI, MKV) to MP4. Returns MP4 bytes.

Returns: Graph: A graph node producing a Bytes.

def file_convert_video_to_web_m(self) -> Bytes:
169    def file_convert_video_to_web_m(self) -> Bytes:
170        """File Convert Video to WebM
171
172        Converts any video format (MP4, MOV, AVI, MKV) to WebM. Returns WebM bytes.
173
174        Returns:
175            Graph: A graph node producing a Bytes.
176        """
177        video_bytes_parsed = input_parsers.parse_graph(self)
178        result = _internal.file_convert_video_to_web_m_internal(video_bytes_parsed)
179        return Bytes(result)

File Convert Video to WebM

Converts any video format (MP4, MOV, AVI, MKV) to WebM. Returns WebM bytes.

Returns: Graph: A graph node producing a Bytes.

def upload_bytes(self, url, content_type) -> Void:
181    def upload_bytes(self, url, content_type) -> void.Void:
182        """Upload Bytes
183
184        Given bytes and a URL. Performs a PUT request and uploads the bytes
185
186        Args:
187            url: Graph of String
188            content_type: Graph of String
189
190        Returns:
191            Graph: A graph node producing a Void.
192        """
193        bytes_parsed = input_parsers.parse_graph(self)
194        url_parsed = input_parsers.parse_string_graph(url)
195        content_type_parsed = input_parsers.parse_string_graph(content_type)
196        result = _internal.upload_bytes_internal(bytes_parsed, url_parsed, content_type_parsed)
197        from .void import Void
198        return Void(result)

Upload Bytes

Given bytes and a URL. Performs a PUT request and uploads the bytes

Args: url: Graph of String content_type: Graph of String

Returns: Graph: A graph node producing a Void.

class Character(brushcue.Object):
11class Character(Object):
12    """a single user-perceived character"""
13
14    def execute(self, context):
15        return self._inner.execute(context)

a single user-perceived character

def execute(self, context):
14    def execute(self, context):
15        return self._inner.execute(context)
class CharacterList(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
11class CharacterList(List):
12    """List of Characters"""
13
14    def __init__(self, inner, resolved_type=None):
15        from .character import Character
16        super().__init__(inner, Character if resolved_type is None else resolved_type)
17
18    def execute(self, context):
19        return self._inner.execute(context)

List of Characters

CharacterList(inner, resolved_type=None)
14    def __init__(self, inner, resolved_type=None):
15        from .character import Character
16        super().__init__(inner, Character if resolved_type is None else resolved_type)
class ColorProfile(brushcue.Object):
 12class ColorProfile(Object):
 13    """A Color Profile"""
 14
 15    def execute(self, context):
 16        return self._inner.execute(context)
 17
 18    @staticmethod
 19    def aces_cg() -> ColorProfile:
 20        """Color Profile ACEScg
 21
 22        Creates an ACEScg Color Profile
 23
 24        Returns:
 25            Graph: A graph node producing a ColorProfile.
 26        """
 27        result = _internal.color_profile_a_c_e_scg_internal()
 28        return ColorProfile(result)
 29
 30    @staticmethod
 31    def bt709() -> ColorProfile:
 32        """Color Profile BT.709
 33
 34        Creates a BT.709 Color Profile
 35
 36        Returns:
 37            Graph: A graph node producing a ColorProfile.
 38        """
 39        result = _internal.color_profile_b_t709_internal()
 40        return ColorProfile(result)
 41
 42    @staticmethod
 43    def ok_lab_a() -> ColorProfile:
 44        """Color Profile OkLabA
 45
 46        Creates an OkLabA color-format profile. OkLab with also an alpha component.
 47
 48        Returns:
 49            Graph: A graph node producing a ColorProfile.
 50        """
 51        result = _internal.color_profile_ok_lab_a_internal()
 52        return ColorProfile(result)
 53
 54    @staticmethod
 55    def p3() -> ColorProfile:
 56        """Color Profile P3
 57
 58        Creates a P3 Color Profile
 59
 60        Returns:
 61            Graph: A graph node producing a ColorProfile.
 62        """
 63        result = _internal.color_profile_p3_internal()
 64        return ColorProfile(result)
 65
 66    @staticmethod
 67    def png_srgb() -> ColorProfile:
 68        """Color Profile PNG sRGB
 69
 70        Creates a color-format profile that is the same one as PNG sRGB.
 71
 72        Returns:
 73            Graph: A graph node producing a ColorProfile.
 74        """
 75        result = _internal.color_profile_p_n_g_s_r_g_b_internal()
 76        return ColorProfile(result)
 77
 78    @staticmethod
 79    def srgb() -> ColorProfile:
 80        """Color Profile sRGB
 81
 82        Creates an sRGB Color Profile
 83
 84        Returns:
 85            Graph: A graph node producing a ColorProfile.
 86        """
 87        result = _internal.color_profile_s_r_g_b_internal()
 88        return ColorProfile(result)
 89
 90    @staticmethod
 91    def xyz() -> ColorProfile:
 92        """Color Profile XYZ
 93
 94        Creates an XYZ Color Profile
 95
 96        Returns:
 97            Graph: A graph node producing a ColorProfile.
 98        """
 99        result = _internal.color_profile_x_y_z_internal()
100        return ColorProfile(result)

A Color Profile

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context)
@staticmethod
def aces_cg() -> ColorProfile:
18    @staticmethod
19    def aces_cg() -> ColorProfile:
20        """Color Profile ACEScg
21
22        Creates an ACEScg Color Profile
23
24        Returns:
25            Graph: A graph node producing a ColorProfile.
26        """
27        result = _internal.color_profile_a_c_e_scg_internal()
28        return ColorProfile(result)

Color Profile ACEScg

Creates an ACEScg Color Profile

Returns: Graph: A graph node producing a ColorProfile.

@staticmethod
def bt709() -> ColorProfile:
30    @staticmethod
31    def bt709() -> ColorProfile:
32        """Color Profile BT.709
33
34        Creates a BT.709 Color Profile
35
36        Returns:
37            Graph: A graph node producing a ColorProfile.
38        """
39        result = _internal.color_profile_b_t709_internal()
40        return ColorProfile(result)

Color Profile BT.709

Creates a BT.709 Color Profile

Returns: Graph: A graph node producing a ColorProfile.

@staticmethod
def ok_lab_a() -> ColorProfile:
42    @staticmethod
43    def ok_lab_a() -> ColorProfile:
44        """Color Profile OkLabA
45
46        Creates an OkLabA color-format profile. OkLab with also an alpha component.
47
48        Returns:
49            Graph: A graph node producing a ColorProfile.
50        """
51        result = _internal.color_profile_ok_lab_a_internal()
52        return ColorProfile(result)

Color Profile OkLabA

Creates an OkLabA color-format profile. OkLab with also an alpha component.

Returns: Graph: A graph node producing a ColorProfile.

@staticmethod
def p3() -> ColorProfile:
54    @staticmethod
55    def p3() -> ColorProfile:
56        """Color Profile P3
57
58        Creates a P3 Color Profile
59
60        Returns:
61            Graph: A graph node producing a ColorProfile.
62        """
63        result = _internal.color_profile_p3_internal()
64        return ColorProfile(result)

Color Profile P3

Creates a P3 Color Profile

Returns: Graph: A graph node producing a ColorProfile.

@staticmethod
def png_srgb() -> ColorProfile:
66    @staticmethod
67    def png_srgb() -> ColorProfile:
68        """Color Profile PNG sRGB
69
70        Creates a color-format profile that is the same one as PNG sRGB.
71
72        Returns:
73            Graph: A graph node producing a ColorProfile.
74        """
75        result = _internal.color_profile_p_n_g_s_r_g_b_internal()
76        return ColorProfile(result)

Color Profile PNG sRGB

Creates a color-format profile that is the same one as PNG sRGB.

Returns: Graph: A graph node producing a ColorProfile.

@staticmethod
def srgb() -> ColorProfile:
78    @staticmethod
79    def srgb() -> ColorProfile:
80        """Color Profile sRGB
81
82        Creates an sRGB Color Profile
83
84        Returns:
85            Graph: A graph node producing a ColorProfile.
86        """
87        result = _internal.color_profile_s_r_g_b_internal()
88        return ColorProfile(result)

Color Profile sRGB

Creates an sRGB Color Profile

Returns: Graph: A graph node producing a ColorProfile.

@staticmethod
def xyz() -> ColorProfile:
 90    @staticmethod
 91    def xyz() -> ColorProfile:
 92        """Color Profile XYZ
 93
 94        Creates an XYZ Color Profile
 95
 96        Returns:
 97            Graph: A graph node producing a ColorProfile.
 98        """
 99        result = _internal.color_profile_x_y_z_internal()
100        return ColorProfile(result)

Color Profile XYZ

Creates an XYZ Color Profile

Returns: Graph: A graph node producing a ColorProfile.

class ColorRepresentation(brushcue.Object):
 17class ColorRepresentation(Object):
 18    """A color profile paired with a pixel encoding, describing how to interpret raw pixel values."""
 19
 20    def execute(self, context):
 21        return self._inner.execute(context)
 22
 23    @staticmethod
 24    def aces_cg() -> ColorRepresentation:
 25        """Color Representation ACEScg
 26
 27        Creates a Color Representation using the ACEScg Color Profile with linear light, straight alpha pixel values.
 28
 29        Returns:
 30            Graph: A graph node producing a ColorRepresentation.
 31        """
 32        result = _internal.color_representation_a_c_e_scg_internal()
 33        return ColorRepresentation(result)
 34
 35    @staticmethod
 36    def from_color_profile_and_pixel_encoding(color_profile, pixel_encoding) -> ColorRepresentation:
 37        """Color Representation From Color Profile And Pixel Encoding
 38
 39        Creates a Color Representation by pairing a Color Profile with a Pixel Encoding.
 40
 41        Args:
 42            color_profile: Graph of ColorProfile
 43            pixel_encoding: Graph of PixelEncoding
 44
 45        Returns:
 46            Graph: A graph node producing a ColorRepresentation.
 47        """
 48        color_profile_parsed = input_parsers.parse_graph(color_profile)
 49        pixel_encoding_parsed = input_parsers.parse_graph(pixel_encoding)
 50        result = _internal.color_representation_from_color_profile_and_pixel_encoding_internal(color_profile_parsed, pixel_encoding_parsed)
 51        return ColorRepresentation(result)
 52
 53    @staticmethod
 54    def oklab_a() -> ColorRepresentation:
 55        """Color Representation OkLabA
 56
 57        Creates a Color Representation using the OkLabA Color Profile with encoded pixel values.
 58
 59        Returns:
 60            Graph: A graph node producing a ColorRepresentation.
 61        """
 62        result = _internal.color_representation_ok_lab_a_internal()
 63        return ColorRepresentation(result)
 64
 65    def profile(self) -> color_profile.ColorProfile:
 66        """Color Profile of a Color Representation
 67
 68        Given a color representation. Extracts the color profile of that color representation
 69
 70        Returns:
 71            Graph: A graph node producing a ColorProfile.
 72        """
 73        color_representation_parsed = input_parsers.parse_graph(self)
 74        result = _internal.color_representation_profile_internal(color_representation_parsed)
 75        from .color_profile import ColorProfile
 76        return ColorProfile(result)
 77
 78    @staticmethod
 79    def rgb_bt2020() -> ColorRepresentation:
 80        """Color Representation BT.2020
 81
 82        Creates a Color Representation using the BT.2020 Color Profile with gamma-encoded pixel values.
 83
 84        Returns:
 85            Graph: A graph node producing a ColorRepresentation.
 86        """
 87        result = _internal.color_representation_r_g_b_b_t2020_internal()
 88        return ColorRepresentation(result)
 89
 90    @staticmethod
 91    def srgb() -> ColorRepresentation:
 92        """Color Representation sRGB
 93
 94        Creates a Color Representation using the sRGB Color Profile with gamma-encoded pixel values.
 95
 96        Returns:
 97            Graph: A graph node producing a ColorRepresentation.
 98        """
 99        result = _internal.color_representation_s_r_g_b_internal()
100        return ColorRepresentation(result)
101
102    @staticmethod
103    def xyza() -> ColorRepresentation:
104        """Color Representation XYZA
105
106        Creates a Color Representation using the XYZA Color Profile with linear light, straight alpha pixel values.
107
108        Returns:
109            Graph: A graph node producing a ColorRepresentation.
110        """
111        result = _internal.color_representation_x_y_z_a_internal()
112        return ColorRepresentation(result)

A color profile paired with a pixel encoding, describing how to interpret raw pixel values.

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context)
@staticmethod
def aces_cg() -> ColorRepresentation:
23    @staticmethod
24    def aces_cg() -> ColorRepresentation:
25        """Color Representation ACEScg
26
27        Creates a Color Representation using the ACEScg Color Profile with linear light, straight alpha pixel values.
28
29        Returns:
30            Graph: A graph node producing a ColorRepresentation.
31        """
32        result = _internal.color_representation_a_c_e_scg_internal()
33        return ColorRepresentation(result)

Color Representation ACEScg

Creates a Color Representation using the ACEScg Color Profile with linear light, straight alpha pixel values.

Returns: Graph: A graph node producing a ColorRepresentation.

@staticmethod
def from_color_profile_and_pixel_encoding( color_profile, pixel_encoding) -> ColorRepresentation:
35    @staticmethod
36    def from_color_profile_and_pixel_encoding(color_profile, pixel_encoding) -> ColorRepresentation:
37        """Color Representation From Color Profile And Pixel Encoding
38
39        Creates a Color Representation by pairing a Color Profile with a Pixel Encoding.
40
41        Args:
42            color_profile: Graph of ColorProfile
43            pixel_encoding: Graph of PixelEncoding
44
45        Returns:
46            Graph: A graph node producing a ColorRepresentation.
47        """
48        color_profile_parsed = input_parsers.parse_graph(color_profile)
49        pixel_encoding_parsed = input_parsers.parse_graph(pixel_encoding)
50        result = _internal.color_representation_from_color_profile_and_pixel_encoding_internal(color_profile_parsed, pixel_encoding_parsed)
51        return ColorRepresentation(result)

Color Representation From Color Profile And Pixel Encoding

Creates a Color Representation by pairing a Color Profile with a Pixel Encoding.

Args: color_profile: Graph of ColorProfile pixel_encoding: Graph of PixelEncoding

Returns: Graph: A graph node producing a ColorRepresentation.

@staticmethod
def oklab_a() -> ColorRepresentation:
53    @staticmethod
54    def oklab_a() -> ColorRepresentation:
55        """Color Representation OkLabA
56
57        Creates a Color Representation using the OkLabA Color Profile with encoded pixel values.
58
59        Returns:
60            Graph: A graph node producing a ColorRepresentation.
61        """
62        result = _internal.color_representation_ok_lab_a_internal()
63        return ColorRepresentation(result)

Color Representation OkLabA

Creates a Color Representation using the OkLabA Color Profile with encoded pixel values.

Returns: Graph: A graph node producing a ColorRepresentation.

def profile(self) -> ColorProfile:
65    def profile(self) -> color_profile.ColorProfile:
66        """Color Profile of a Color Representation
67
68        Given a color representation. Extracts the color profile of that color representation
69
70        Returns:
71            Graph: A graph node producing a ColorProfile.
72        """
73        color_representation_parsed = input_parsers.parse_graph(self)
74        result = _internal.color_representation_profile_internal(color_representation_parsed)
75        from .color_profile import ColorProfile
76        return ColorProfile(result)

Color Profile of a Color Representation

Given a color representation. Extracts the color profile of that color representation

Returns: Graph: A graph node producing a ColorProfile.

@staticmethod
def rgb_bt2020() -> ColorRepresentation:
78    @staticmethod
79    def rgb_bt2020() -> ColorRepresentation:
80        """Color Representation BT.2020
81
82        Creates a Color Representation using the BT.2020 Color Profile with gamma-encoded pixel values.
83
84        Returns:
85            Graph: A graph node producing a ColorRepresentation.
86        """
87        result = _internal.color_representation_r_g_b_b_t2020_internal()
88        return ColorRepresentation(result)

Color Representation BT.2020

Creates a Color Representation using the BT.2020 Color Profile with gamma-encoded pixel values.

Returns: Graph: A graph node producing a ColorRepresentation.

@staticmethod
def srgb() -> ColorRepresentation:
 90    @staticmethod
 91    def srgb() -> ColorRepresentation:
 92        """Color Representation sRGB
 93
 94        Creates a Color Representation using the sRGB Color Profile with gamma-encoded pixel values.
 95
 96        Returns:
 97            Graph: A graph node producing a ColorRepresentation.
 98        """
 99        result = _internal.color_representation_s_r_g_b_internal()
100        return ColorRepresentation(result)

Color Representation sRGB

Creates a Color Representation using the sRGB Color Profile with gamma-encoded pixel values.

Returns: Graph: A graph node producing a ColorRepresentation.

@staticmethod
def xyza() -> ColorRepresentation:
102    @staticmethod
103    def xyza() -> ColorRepresentation:
104        """Color Representation XYZA
105
106        Creates a Color Representation using the XYZA Color Profile with linear light, straight alpha pixel values.
107
108        Returns:
109            Graph: A graph node producing a ColorRepresentation.
110        """
111        result = _internal.color_representation_x_y_z_a_internal()
112        return ColorRepresentation(result)

Color Representation XYZA

Creates a Color Representation using the XYZA Color Profile with linear light, straight alpha pixel values.

Returns: Graph: A graph node producing a ColorRepresentation.

class Composition(brushcue.Object):
  24class Composition(Object):
  25    """A composition to create an image."""
  26
  27    def execute(self, context):
  28        return self._inner.execute(context).as_composition()
  29
  30    @staticmethod
  31    def load(value) -> Composition:
  32        return Composition(input_parsers.parse_composition_graph(value))
  33
  34    def absolute_value(self) -> Composition:
  35        """Composition Absolute Value
  36
  37        Takes the absolute value of all the pixels in the image.
  38
  39        Returns:
  40            Graph: A graph node producing a Composition.
  41        """
  42        image_parsed = input_parsers.parse_graph(self)
  43        result = _internal.composition_absolute_value_internal(image_parsed)
  44        return Composition(result)
  45
  46    def blend_add(self, background) -> Composition:
  47        """Composition Blend Add
  48
  49        Adds the foreground and background images together using additive blending.
  50
  51        Args:
  52            background: Graph of Composition
  53
  54        Returns:
  55            Graph: A graph node producing a Composition.
  56        """
  57        foreground_parsed = input_parsers.parse_graph(self)
  58        background_parsed = input_parsers.parse_graph(background)
  59        result = _internal.composition_blend_add_internal(foreground_parsed, background_parsed)
  60        return Composition(result)
  61
  62    def blend_alpha(self, background) -> Composition:
  63        """Composition Blend Alpha
  64
  65        Blends between the foreground and background using the alpha component of the foreground. 1 is foreground. 0 is background.
  66
  67        Args:
  68            background: Graph of Composition
  69
  70        Returns:
  71            Graph: A graph node producing a Composition.
  72        """
  73        foreground_parsed = input_parsers.parse_graph(self)
  74        background_parsed = input_parsers.parse_graph(background)
  75        result = _internal.composition_blend_alpha_internal(foreground_parsed, background_parsed)
  76        return Composition(result)
  77
  78    def blend_max(self, background) -> Composition:
  79        """Composition Blend Max
  80
  81        Blends the foreground and background images using maximum value blending.
  82
  83        Args:
  84            background: Graph of Composition
  85
  86        Returns:
  87            Graph: A graph node producing a Composition.
  88        """
  89        foreground_parsed = input_parsers.parse_graph(self)
  90        background_parsed = input_parsers.parse_graph(background)
  91        result = _internal.composition_blend_max_internal(foreground_parsed, background_parsed)
  92        return Composition(result)
  93
  94    def blend_min(self, background) -> Composition:
  95        """Composition Blend Min
  96
  97        Blends the foreground and background images using minimum blending, taking the minimum value for each pixel.
  98
  99        Args:
 100            background: Graph of Composition
 101
 102        Returns:
 103            Graph: A graph node producing a Composition.
 104        """
 105        foreground_parsed = input_parsers.parse_graph(self)
 106        background_parsed = input_parsers.parse_graph(background)
 107        result = _internal.composition_blend_min_internal(foreground_parsed, background_parsed)
 108        return Composition(result)
 109
 110    def blend_multiply(self, background) -> Composition:
 111        """Composition Blend Multiply
 112
 113        Multiplies the foreground and background images together using multiply blending.
 114
 115        Args:
 116            background: Graph of Composition
 117
 118        Returns:
 119            Graph: A graph node producing a Composition.
 120        """
 121        foreground_parsed = input_parsers.parse_graph(self)
 122        background_parsed = input_parsers.parse_graph(background)
 123        result = _internal.composition_blend_multiply_internal(foreground_parsed, background_parsed)
 124        return Composition(result)
 125
 126    def blend_stencil(self, background) -> Composition:
 127        """Composition Blend Stencil
 128
 129        Blends the foreground and background images using stencil blending. When the foreground is over the background, the foreground's alpha and the background's r, g and b are used.
 130
 131        Args:
 132            background: Graph of Composition
 133
 134        Returns:
 135            Graph: A graph node producing a Composition.
 136        """
 137        foreground_parsed = input_parsers.parse_graph(self)
 138        background_parsed = input_parsers.parse_graph(background)
 139        result = _internal.composition_blend_stencil_internal(foreground_parsed, background_parsed)
 140        return Composition(result)
 141
 142    def blend_subtract(self, background) -> Composition:
 143        """Composition Blend Subtract
 144
 145        Subtracts the foreground image from the background image using subtractive blending.
 146
 147        Args:
 148            background: Graph of Composition
 149
 150        Returns:
 151            Graph: A graph node producing a Composition.
 152        """
 153        foreground_parsed = input_parsers.parse_graph(self)
 154        background_parsed = input_parsers.parse_graph(background)
 155        result = _internal.composition_blend_subtract_internal(foreground_parsed, background_parsed)
 156        return Composition(result)
 157
 158    def bloom(self, threshold, sigma, intensity) -> Composition:
 159        """Composition Bloom
 160
 161        Adds a soft bloom glow by blurring the image's bright areas and additively blending them back over the original. Threshold selects bright areas (OkLab lightness), sigma controls glow spread, intensity scales the glow strength.
 162
 163        Args:
 164            threshold: Graph of Float
 165            sigma: Graph of Float
 166            intensity: Graph of Float
 167
 168        Returns:
 169            Graph: A graph node producing a Composition.
 170        """
 171        composition_parsed = input_parsers.parse_graph(self)
 172        threshold_parsed = input_parsers.parse_float_graph(threshold)
 173        sigma_parsed = input_parsers.parse_float_graph(sigma)
 174        intensity_parsed = input_parsers.parse_float_graph(intensity)
 175        result = _internal.composition_bloom_internal(composition_parsed, threshold_parsed, sigma_parsed, intensity_parsed)
 176        return Composition(result)
 177
 178    def bounds(self) -> bounds2f.Bounds2f:
 179        """Composition Bounds
 180
 181        Computes the bounding box of a composition.
 182
 183        Returns:
 184            Graph: A graph node producing a Bounds2f.
 185        """
 186        composition_parsed = input_parsers.parse_graph(self)
 187        result = _internal.composition_bounds_internal(composition_parsed)
 188        from .bounds2f import Bounds2f
 189        return Bounds2f(result)
 190
 191    def box_blur(self, dimension) -> Composition:
 192        """Composition Box Blur
 193
 194        Applies a box blur to an image. Dimension is the size. 1 corresponding to 3x3, 2 5x5 and so on.
 195
 196        Args:
 197            dimension: Graph of Int
 198
 199        Returns:
 200            Graph: A graph node producing a Composition.
 201        """
 202        composition_parsed = input_parsers.parse_graph(self)
 203        dimension_parsed = input_parsers.parse_int_graph(dimension)
 204        result = _internal.composition_box_blur_internal(composition_parsed, dimension_parsed)
 205        return Composition(result)
 206
 207    def brightness_adjust(self, scale) -> Composition:
 208        """Composition Brightness Adjust
 209
 210        Adjusts an image's brightness by offsetting the L component in OkLab. A scale of 0 leaves brightness unchanged, positive values brighten, and negative values darken.
 211
 212        Args:
 213            scale: Graph of Float
 214
 215        Returns:
 216            Graph: A graph node producing a Composition.
 217        """
 218        composition_parsed = input_parsers.parse_graph(self)
 219        scale_parsed = input_parsers.parse_float_graph(scale)
 220        result = _internal.composition_brightness_adjust_internal(composition_parsed, scale_parsed)
 221        return Composition(result)
 222
 223    def chroma_offset(self, offset) -> Composition:
 224        """Composition Chroma Offset
 225
 226        Applies a chroma offset to an image. This is done by modifying the a and b components of OkLab. For the vector, X applies to a, Y to to b.
 227
 228        Args:
 229            offset: Graph of Vector2f
 230
 231        Returns:
 232            Graph: A graph node producing a Composition.
 233        """
 234        composition_parsed = input_parsers.parse_graph(self)
 235        offset_parsed = input_parsers.parse_graph(offset)
 236        result = _internal.composition_chroma_offset_internal(composition_parsed, offset_parsed)
 237        return Composition(result)
 238
 239    def color_convert(self, color_profile) -> Composition:
 240        """Composition Color Convert
 241
 242        Converts a Composition from one color space to another.
 243
 244        Args:
 245            color_profile: Graph of ColorProfile
 246
 247        Returns:
 248            Graph: A graph node producing a Composition.
 249        """
 250        composition_parsed = input_parsers.parse_graph(self)
 251        color_profile_parsed = input_parsers.parse_graph(color_profile)
 252        result = _internal.composition_color_convert_internal(composition_parsed, color_profile_parsed)
 253        return Composition(result)
 254
 255    def color_invert(self) -> Composition:
 256        """Composition Color Invert
 257
 258        Applies a color invert operation to a composition. Taking 1 and subtracting each RGB operation against it. Works in linear color.
 259
 260        Returns:
 261            Graph: A graph node producing a Composition.
 262        """
 263        composition_parsed = input_parsers.parse_graph(self)
 264        result = _internal.composition_color_invert_internal(composition_parsed)
 265        return Composition(result)
 266
 267    def color_representation(self) -> color_representation.ColorRepresentation:
 268        """Composition Color Representation
 269
 270        Gets the color representation associated with a Composition
 271
 272        Returns:
 273            Graph: A graph node producing a ColorRepresentation.
 274        """
 275        composition_parsed = input_parsers.parse_graph(self)
 276        result = _internal.composition_color_representation_internal(composition_parsed)
 277        from .color_representation import ColorRepresentation
 278        return ColorRepresentation(result)
 279
 280    def color_threshold(self, threshold) -> Composition:
 281        """Composition Color Threshold
 282
 283        Applies a color threshold to a Composition
 284
 285        Args:
 286            threshold: Graph of Float
 287
 288        Returns:
 289            Graph: A graph node producing a Composition.
 290        """
 291        composition_parsed = input_parsers.parse_graph(self)
 292        threshold_parsed = input_parsers.parse_float_graph(threshold)
 293        result = _internal.composition_color_threshold_internal(composition_parsed, threshold_parsed)
 294        return Composition(result)
 295
 296    def color_transformer_shader(self, function_body, helpers, input_color_representation, output_color_representation, inputs) -> Composition:
 297        """Composition Color Transformer Shader
 298
 299        Defines a custom shader that takes an input color and then transforms that color to an output color.
 300
 301        Args:
 302            function_body: Graph of String
 303            helpers: Graph of String
 304            input_color_representation: Graph of ColorRepresentation
 305            output_color_representation: Graph of ColorRepresentation
 306            inputs: Graph of Dictionary
 307
 308        Returns:
 309            Graph: A graph node producing a Composition.
 310        """
 311        composition_parsed = input_parsers.parse_graph(self)
 312        function_body_parsed = input_parsers.parse_string_graph(function_body)
 313        helpers_parsed = input_parsers.parse_string_graph(helpers)
 314        input_color_representation_parsed = input_parsers.parse_graph(input_color_representation)
 315        output_color_representation_parsed = input_parsers.parse_graph(output_color_representation)
 316        inputs_parsed = input_parsers.parse_graph(inputs)
 317        result = _internal.composition_color_transformer_shader_internal(composition_parsed, function_body_parsed, helpers_parsed, input_color_representation_parsed, output_color_representation_parsed, inputs_parsed)
 318        return Composition(result)
 319
 320    def connected_component_boxes(self) -> bounds2i_list.Bounds2iList:
 321        """Composition Connected Component Boxes
 322
 323        Finds boxes with a r alpha channel value greater than 0.5 in the image. Recommended to use a binary image for this.
 324
 325        Returns:
 326            Graph: A graph node producing a Bounds2iList.
 327        """
 328        composition_parsed = input_parsers.parse_graph(self)
 329        result = _internal.composition_connected_component_boxes_internal(composition_parsed)
 330        from .bounds2i_list import Bounds2iList
 331        return Bounds2iList(result)
 332
 333    def contrast_adjustment(self, contrast) -> Composition:
 334        """Composition Contrast Adjustment
 335
 336        Adjusts the contrast of a Composition
 337
 338        Args:
 339            contrast: Graph of Float
 340
 341        Returns:
 342            Graph: A graph node producing a Composition.
 343        """
 344        composition_parsed = input_parsers.parse_graph(self)
 345        contrast_parsed = input_parsers.parse_float_graph(contrast)
 346        result = _internal.composition_contrast_adjustment_internal(composition_parsed, contrast_parsed)
 347        return Composition(result)
 348
 349    def convolution(self, kernel, kernel_width, kernel_height) -> Composition:
 350        """Composition Convolution
 351
 352        Performs a convolution on an composition
 353
 354        Args:
 355            kernel: Graph of FloatList
 356            kernel_width: Graph of Int
 357            kernel_height: Graph of Int
 358
 359        Returns:
 360            Graph: A graph node producing a Composition.
 361        """
 362        composition_parsed = input_parsers.parse_graph(self)
 363        kernel_parsed = input_parsers.parse_graph(kernel)
 364        kernel_width_parsed = input_parsers.parse_int_graph(kernel_width)
 365        kernel_height_parsed = input_parsers.parse_int_graph(kernel_height)
 366        result = _internal.composition_convolution_internal(composition_parsed, kernel_parsed, kernel_width_parsed, kernel_height_parsed)
 367        return Composition(result)
 368
 369    def crop(self, rect) -> Composition:
 370        """Composition Crop
 371
 372        Applies a crop to a Composition
 373
 374        Args:
 375            rect: Graph of Bounds2f
 376
 377        Returns:
 378            Graph: A graph node producing a Composition.
 379        """
 380        composition_parsed = input_parsers.parse_graph(self)
 381        rect_parsed = input_parsers.parse_graph(rect)
 382        result = _internal.composition_crop_internal(composition_parsed, rect_parsed)
 383        return Composition(result)
 384
 385    def duotone(self, threshold, color_1, color_2) -> Composition:
 386        """Composition Duotone
 387
 388        Creates a duotone effect. Colors below the threshold will be color 1, colors above will be color 2.
 389
 390        Args:
 391            threshold: Graph of Float
 392            color_1: Graph of ProfiledColor
 393            color_2: Graph of ProfiledColor
 394
 395        Returns:
 396            Graph: A graph node producing a Composition.
 397        """
 398        composition_parsed = input_parsers.parse_graph(self)
 399        threshold_parsed = input_parsers.parse_float_graph(threshold)
 400        color_1_parsed = input_parsers.parse_graph(color_1)
 401        color_2_parsed = input_parsers.parse_graph(color_2)
 402        result = _internal.composition_duotone_internal(composition_parsed, threshold_parsed, color_1_parsed, color_2_parsed)
 403        return Composition(result)
 404
 405    def emboss(self, angle, distance, amount) -> Composition:
 406        """Composition Emboss
 407
 408        Applies an emboss effect, turning edges into a raised relief lit from the given angle. Flat areas become mid-gray; a negative amount debosses.
 409
 410        Args:
 411            angle: Graph of Float
 412            distance: Graph of Float
 413            amount: Graph of Float
 414
 415        Returns:
 416            Graph: A graph node producing a Composition.
 417        """
 418        composition_parsed = input_parsers.parse_graph(self)
 419        angle_parsed = input_parsers.parse_float_graph(angle)
 420        distance_parsed = input_parsers.parse_float_graph(distance)
 421        amount_parsed = input_parsers.parse_float_graph(amount)
 422        result = _internal.composition_emboss_internal(composition_parsed, angle_parsed, distance_parsed, amount_parsed)
 423        return Composition(result)
 424
 425    def exposure_adjust(self, steps) -> Composition:
 426        """Composition Exposure Adjust
 427
 428        Updates the exposure of your image. Internally, will multiply the linear version of RGB values by a value that equals 2^step.
 429
 430        Args:
 431            steps: Graph of Float
 432
 433        Returns:
 434            Graph: A graph node producing a Composition.
 435        """
 436        composition_parsed = input_parsers.parse_graph(self)
 437        steps_parsed = input_parsers.parse_float_graph(steps)
 438        result = _internal.composition_exposure_adjust_internal(composition_parsed, steps_parsed)
 439        return Composition(result)
 440
 441    def film_grain(self, grain_strength, fine_grain_frequency, fine_weight, medium_grain_frequency, medium_weight, high_grain_frequency, high_weight) -> Composition:
 442        """Composition Film Grain
 443
 444        adds multi-octave value-noise film grain in OkLabA - grain_strength controls the overall intensity, and the fine/medium/high frequency and weight pairs control the size and contribution of each grain octave.
 445
 446        Args:
 447            grain_strength: Graph of Float
 448            fine_grain_frequency: Graph of Float
 449            fine_weight: Graph of Float
 450            medium_grain_frequency: Graph of Float
 451            medium_weight: Graph of Float
 452            high_grain_frequency: Graph of Float
 453            high_weight: Graph of Float
 454
 455        Returns:
 456            Graph: A graph node producing a Composition.
 457        """
 458        composition_parsed = input_parsers.parse_graph(self)
 459        grain_strength_parsed = input_parsers.parse_float_graph(grain_strength)
 460        fine_grain_frequency_parsed = input_parsers.parse_float_graph(fine_grain_frequency)
 461        fine_weight_parsed = input_parsers.parse_float_graph(fine_weight)
 462        medium_grain_frequency_parsed = input_parsers.parse_float_graph(medium_grain_frequency)
 463        medium_weight_parsed = input_parsers.parse_float_graph(medium_weight)
 464        high_grain_frequency_parsed = input_parsers.parse_float_graph(high_grain_frequency)
 465        high_weight_parsed = input_parsers.parse_float_graph(high_weight)
 466        result = _internal.composition_film_grain_internal(composition_parsed, grain_strength_parsed, fine_grain_frequency_parsed, fine_weight_parsed, medium_grain_frequency_parsed, medium_weight_parsed, high_grain_frequency_parsed, high_weight_parsed)
 467        return Composition(result)
 468
 469    def fisheye(self, center, radius, strength) -> Composition:
 470        """Composition Fisheye
 471
 472        Applies a fisheye lens distortion to this composition, magnifying the center and compressing the edges
 473
 474        Args:
 475            center: Graph of Vector2f
 476            radius: Graph of Float
 477            strength: Graph of Float
 478
 479        Returns:
 480            Graph: A graph node producing a Composition.
 481        """
 482        composition_parsed = input_parsers.parse_graph(self)
 483        center_parsed = input_parsers.parse_graph(center)
 484        radius_parsed = input_parsers.parse_float_graph(radius)
 485        strength_parsed = input_parsers.parse_float_graph(strength)
 486        result = _internal.composition_fisheye_internal(composition_parsed, center_parsed, radius_parsed, strength_parsed)
 487        return Composition(result)
 488
 489    def flip_horizontal(self) -> Composition:
 490        """Composition Flip Horizontal
 491
 492        Flips the image along the horizontal axis
 493
 494        Returns:
 495            Graph: A graph node producing a Composition.
 496        """
 497        composition_parsed = input_parsers.parse_graph(self)
 498        result = _internal.composition_flip_horizontal_internal(composition_parsed)
 499        return Composition(result)
 500
 501    def flip_vertical(self) -> Composition:
 502        """Composition Flip Vertical
 503
 504        Flips the image vertically
 505
 506        Returns:
 507            Graph: A graph node producing a Composition.
 508        """
 509        composition_parsed = input_parsers.parse_graph(self)
 510        result = _internal.composition_flip_vertical_internal(composition_parsed)
 511        return Composition(result)
 512
 513    def foreground_cutout(self) -> Composition:
 514        """Composition Foreground Cutout
 515
 516        Removes the background of a composition without a prompt, keeping the main subject on transparency. Edge colors are re-estimated so hair and fur don't carry the old background's color.
 517
 518        Returns:
 519            Graph: A graph node producing a Composition.
 520        """
 521        composition_parsed = input_parsers.parse_graph(self)
 522        result = _internal.composition_foreground_cutout_internal(composition_parsed)
 523        return Composition(result)
 524
 525    def foreground_mask(self) -> Composition:
 526        """Composition Foreground Mask
 527
 528        Finds the main subject of a composition without a prompt and returns its mask. The result is white with the subject's soft matte in alpha (1 = subject), the same convention as Composition Segment.
 529
 530        Returns:
 531            Graph: A graph node producing a Composition.
 532        """
 533        composition_parsed = input_parsers.parse_graph(self)
 534        result = _internal.composition_foreground_mask_internal(composition_parsed)
 535        return Composition(result)
 536
 537    @staticmethod
 538    def freeform_shader(function_body, helpers, bounds, working_color_representation, inputs) -> Composition:
 539        """Composition Freeform Shader
 540
 541        Given a bounds and a shader, allows you to generate an image.
 542
 543        Args:
 544            function_body: Graph of String
 545            helpers: Graph of String
 546            bounds: Graph of Bounds2f
 547            working_color_representation: Graph of ColorRepresentation
 548            inputs: Graph of Dictionary
 549
 550        Returns:
 551            Graph: A graph node producing a Composition.
 552        """
 553        function_body_parsed = input_parsers.parse_string_graph(function_body)
 554        helpers_parsed = input_parsers.parse_string_graph(helpers)
 555        bounds_parsed = input_parsers.parse_graph(bounds)
 556        working_color_representation_parsed = input_parsers.parse_graph(working_color_representation)
 557        inputs_parsed = input_parsers.parse_graph(inputs)
 558        result = _internal.composition_freeform_shader_internal(function_body_parsed, helpers_parsed, bounds_parsed, working_color_representation_parsed, inputs_parsed)
 559        return Composition(result)
 560
 561    @staticmethod
 562    def from_image(image) -> Composition:
 563        """Composition from Image
 564
 565        Creates an composition out of an image
 566
 567        Args:
 568            image: Graph of Image
 569
 570        Returns:
 571            Graph: A graph node producing a Composition.
 572        """
 573        image_parsed = input_parsers.parse_graph(image)
 574        result = _internal.composition_from_image_internal(image_parsed)
 575        return Composition(result)
 576
 577    @staticmethod
 578    def from_path(path) -> Composition:
 579        """Composition from Path
 580
 581        Loads an image from a file path or URL, decodes its bytes, and creates a Composition from it.
 582
 583        Args:
 584            path: Graph of String
 585
 586        Returns:
 587            Graph: A graph node producing a Composition.
 588        """
 589        path_parsed = input_parsers.parse_string_graph(path)
 590        result = _internal.composition_from_path_internal(path_parsed)
 591        return Composition(result)
 592
 593    def gaussian_blur(self, sigma) -> Composition:
 594        """Composition Gaussian Blur
 595
 596        Applies a gaussian blur to an image. Sigma controls the blur intensity.
 597
 598        Args:
 599            sigma: Graph of Float
 600
 601        Returns:
 602            Graph: A graph node producing a Composition.
 603        """
 604        composition_parsed = input_parsers.parse_graph(self)
 605        sigma_parsed = input_parsers.parse_float_graph(sigma)
 606        result = _internal.composition_gaussian_blur_internal(composition_parsed, sigma_parsed)
 607        return Composition(result)
 608
 609    def grayscale(self) -> Composition:
 610        """Composition Grayscale
 611
 612        Applies grayscale to a Composition
 613
 614        Returns:
 615            Graph: A graph node producing a Composition.
 616        """
 617        composition_parsed = input_parsers.parse_graph(self)
 618        result = _internal.composition_grayscale_internal(composition_parsed)
 619        return Composition(result)
 620
 621    def halftone(self, pixel_size, foreground_color, background_color) -> Composition:
 622        """Composition Halftone
 623
 624        Applies a halftone effect to a composition, tiling it into cells and painting a foreground-colored dot in each cell whose radius grows as the cell darkens, over a background color.
 625
 626        Args:
 627            pixel_size: Graph of Int
 628            foreground_color: Graph of ProfiledColor
 629            background_color: Graph of ProfiledColor
 630
 631        Returns:
 632            Graph: A graph node producing a Composition.
 633        """
 634        composition_parsed = input_parsers.parse_graph(self)
 635        pixel_size_parsed = input_parsers.parse_int_graph(pixel_size)
 636        foreground_color_parsed = input_parsers.parse_graph(foreground_color)
 637        background_color_parsed = input_parsers.parse_graph(background_color)
 638        result = _internal.composition_halftone_internal(composition_parsed, pixel_size_parsed, foreground_color_parsed, background_color_parsed)
 639        return Composition(result)
 640
 641    def kaleidoscope(self, segments, rotation, warp, warp_frequency) -> Composition:
 642        """Composition Kaleidoscope
 643
 644        Applies a kaleidoscope effect, folding the image into mirrored wedges around the center. segments controls the number of wedges, rotation spins the pattern, and warp/warp_frequency add a radial glass-like distortion.
 645
 646        Args:
 647            segments: Graph of Float
 648            rotation: Graph of Float
 649            warp: Graph of Float
 650            warp_frequency: Graph of Float
 651
 652        Returns:
 653            Graph: A graph node producing a Composition.
 654        """
 655        composition_parsed = input_parsers.parse_graph(self)
 656        segments_parsed = input_parsers.parse_float_graph(segments)
 657        rotation_parsed = input_parsers.parse_float_graph(rotation)
 658        warp_parsed = input_parsers.parse_float_graph(warp)
 659        warp_frequency_parsed = input_parsers.parse_float_graph(warp_frequency)
 660        result = _internal.composition_kaleidoscope_internal(composition_parsed, segments_parsed, rotation_parsed, warp_parsed, warp_frequency_parsed)
 661        return Composition(result)
 662
 663    def l_curve(self, l_curve) -> Composition:
 664        """Composition Lightness Curve
 665
 666        Applies a curve to the L component in an OkLab color. Adjusting the lightness of the image.
 667
 668        Args:
 669            l_curve: Graph of Curve
 670
 671        Returns:
 672            Graph: A graph node producing a Composition.
 673        """
 674        composition_parsed = input_parsers.parse_graph(self)
 675        l_curve_parsed = input_parsers.parse_graph(l_curve)
 676        result = _internal.composition_l_curve_internal(composition_parsed, l_curve_parsed)
 677        return Composition(result)
 678
 679    def lightness_threshold(self, threshold) -> Composition:
 680        """Composition Lightness Threshold
 681
 682        Thresholds a Composition by OkLab lightness, producing an opaque white mask where lightness exceeds the threshold and transparent black elsewhere.
 683
 684        Args:
 685            threshold: Graph of Float
 686
 687        Returns:
 688            Graph: A graph node producing a Composition.
 689        """
 690        composition_parsed = input_parsers.parse_graph(self)
 691        threshold_parsed = input_parsers.parse_float_graph(threshold)
 692        result = _internal.composition_lightness_threshold_internal(composition_parsed, threshold_parsed)
 693        return Composition(result)
 694
 695    def linear_transform(self, entry_0_0, entry_0_1, entry_0_2, entry_0_3, entry_1_0, entry_1_1, entry_1_2, entry_1_3, entry_2_0, entry_2_1, entry_2_2, entry_2_3, entry_3_0, entry_3_1, entry_3_2, entry_3_3) -> Composition:
 696        """Composition RGBA Linear Transform
 697
 698        Applies a linear transform to a Composition's RGBA values. Before application, will convert to a linear version of the color profile and will convert to an RGB profile if needed.
 699
 700        Args:
 701            entry_0_0: Graph of Float
 702            entry_0_1: Graph of Float
 703            entry_0_2: Graph of Float
 704            entry_0_3: Graph of Float
 705            entry_1_0: Graph of Float
 706            entry_1_1: Graph of Float
 707            entry_1_2: Graph of Float
 708            entry_1_3: Graph of Float
 709            entry_2_0: Graph of Float
 710            entry_2_1: Graph of Float
 711            entry_2_2: Graph of Float
 712            entry_2_3: Graph of Float
 713            entry_3_0: Graph of Float
 714            entry_3_1: Graph of Float
 715            entry_3_2: Graph of Float
 716            entry_3_3: Graph of Float
 717
 718        Returns:
 719            Graph: A graph node producing a Composition.
 720        """
 721        composition_parsed = input_parsers.parse_graph(self)
 722        entry_0_0_parsed = input_parsers.parse_float_graph(entry_0_0)
 723        entry_0_1_parsed = input_parsers.parse_float_graph(entry_0_1)
 724        entry_0_2_parsed = input_parsers.parse_float_graph(entry_0_2)
 725        entry_0_3_parsed = input_parsers.parse_float_graph(entry_0_3)
 726        entry_1_0_parsed = input_parsers.parse_float_graph(entry_1_0)
 727        entry_1_1_parsed = input_parsers.parse_float_graph(entry_1_1)
 728        entry_1_2_parsed = input_parsers.parse_float_graph(entry_1_2)
 729        entry_1_3_parsed = input_parsers.parse_float_graph(entry_1_3)
 730        entry_2_0_parsed = input_parsers.parse_float_graph(entry_2_0)
 731        entry_2_1_parsed = input_parsers.parse_float_graph(entry_2_1)
 732        entry_2_2_parsed = input_parsers.parse_float_graph(entry_2_2)
 733        entry_2_3_parsed = input_parsers.parse_float_graph(entry_2_3)
 734        entry_3_0_parsed = input_parsers.parse_float_graph(entry_3_0)
 735        entry_3_1_parsed = input_parsers.parse_float_graph(entry_3_1)
 736        entry_3_2_parsed = input_parsers.parse_float_graph(entry_3_2)
 737        entry_3_3_parsed = input_parsers.parse_float_graph(entry_3_3)
 738        result = _internal.composition_linear_transform_internal(composition_parsed, entry_0_0_parsed, entry_0_1_parsed, entry_0_2_parsed, entry_0_3_parsed, entry_1_0_parsed, entry_1_1_parsed, entry_1_2_parsed, entry_1_3_parsed, entry_2_0_parsed, entry_2_1_parsed, entry_2_2_parsed, entry_2_3_parsed, entry_3_0_parsed, entry_3_1_parsed, entry_3_2_parsed, entry_3_3_parsed)
 739        return Composition(result)
 740
 741    def liquify(self, amplitude, frequency) -> Composition:
 742        """Composition Liquify
 743
 744        Applies a sinusoidal liquify distortion to this composition, displacing pixels by a wave whose size is controlled by amplitude and whose density is controlled by frequency.
 745
 746        Args:
 747            amplitude: Graph of Float
 748            frequency: Graph of Float
 749
 750        Returns:
 751            Graph: A graph node producing a Composition.
 752        """
 753        composition_parsed = input_parsers.parse_graph(self)
 754        amplitude_parsed = input_parsers.parse_float_graph(amplitude)
 755        frequency_parsed = input_parsers.parse_float_graph(frequency)
 756        result = _internal.composition_liquify_internal(composition_parsed, amplitude_parsed, frequency_parsed)
 757        return Composition(result)
 758
 759    def locate(self, prompt, positive_points, negative_points) -> bounds2f_list.Bounds2fList:
 760        """Composition Locate
 761
 762        Finds the location of a prompt within the image.
 763
 764        Args:
 765            prompt: Graph of String
 766            positive_points: Graph of Point2iList
 767            negative_points: Graph of Point2iList
 768
 769        Returns:
 770            Graph: A graph node producing a Bounds2fList.
 771        """
 772        composition_parsed = input_parsers.parse_graph(self)
 773        prompt_parsed = input_parsers.parse_string_graph(prompt)
 774        positive_points_parsed = input_parsers.parse_graph(positive_points)
 775        negative_points_parsed = input_parsers.parse_graph(negative_points)
 776        result = _internal.composition_locate_internal(composition_parsed, prompt_parsed, positive_points_parsed, negative_points_parsed)
 777        from .bounds2f_list import Bounds2fList
 778        return Bounds2fList(result)
 779
 780    def max_color(self) -> profiled_color.ProfiledColor:
 781        """Composition Max Color
 782
 783        Computes the maximum color in a composition. Works by finding the maximum L, a and b and alpha components of an OkLabA color.
 784
 785        Returns:
 786            Graph: A graph node producing a ProfiledColor.
 787        """
 788        composition_parsed = input_parsers.parse_graph(self)
 789        result = _internal.composition_max_color_internal(composition_parsed)
 790        from .profiled_color import ProfiledColor
 791        return ProfiledColor(result)
 792
 793    def median(self, kernel_size) -> Composition:
 794        """Composition Median
 795
 796        Applies a per-channel median filter to a composition over a square window, reducing noise while preserving edges. kernel_size controls the window size (window width is 2*kernel_size-1).
 797
 798        Args:
 799            kernel_size: Graph of Int
 800
 801        Returns:
 802            Graph: A graph node producing a Composition.
 803        """
 804        composition_parsed = input_parsers.parse_graph(self)
 805        kernel_size_parsed = input_parsers.parse_int_graph(kernel_size)
 806        result = _internal.composition_median_internal(composition_parsed, kernel_size_parsed)
 807        return Composition(result)
 808
 809    def min_color(self) -> profiled_color.ProfiledColor:
 810        """Composition Min Color
 811
 812        Computes the minimum color in a composition. Works by finding the minimum L, a and b and alpha components of an OkLabA color.
 813
 814        Returns:
 815            Graph: A graph node producing a ProfiledColor.
 816        """
 817        composition_parsed = input_parsers.parse_graph(self)
 818        result = _internal.composition_min_color_internal(composition_parsed)
 819        from .profiled_color import ProfiledColor
 820        return ProfiledColor(result)
 821
 822    def min_max_colors(self) -> profiled_color_list.ProfiledColorList:
 823        """Composition Min Max Colors
 824
 825        Computes the minimum and maximum colors in a composition. Works by finding the minimum and maximum L, a and b and alpha components of an OkLabA color.
 826
 827        Returns:
 828            Graph: A graph node producing a ProfiledColorList.
 829        """
 830        composition_parsed = input_parsers.parse_graph(self)
 831        result = _internal.composition_min_max_colors_internal(composition_parsed)
 832        from .profiled_color_list import ProfiledColorList
 833        return ProfiledColorList(result)
 834
 835    @staticmethod
 836    def monet_women_with_parasol() -> Composition:
 837        """Monet's Women with a Parasol
 838
 839        Creates a composition from Monet's "Women with a Parasol" painting. Used frequently as a test asset.
 840
 841        Returns:
 842            Graph: A graph node producing a Composition.
 843        """
 844        result = _internal.composition_monet_women_with_parasol_internal()
 845        return Composition(result)
 846
 847    def morphological_max(self, dimension) -> Composition:
 848        """Composition Morphological Max
 849
 850        Apples a morphological max operation.
 851
 852        Args:
 853            dimension: Graph of Int
 854
 855        Returns:
 856            Graph: A graph node producing a Composition.
 857        """
 858        composition_parsed = input_parsers.parse_graph(self)
 859        dimension_parsed = input_parsers.parse_int_graph(dimension)
 860        result = _internal.composition_morphological_max_internal(composition_parsed, dimension_parsed)
 861        return Composition(result)
 862
 863    def morphological_min(self, dimension) -> Composition:
 864        """Composition Morphological Min
 865
 866        Apples a morphological min operation.
 867
 868        Args:
 869            dimension: Graph of Int
 870
 871        Returns:
 872            Graph: A graph node producing a Composition.
 873        """
 874        composition_parsed = input_parsers.parse_graph(self)
 875        dimension_parsed = input_parsers.parse_int_graph(dimension)
 876        result = _internal.composition_morphological_min_internal(composition_parsed, dimension_parsed)
 877        return Composition(result)
 878
 879    def negative(self) -> Composition:
 880        """Composition Negative
 881
 882        Creates the effect of a negative image by subracting from each component of the image.
 883
 884        Returns:
 885            Graph: A graph node producing a Composition.
 886        """
 887        composition_parsed = input_parsers.parse_graph(self)
 888        result = _internal.composition_negative_internal(composition_parsed)
 889        return Composition(result)
 890
 891    def nonlinear_rgb_blend_alpha(self, background) -> Composition:
 892        """Composition Nonlinear RGB Blend Alpha
 893
 894        A specialized version of CompositionBlendAlpha. Blends in a non-linear RGB.
 895
 896        Args:
 897            background: Graph of Composition
 898
 899        Returns:
 900            Graph: A graph node producing a Composition.
 901        """
 902        foreground_parsed = input_parsers.parse_graph(self)
 903        background_parsed = input_parsers.parse_graph(background)
 904        result = _internal.composition_nonlinear_r_g_b_blend_alpha_internal(foreground_parsed, background_parsed)
 905        return Composition(result)
 906
 907    def opacity_scales(self, scale) -> Composition:
 908        """Composition Opacity Scale
 909
 910        Changes the opacity of an image by multiplying it by a scalar.
 911
 912        Args:
 913            scale: Graph of Float
 914
 915        Returns:
 916            Graph: A graph node producing a Composition.
 917        """
 918        composition_parsed = input_parsers.parse_graph(self)
 919        scale_parsed = input_parsers.parse_float_graph(scale)
 920        result = _internal.composition_opacity_scale_internal(composition_parsed, scale_parsed)
 921        return Composition(result)
 922
 923    def opaque_bounds(self, alpha_threshold) -> bounds2f.Bounds2f:
 924        """Composition Opaque Bounds
 925
 926        Computes the bounding box of the pixels in a composition whose alpha is greater than the threshold. Unlike Composition Bounds, transparent regions are excluded.
 927
 928        Args:
 929            alpha_threshold: Graph of Float
 930
 931        Returns:
 932            Graph: A graph node producing a Bounds2f.
 933        """
 934        composition_parsed = input_parsers.parse_graph(self)
 935        alpha_threshold_parsed = input_parsers.parse_float_graph(alpha_threshold)
 936        result = _internal.composition_opaque_bounds_internal(composition_parsed, alpha_threshold_parsed)
 937        from .bounds2f import Bounds2f
 938        return Bounds2f(result)
 939
 940    @staticmethod
 941    def painter(painter) -> Composition:
 942        """Composition Painter
 943
 944        Creates a composition from a painter.
 945
 946        Args:
 947            painter: Graph of Painter
 948
 949        Returns:
 950            Graph: A graph node producing a Composition.
 951        """
 952        painter_parsed = input_parsers.parse_graph(painter)
 953        result = _internal.composition_painter_internal(painter_parsed)
 954        return Composition(result)
 955
 956    def to_palette(self, size) -> profiled_color_list.ProfiledColorList:
 957        """Composition Palette
 958
 959        Generates a palette of the most dominant colors of a composition.
 960
 961        Args:
 962            size: Graph of Int
 963
 964        Returns:
 965            Graph: A graph node producing a ProfiledColorList.
 966        """
 967        composition_parsed = input_parsers.parse_graph(self)
 968        size_parsed = input_parsers.parse_int_graph(size)
 969        result = _internal.composition_palette_internal(composition_parsed, size_parsed)
 970        from .profiled_color_list import ProfiledColorList
 971        return ProfiledColorList(result)
 972
 973    def palette_reduction(self, palette) -> Composition:
 974        """Composition Palette Reduction
 975
 976        Reduces the number of colors in a composition to a specified palette.
 977
 978        Args:
 979            palette: Graph of ProfiledColorList
 980
 981        Returns:
 982            Graph: A graph node producing a Composition.
 983        """
 984        composition_parsed = input_parsers.parse_graph(self)
 985        palette_parsed = input_parsers.parse_graph(palette)
 986        result = _internal.composition_palette_reduction_internal(composition_parsed, palette_parsed)
 987        return Composition(result)
 988
 989    def pixelate(self, pixel_size) -> Composition:
 990        """Composition Pixelate
 991
 992        Applies a pixelation effect to a composition.
 993
 994        Args:
 995            pixel_size: Graph of Int
 996
 997        Returns:
 998            Graph: A graph node producing a Composition.
 999        """
1000        composition_parsed = input_parsers.parse_graph(self)
1001        pixel_size_parsed = input_parsers.parse_int_graph(pixel_size)
1002        result = _internal.composition_pixelate_internal(composition_parsed, pixel_size_parsed)
1003        return Composition(result)
1004
1005    def point_effect_shader(self, function_body, helpers, effect_center_point, effect_radius, inputs, working_color_representation) -> Composition:
1006        """Composition Point Effect Shader
1007
1008        Runs a custom shader over a circular region around an effect center point.
1009
1010        Args:
1011            function_body: Graph of String
1012            helpers: Graph of String
1013            effect_center_point: Graph of Point2f
1014            effect_radius: Graph of Float
1015            inputs: Graph of Dictionary
1016            working_color_representation: Graph of ColorRepresentation
1017
1018        Returns:
1019            Graph: A graph node producing a Composition.
1020        """
1021        composition_parsed = input_parsers.parse_graph(self)
1022        function_body_parsed = input_parsers.parse_string_graph(function_body)
1023        helpers_parsed = input_parsers.parse_string_graph(helpers)
1024        effect_center_point_parsed = input_parsers.parse_graph(effect_center_point)
1025        effect_radius_parsed = input_parsers.parse_float_graph(effect_radius)
1026        inputs_parsed = input_parsers.parse_graph(inputs)
1027        working_color_representation_parsed = input_parsers.parse_graph(working_color_representation)
1028        result = _internal.composition_point_effect_shader_internal(composition_parsed, function_body_parsed, helpers_parsed, effect_center_point_parsed, effect_radius_parsed, inputs_parsed, working_color_representation_parsed)
1029        return Composition(result)
1030
1031    def r_g_b_curve(self, r_curve, g_curve, b_curve) -> Composition:
1032        """Composition RGB Curve
1033
1034        Applies a curve to the R, G, and B components
1035
1036        Args:
1037            r_curve: Graph of Curve
1038            g_curve: Graph of Curve
1039            b_curve: Graph of Curve
1040
1041        Returns:
1042            Graph: A graph node producing a Composition.
1043        """
1044        composition_parsed = input_parsers.parse_graph(self)
1045        r_curve_parsed = input_parsers.parse_graph(r_curve)
1046        g_curve_parsed = input_parsers.parse_graph(g_curve)
1047        b_curve_parsed = input_parsers.parse_graph(b_curve)
1048        result = _internal.composition_r_g_b_curve_internal(composition_parsed, r_curve_parsed, g_curve_parsed, b_curve_parsed)
1049        return Composition(result)
1050
1051    def render_to_image(self) -> image.Image:
1052        """Composition Render to Image
1053
1054        Renders a Composition to an Image
1055
1056        Returns:
1057            Graph: A graph node producing a Image.
1058        """
1059        composition_parsed = input_parsers.parse_graph(self)
1060        result = _internal.composition_render_to_image_internal(composition_parsed)
1061        from .image import Image
1062        return Image(result)
1063
1064    def rotate_180(self) -> Composition:
1065        """Composition Rotate 180
1066
1067        Rotates the image 180 degrees
1068
1069        Returns:
1070            Graph: A graph node producing a Composition.
1071        """
1072        composition_parsed = input_parsers.parse_graph(self)
1073        result = _internal.composition_rotate180_internal(composition_parsed)
1074        return Composition(result)
1075
1076    def rotate_90_clockwise(self) -> Composition:
1077        """Composition Rotate 90 Clockwise
1078
1079        Rotates the image 90 degrees clockwise
1080
1081        Returns:
1082            Graph: A graph node producing a Composition.
1083        """
1084        composition_parsed = input_parsers.parse_graph(self)
1085        result = _internal.composition_rotate90_clockwise_internal(composition_parsed)
1086        return Composition(result)
1087
1088    def rotate_90_counter_clockwise(self) -> Composition:
1089        """Composition Rotate 90 Counter Clockwise
1090
1091        Rotates the image 90 degrees counter-clockwise
1092
1093        Returns:
1094            Graph: A graph node producing a Composition.
1095        """
1096        composition_parsed = input_parsers.parse_graph(self)
1097        result = _internal.composition_rotate90_counter_clockwise_internal(composition_parsed)
1098        return Composition(result)
1099
1100    def saturation_adjust(self, scale) -> Composition:
1101        """Composition Saturation Adjust
1102
1103        Adjusts the saturation of an image by a given factor. Internally, scales the chroma components in OkLab color space.
1104
1105        Args:
1106            scale: Graph of Float
1107
1108        Returns:
1109            Graph: A graph node producing a Composition.
1110        """
1111        composition_parsed = input_parsers.parse_graph(self)
1112        scale_parsed = input_parsers.parse_float_graph(scale)
1113        result = _internal.composition_saturation_adjust_internal(composition_parsed, scale_parsed)
1114        return Composition(result)
1115
1116    def scanlines(self, size, beam_power, line_offset, intensity) -> Composition:
1117        """Composition Scanlines
1118
1119        Applies a CRT-style scanline effect, darkening the composition in horizontal bands whose spacing is set by size, sharpness by beam power, vertical phase by line offset, and overall strength by intensity.
1120
1121        Args:
1122            size: Graph of Float
1123            beam_power: Graph of Float
1124            line_offset: Graph of Float
1125            intensity: Graph of Float
1126
1127        Returns:
1128            Graph: A graph node producing a Composition.
1129        """
1130        composition_parsed = input_parsers.parse_graph(self)
1131        size_parsed = input_parsers.parse_float_graph(size)
1132        beam_power_parsed = input_parsers.parse_float_graph(beam_power)
1133        line_offset_parsed = input_parsers.parse_float_graph(line_offset)
1134        intensity_parsed = input_parsers.parse_float_graph(intensity)
1135        result = _internal.composition_scanlines_internal(composition_parsed, size_parsed, beam_power_parsed, line_offset_parsed, intensity_parsed)
1136        return Composition(result)
1137
1138    def segment(self, prompt, positive_points, negative_points) -> Composition:
1139        """Composition Segment
1140
1141        Segments objects in a composition using SAM3. Accepts a text prompt and lists of positive/negative click points.
1142
1143        Args:
1144            prompt: Graph of String
1145            positive_points: Graph of Point2iList
1146            negative_points: Graph of Point2iList
1147
1148        Returns:
1149            Graph: A graph node producing a Composition.
1150        """
1151        composition_parsed = input_parsers.parse_graph(self)
1152        prompt_parsed = input_parsers.parse_string_graph(prompt)
1153        positive_points_parsed = input_parsers.parse_graph(positive_points)
1154        negative_points_parsed = input_parsers.parse_graph(negative_points)
1155        result = _internal.composition_segment_internal(composition_parsed, prompt_parsed, positive_points_parsed, negative_points_parsed)
1156        return Composition(result)
1157
1158    def sharpen(self, radius, strength) -> Composition:
1159        """Composition Sharpen
1160
1161        Applies a sharpen filter to the composition.
1162
1163        Args:
1164            radius: Graph of Float
1165            strength: Graph of Float
1166
1167        Returns:
1168            Graph: A graph node producing a Composition.
1169        """
1170        composition_parsed = input_parsers.parse_graph(self)
1171        radius_parsed = input_parsers.parse_float_graph(radius)
1172        strength_parsed = input_parsers.parse_float_graph(strength)
1173        result = _internal.composition_sharpen_internal(composition_parsed, radius_parsed, strength_parsed)
1174        return Composition(result)
1175
1176    def sobel_edge_detection(self) -> Composition:
1177        """Composition Sobel Edge Detection
1178
1179        Applies Sobel edge detection to an image.
1180
1181        Returns:
1182            Graph: A graph node producing a Composition.
1183        """
1184        composition_parsed = input_parsers.parse_graph(self)
1185        result = _internal.composition_sobel_edge_detection_internal(composition_parsed)
1186        return Composition(result)
1187
1188    def spacial_effect_shader(self, function_body, helpers, max_displacement, inputs, working_color_representation) -> Composition:
1189        """Composition Spacial Effect Shader
1190
1191        Runs a custom shader over an input that can spatially displace pixels by up to a maximum displacement.
1192
1193        Args:
1194            function_body: Graph of String
1195            helpers: Graph of String
1196            max_displacement: Graph of Float
1197            inputs: Graph of Dictionary
1198            working_color_representation: Graph of ColorRepresentation
1199
1200        Returns:
1201            Graph: A graph node producing a Composition.
1202        """
1203        composition_parsed = input_parsers.parse_graph(self)
1204        function_body_parsed = input_parsers.parse_string_graph(function_body)
1205        helpers_parsed = input_parsers.parse_string_graph(helpers)
1206        max_displacement_parsed = input_parsers.parse_float_graph(max_displacement)
1207        inputs_parsed = input_parsers.parse_graph(inputs)
1208        working_color_representation_parsed = input_parsers.parse_graph(working_color_representation)
1209        result = _internal.composition_spacial_effect_shader_internal(composition_parsed, function_body_parsed, helpers_parsed, max_displacement_parsed, inputs_parsed, working_color_representation_parsed)
1210        return Composition(result)
1211
1212    def swirl(self, center, radius, amount) -> Composition:
1213        """Composition Swirl
1214
1215        Applies a swirl distortion to this composition
1216
1217        Args:
1218            center: Graph of Vector2f
1219            radius: Graph of Float
1220            amount: Graph of Float
1221
1222        Returns:
1223            Graph: A graph node producing a Composition.
1224        """
1225        composition_parsed = input_parsers.parse_graph(self)
1226        center_parsed = input_parsers.parse_graph(center)
1227        radius_parsed = input_parsers.parse_float_graph(radius)
1228        amount_parsed = input_parsers.parse_float_graph(amount)
1229        result = _internal.composition_swirl_internal(composition_parsed, center_parsed, radius_parsed, amount_parsed)
1230        return Composition(result)
1231
1232    def target_white_kelvin(self, kelvin) -> Composition:
1233        """Composition Target White Kelvin
1234
1235        Sets the image white point to the value specified in Kelvin. The profile connection white point is D50, so you will only see changes as you move away from that.
1236
1237        Args:
1238            kelvin: Graph of Float
1239
1240        Returns:
1241            Graph: A graph node producing a Composition.
1242        """
1243        composition_parsed = input_parsers.parse_graph(self)
1244        kelvin_parsed = input_parsers.parse_float_graph(kelvin)
1245        result = _internal.composition_target_white_kelvin_internal(composition_parsed, kelvin_parsed)
1246        return Composition(result)
1247
1248    def to_ok_lab_hist(self) -> ok_lab_hist.OkLabHist:
1249        """Composition to OkLab Histogram
1250
1251        Creates an OkLab Histogram from the colors in a Composition.
1252
1253        Returns:
1254            Graph: A graph node producing a OkLabHist.
1255        """
1256        composition_parsed = input_parsers.parse_graph(self)
1257        result = _internal.composition_to_ok_lab_hist_internal(composition_parsed)
1258        from .ok_lab_hist import OkLabHist
1259        return OkLabHist(result)
1260
1261    def transform(self, transform) -> Composition:
1262        """Composition Transform
1263
1264        Applies a 2D transform to a Composition.
1265
1266        Args:
1267            transform: Graph of Transform2
1268
1269        Returns:
1270            Graph: A graph node producing a Composition.
1271        """
1272        composition_parsed = input_parsers.parse_graph(self)
1273        transform_parsed = input_parsers.parse_graph(transform)
1274        result = _internal.composition_transform_internal(composition_parsed, transform_parsed)
1275        return Composition(result)
1276
1277    def vibrance_adjustment(self, strength) -> Composition:
1278        """Composition Vibrance Adjustment
1279
1280        Adjusts the vibrance of an image by a given strength. Internally, boosts chroma in OkLab color space adaptively, applying more boost to less saturated colors.
1281
1282        Args:
1283            strength: Graph of Float
1284
1285        Returns:
1286            Graph: A graph node producing a Composition.
1287        """
1288        composition_parsed = input_parsers.parse_graph(self)
1289        strength_parsed = input_parsers.parse_float_graph(strength)
1290        result = _internal.composition_vibrance_adjustment_internal(composition_parsed, strength_parsed)
1291        return Composition(result)
1292
1293    def vignette(self, center, radius_x, radius_y, softness, strength) -> Composition:
1294        """Composition Vignette
1295
1296        darkens the area outside an ellipse - center is the bright spot in pixel coordinates, radius_x and radius_y are the ellipse semi-axes in pixels where the falloff starts, softness is the width of the fade-out band in pixels, and strength (0-1) defines how dark the edges become at maximum.
1297
1298        Args:
1299            center: Graph of Vector2f
1300            radius_x: Graph of Float
1301            radius_y: Graph of Float
1302            softness: Graph of Float
1303            strength: Graph of Float
1304
1305        Returns:
1306            Graph: A graph node producing a Composition.
1307        """
1308        composition_parsed = input_parsers.parse_graph(self)
1309        center_parsed = input_parsers.parse_graph(center)
1310        radius_x_parsed = input_parsers.parse_float_graph(radius_x)
1311        radius_y_parsed = input_parsers.parse_float_graph(radius_y)
1312        softness_parsed = input_parsers.parse_float_graph(softness)
1313        strength_parsed = input_parsers.parse_float_graph(strength)
1314        result = _internal.composition_vignette_internal(composition_parsed, center_parsed, radius_x_parsed, radius_y_parsed, softness_parsed, strength_parsed)
1315        return Composition(result)
1316
1317    def zoom_blur(self, center, strength, falloff, effect_radius) -> Composition:
1318        """Composition Zoom Blur
1319
1320        Performs a zoom blur on this composition
1321
1322        Args:
1323            center: Graph of Vector2f
1324            strength: Graph of Float
1325            falloff: Graph of Float
1326            effect_radius: Graph of Float
1327
1328        Returns:
1329            Graph: A graph node producing a Composition.
1330        """
1331        composition_parsed = input_parsers.parse_graph(self)
1332        center_parsed = input_parsers.parse_graph(center)
1333        strength_parsed = input_parsers.parse_float_graph(strength)
1334        falloff_parsed = input_parsers.parse_float_graph(falloff)
1335        effect_radius_parsed = input_parsers.parse_float_graph(effect_radius)
1336        result = _internal.composition_zoom_blur_internal(composition_parsed, center_parsed, strength_parsed, falloff_parsed, effect_radius_parsed)
1337        return Composition(result)

A composition to create an image.

def execute(self, context):
27    def execute(self, context):
28        return self._inner.execute(context).as_composition()
@staticmethod
def load(value) -> Composition:
30    @staticmethod
31    def load(value) -> Composition:
32        return Composition(input_parsers.parse_composition_graph(value))
def absolute_value(self) -> Composition:
34    def absolute_value(self) -> Composition:
35        """Composition Absolute Value
36
37        Takes the absolute value of all the pixels in the image.
38
39        Returns:
40            Graph: A graph node producing a Composition.
41        """
42        image_parsed = input_parsers.parse_graph(self)
43        result = _internal.composition_absolute_value_internal(image_parsed)
44        return Composition(result)

Composition Absolute Value

Takes the absolute value of all the pixels in the image.

Returns: Graph: A graph node producing a Composition.

def blend_add(self, background) -> Composition:
46    def blend_add(self, background) -> Composition:
47        """Composition Blend Add
48
49        Adds the foreground and background images together using additive blending.
50
51        Args:
52            background: Graph of Composition
53
54        Returns:
55            Graph: A graph node producing a Composition.
56        """
57        foreground_parsed = input_parsers.parse_graph(self)
58        background_parsed = input_parsers.parse_graph(background)
59        result = _internal.composition_blend_add_internal(foreground_parsed, background_parsed)
60        return Composition(result)

Composition Blend Add

Adds the foreground and background images together using additive blending.

Args: background: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def blend_alpha(self, background) -> Composition:
62    def blend_alpha(self, background) -> Composition:
63        """Composition Blend Alpha
64
65        Blends between the foreground and background using the alpha component of the foreground. 1 is foreground. 0 is background.
66
67        Args:
68            background: Graph of Composition
69
70        Returns:
71            Graph: A graph node producing a Composition.
72        """
73        foreground_parsed = input_parsers.parse_graph(self)
74        background_parsed = input_parsers.parse_graph(background)
75        result = _internal.composition_blend_alpha_internal(foreground_parsed, background_parsed)
76        return Composition(result)

Composition Blend Alpha

Blends between the foreground and background using the alpha component of the foreground. 1 is foreground. 0 is background.

Args: background: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def blend_max(self, background) -> Composition:
78    def blend_max(self, background) -> Composition:
79        """Composition Blend Max
80
81        Blends the foreground and background images using maximum value blending.
82
83        Args:
84            background: Graph of Composition
85
86        Returns:
87            Graph: A graph node producing a Composition.
88        """
89        foreground_parsed = input_parsers.parse_graph(self)
90        background_parsed = input_parsers.parse_graph(background)
91        result = _internal.composition_blend_max_internal(foreground_parsed, background_parsed)
92        return Composition(result)

Composition Blend Max

Blends the foreground and background images using maximum value blending.

Args: background: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def blend_min(self, background) -> Composition:
 94    def blend_min(self, background) -> Composition:
 95        """Composition Blend Min
 96
 97        Blends the foreground and background images using minimum blending, taking the minimum value for each pixel.
 98
 99        Args:
100            background: Graph of Composition
101
102        Returns:
103            Graph: A graph node producing a Composition.
104        """
105        foreground_parsed = input_parsers.parse_graph(self)
106        background_parsed = input_parsers.parse_graph(background)
107        result = _internal.composition_blend_min_internal(foreground_parsed, background_parsed)
108        return Composition(result)

Composition Blend Min

Blends the foreground and background images using minimum blending, taking the minimum value for each pixel.

Args: background: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def blend_multiply(self, background) -> Composition:
110    def blend_multiply(self, background) -> Composition:
111        """Composition Blend Multiply
112
113        Multiplies the foreground and background images together using multiply blending.
114
115        Args:
116            background: Graph of Composition
117
118        Returns:
119            Graph: A graph node producing a Composition.
120        """
121        foreground_parsed = input_parsers.parse_graph(self)
122        background_parsed = input_parsers.parse_graph(background)
123        result = _internal.composition_blend_multiply_internal(foreground_parsed, background_parsed)
124        return Composition(result)

Composition Blend Multiply

Multiplies the foreground and background images together using multiply blending.

Args: background: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def blend_stencil(self, background) -> Composition:
126    def blend_stencil(self, background) -> Composition:
127        """Composition Blend Stencil
128
129        Blends the foreground and background images using stencil blending. When the foreground is over the background, the foreground's alpha and the background's r, g and b are used.
130
131        Args:
132            background: Graph of Composition
133
134        Returns:
135            Graph: A graph node producing a Composition.
136        """
137        foreground_parsed = input_parsers.parse_graph(self)
138        background_parsed = input_parsers.parse_graph(background)
139        result = _internal.composition_blend_stencil_internal(foreground_parsed, background_parsed)
140        return Composition(result)

Composition Blend Stencil

Blends the foreground and background images using stencil blending. When the foreground is over the background, the foreground's alpha and the background's r, g and b are used.

Args: background: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def blend_subtract(self, background) -> Composition:
142    def blend_subtract(self, background) -> Composition:
143        """Composition Blend Subtract
144
145        Subtracts the foreground image from the background image using subtractive blending.
146
147        Args:
148            background: Graph of Composition
149
150        Returns:
151            Graph: A graph node producing a Composition.
152        """
153        foreground_parsed = input_parsers.parse_graph(self)
154        background_parsed = input_parsers.parse_graph(background)
155        result = _internal.composition_blend_subtract_internal(foreground_parsed, background_parsed)
156        return Composition(result)

Composition Blend Subtract

Subtracts the foreground image from the background image using subtractive blending.

Args: background: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def bloom(self, threshold, sigma, intensity) -> Composition:
158    def bloom(self, threshold, sigma, intensity) -> Composition:
159        """Composition Bloom
160
161        Adds a soft bloom glow by blurring the image's bright areas and additively blending them back over the original. Threshold selects bright areas (OkLab lightness), sigma controls glow spread, intensity scales the glow strength.
162
163        Args:
164            threshold: Graph of Float
165            sigma: Graph of Float
166            intensity: Graph of Float
167
168        Returns:
169            Graph: A graph node producing a Composition.
170        """
171        composition_parsed = input_parsers.parse_graph(self)
172        threshold_parsed = input_parsers.parse_float_graph(threshold)
173        sigma_parsed = input_parsers.parse_float_graph(sigma)
174        intensity_parsed = input_parsers.parse_float_graph(intensity)
175        result = _internal.composition_bloom_internal(composition_parsed, threshold_parsed, sigma_parsed, intensity_parsed)
176        return Composition(result)

Composition Bloom

Adds a soft bloom glow by blurring the image's bright areas and additively blending them back over the original. Threshold selects bright areas (OkLab lightness), sigma controls glow spread, intensity scales the glow strength.

Args: threshold: Graph of Float sigma: Graph of Float intensity: Graph of Float

Returns: Graph: A graph node producing a Composition.

def bounds(self) -> Bounds2f:
178    def bounds(self) -> bounds2f.Bounds2f:
179        """Composition Bounds
180
181        Computes the bounding box of a composition.
182
183        Returns:
184            Graph: A graph node producing a Bounds2f.
185        """
186        composition_parsed = input_parsers.parse_graph(self)
187        result = _internal.composition_bounds_internal(composition_parsed)
188        from .bounds2f import Bounds2f
189        return Bounds2f(result)

Composition Bounds

Computes the bounding box of a composition.

Returns: Graph: A graph node producing a Bounds2f.

def box_blur(self, dimension) -> Composition:
191    def box_blur(self, dimension) -> Composition:
192        """Composition Box Blur
193
194        Applies a box blur to an image. Dimension is the size. 1 corresponding to 3x3, 2 5x5 and so on.
195
196        Args:
197            dimension: Graph of Int
198
199        Returns:
200            Graph: A graph node producing a Composition.
201        """
202        composition_parsed = input_parsers.parse_graph(self)
203        dimension_parsed = input_parsers.parse_int_graph(dimension)
204        result = _internal.composition_box_blur_internal(composition_parsed, dimension_parsed)
205        return Composition(result)

Composition Box Blur

Applies a box blur to an image. Dimension is the size. 1 corresponding to 3x3, 2 5x5 and so on.

Args: dimension: Graph of Int

Returns: Graph: A graph node producing a Composition.

def brightness_adjust(self, scale) -> Composition:
207    def brightness_adjust(self, scale) -> Composition:
208        """Composition Brightness Adjust
209
210        Adjusts an image's brightness by offsetting the L component in OkLab. A scale of 0 leaves brightness unchanged, positive values brighten, and negative values darken.
211
212        Args:
213            scale: Graph of Float
214
215        Returns:
216            Graph: A graph node producing a Composition.
217        """
218        composition_parsed = input_parsers.parse_graph(self)
219        scale_parsed = input_parsers.parse_float_graph(scale)
220        result = _internal.composition_brightness_adjust_internal(composition_parsed, scale_parsed)
221        return Composition(result)

Composition Brightness Adjust

Adjusts an image's brightness by offsetting the L component in OkLab. A scale of 0 leaves brightness unchanged, positive values brighten, and negative values darken.

Args: scale: Graph of Float

Returns: Graph: A graph node producing a Composition.

def chroma_offset(self, offset) -> Composition:
223    def chroma_offset(self, offset) -> Composition:
224        """Composition Chroma Offset
225
226        Applies a chroma offset to an image. This is done by modifying the a and b components of OkLab. For the vector, X applies to a, Y to to b.
227
228        Args:
229            offset: Graph of Vector2f
230
231        Returns:
232            Graph: A graph node producing a Composition.
233        """
234        composition_parsed = input_parsers.parse_graph(self)
235        offset_parsed = input_parsers.parse_graph(offset)
236        result = _internal.composition_chroma_offset_internal(composition_parsed, offset_parsed)
237        return Composition(result)

Composition Chroma Offset

Applies a chroma offset to an image. This is done by modifying the a and b components of OkLab. For the vector, X applies to a, Y to to b.

Args: offset: Graph of Vector2f

Returns: Graph: A graph node producing a Composition.

def color_convert(self, color_profile) -> Composition:
239    def color_convert(self, color_profile) -> Composition:
240        """Composition Color Convert
241
242        Converts a Composition from one color space to another.
243
244        Args:
245            color_profile: Graph of ColorProfile
246
247        Returns:
248            Graph: A graph node producing a Composition.
249        """
250        composition_parsed = input_parsers.parse_graph(self)
251        color_profile_parsed = input_parsers.parse_graph(color_profile)
252        result = _internal.composition_color_convert_internal(composition_parsed, color_profile_parsed)
253        return Composition(result)

Composition Color Convert

Converts a Composition from one color space to another.

Args: color_profile: Graph of ColorProfile

Returns: Graph: A graph node producing a Composition.

def color_invert(self) -> Composition:
255    def color_invert(self) -> Composition:
256        """Composition Color Invert
257
258        Applies a color invert operation to a composition. Taking 1 and subtracting each RGB operation against it. Works in linear color.
259
260        Returns:
261            Graph: A graph node producing a Composition.
262        """
263        composition_parsed = input_parsers.parse_graph(self)
264        result = _internal.composition_color_invert_internal(composition_parsed)
265        return Composition(result)

Composition Color Invert

Applies a color invert operation to a composition. Taking 1 and subtracting each RGB operation against it. Works in linear color.

Returns: Graph: A graph node producing a Composition.

def color_representation(self) -> ColorRepresentation:
267    def color_representation(self) -> color_representation.ColorRepresentation:
268        """Composition Color Representation
269
270        Gets the color representation associated with a Composition
271
272        Returns:
273            Graph: A graph node producing a ColorRepresentation.
274        """
275        composition_parsed = input_parsers.parse_graph(self)
276        result = _internal.composition_color_representation_internal(composition_parsed)
277        from .color_representation import ColorRepresentation
278        return ColorRepresentation(result)

Composition Color Representation

Gets the color representation associated with a Composition

Returns: Graph: A graph node producing a ColorRepresentation.

def color_threshold(self, threshold) -> Composition:
280    def color_threshold(self, threshold) -> Composition:
281        """Composition Color Threshold
282
283        Applies a color threshold to a Composition
284
285        Args:
286            threshold: Graph of Float
287
288        Returns:
289            Graph: A graph node producing a Composition.
290        """
291        composition_parsed = input_parsers.parse_graph(self)
292        threshold_parsed = input_parsers.parse_float_graph(threshold)
293        result = _internal.composition_color_threshold_internal(composition_parsed, threshold_parsed)
294        return Composition(result)

Composition Color Threshold

Applies a color threshold to a Composition

Args: threshold: Graph of Float

Returns: Graph: A graph node producing a Composition.

def color_transformer_shader( self, function_body, helpers, input_color_representation, output_color_representation, inputs) -> Composition:
296    def color_transformer_shader(self, function_body, helpers, input_color_representation, output_color_representation, inputs) -> Composition:
297        """Composition Color Transformer Shader
298
299        Defines a custom shader that takes an input color and then transforms that color to an output color.
300
301        Args:
302            function_body: Graph of String
303            helpers: Graph of String
304            input_color_representation: Graph of ColorRepresentation
305            output_color_representation: Graph of ColorRepresentation
306            inputs: Graph of Dictionary
307
308        Returns:
309            Graph: A graph node producing a Composition.
310        """
311        composition_parsed = input_parsers.parse_graph(self)
312        function_body_parsed = input_parsers.parse_string_graph(function_body)
313        helpers_parsed = input_parsers.parse_string_graph(helpers)
314        input_color_representation_parsed = input_parsers.parse_graph(input_color_representation)
315        output_color_representation_parsed = input_parsers.parse_graph(output_color_representation)
316        inputs_parsed = input_parsers.parse_graph(inputs)
317        result = _internal.composition_color_transformer_shader_internal(composition_parsed, function_body_parsed, helpers_parsed, input_color_representation_parsed, output_color_representation_parsed, inputs_parsed)
318        return Composition(result)

Composition Color Transformer Shader

Defines a custom shader that takes an input color and then transforms that color to an output color.

Args: function_body: Graph of String helpers: Graph of String input_color_representation: Graph of ColorRepresentation output_color_representation: Graph of ColorRepresentation inputs: Graph of Dictionary

Returns: Graph: A graph node producing a Composition.

def connected_component_boxes(self) -> Bounds2iList:
320    def connected_component_boxes(self) -> bounds2i_list.Bounds2iList:
321        """Composition Connected Component Boxes
322
323        Finds boxes with a r alpha channel value greater than 0.5 in the image. Recommended to use a binary image for this.
324
325        Returns:
326            Graph: A graph node producing a Bounds2iList.
327        """
328        composition_parsed = input_parsers.parse_graph(self)
329        result = _internal.composition_connected_component_boxes_internal(composition_parsed)
330        from .bounds2i_list import Bounds2iList
331        return Bounds2iList(result)

Composition Connected Component Boxes

Finds boxes with a r alpha channel value greater than 0.5 in the image. Recommended to use a binary image for this.

Returns: Graph: A graph node producing a Bounds2iList.

def contrast_adjustment(self, contrast) -> Composition:
333    def contrast_adjustment(self, contrast) -> Composition:
334        """Composition Contrast Adjustment
335
336        Adjusts the contrast of a Composition
337
338        Args:
339            contrast: Graph of Float
340
341        Returns:
342            Graph: A graph node producing a Composition.
343        """
344        composition_parsed = input_parsers.parse_graph(self)
345        contrast_parsed = input_parsers.parse_float_graph(contrast)
346        result = _internal.composition_contrast_adjustment_internal(composition_parsed, contrast_parsed)
347        return Composition(result)

Composition Contrast Adjustment

Adjusts the contrast of a Composition

Args: contrast: Graph of Float

Returns: Graph: A graph node producing a Composition.

def convolution( self, kernel, kernel_width, kernel_height) -> Composition:
349    def convolution(self, kernel, kernel_width, kernel_height) -> Composition:
350        """Composition Convolution
351
352        Performs a convolution on an composition
353
354        Args:
355            kernel: Graph of FloatList
356            kernel_width: Graph of Int
357            kernel_height: Graph of Int
358
359        Returns:
360            Graph: A graph node producing a Composition.
361        """
362        composition_parsed = input_parsers.parse_graph(self)
363        kernel_parsed = input_parsers.parse_graph(kernel)
364        kernel_width_parsed = input_parsers.parse_int_graph(kernel_width)
365        kernel_height_parsed = input_parsers.parse_int_graph(kernel_height)
366        result = _internal.composition_convolution_internal(composition_parsed, kernel_parsed, kernel_width_parsed, kernel_height_parsed)
367        return Composition(result)

Composition Convolution

Performs a convolution on an composition

Args: kernel: Graph of FloatList kernel_width: Graph of Int kernel_height: Graph of Int

Returns: Graph: A graph node producing a Composition.

def crop(self, rect) -> Composition:
369    def crop(self, rect) -> Composition:
370        """Composition Crop
371
372        Applies a crop to a Composition
373
374        Args:
375            rect: Graph of Bounds2f
376
377        Returns:
378            Graph: A graph node producing a Composition.
379        """
380        composition_parsed = input_parsers.parse_graph(self)
381        rect_parsed = input_parsers.parse_graph(rect)
382        result = _internal.composition_crop_internal(composition_parsed, rect_parsed)
383        return Composition(result)

Composition Crop

Applies a crop to a Composition

Args: rect: Graph of Bounds2f

Returns: Graph: A graph node producing a Composition.

def duotone(self, threshold, color_1, color_2) -> Composition:
385    def duotone(self, threshold, color_1, color_2) -> Composition:
386        """Composition Duotone
387
388        Creates a duotone effect. Colors below the threshold will be color 1, colors above will be color 2.
389
390        Args:
391            threshold: Graph of Float
392            color_1: Graph of ProfiledColor
393            color_2: Graph of ProfiledColor
394
395        Returns:
396            Graph: A graph node producing a Composition.
397        """
398        composition_parsed = input_parsers.parse_graph(self)
399        threshold_parsed = input_parsers.parse_float_graph(threshold)
400        color_1_parsed = input_parsers.parse_graph(color_1)
401        color_2_parsed = input_parsers.parse_graph(color_2)
402        result = _internal.composition_duotone_internal(composition_parsed, threshold_parsed, color_1_parsed, color_2_parsed)
403        return Composition(result)

Composition Duotone

Creates a duotone effect. Colors below the threshold will be color 1, colors above will be color 2.

Args: threshold: Graph of Float color_1: Graph of ProfiledColor color_2: Graph of ProfiledColor

Returns: Graph: A graph node producing a Composition.

def emboss(self, angle, distance, amount) -> Composition:
405    def emboss(self, angle, distance, amount) -> Composition:
406        """Composition Emboss
407
408        Applies an emboss effect, turning edges into a raised relief lit from the given angle. Flat areas become mid-gray; a negative amount debosses.
409
410        Args:
411            angle: Graph of Float
412            distance: Graph of Float
413            amount: Graph of Float
414
415        Returns:
416            Graph: A graph node producing a Composition.
417        """
418        composition_parsed = input_parsers.parse_graph(self)
419        angle_parsed = input_parsers.parse_float_graph(angle)
420        distance_parsed = input_parsers.parse_float_graph(distance)
421        amount_parsed = input_parsers.parse_float_graph(amount)
422        result = _internal.composition_emboss_internal(composition_parsed, angle_parsed, distance_parsed, amount_parsed)
423        return Composition(result)

Composition Emboss

Applies an emboss effect, turning edges into a raised relief lit from the given angle. Flat areas become mid-gray; a negative amount debosses.

Args: angle: Graph of Float distance: Graph of Float amount: Graph of Float

Returns: Graph: A graph node producing a Composition.

def exposure_adjust(self, steps) -> Composition:
425    def exposure_adjust(self, steps) -> Composition:
426        """Composition Exposure Adjust
427
428        Updates the exposure of your image. Internally, will multiply the linear version of RGB values by a value that equals 2^step.
429
430        Args:
431            steps: Graph of Float
432
433        Returns:
434            Graph: A graph node producing a Composition.
435        """
436        composition_parsed = input_parsers.parse_graph(self)
437        steps_parsed = input_parsers.parse_float_graph(steps)
438        result = _internal.composition_exposure_adjust_internal(composition_parsed, steps_parsed)
439        return Composition(result)

Composition Exposure Adjust

Updates the exposure of your image. Internally, will multiply the linear version of RGB values by a value that equals 2^step.

Args: steps: Graph of Float

Returns: Graph: A graph node producing a Composition.

def film_grain( self, grain_strength, fine_grain_frequency, fine_weight, medium_grain_frequency, medium_weight, high_grain_frequency, high_weight) -> Composition:
441    def film_grain(self, grain_strength, fine_grain_frequency, fine_weight, medium_grain_frequency, medium_weight, high_grain_frequency, high_weight) -> Composition:
442        """Composition Film Grain
443
444        adds multi-octave value-noise film grain in OkLabA - grain_strength controls the overall intensity, and the fine/medium/high frequency and weight pairs control the size and contribution of each grain octave.
445
446        Args:
447            grain_strength: Graph of Float
448            fine_grain_frequency: Graph of Float
449            fine_weight: Graph of Float
450            medium_grain_frequency: Graph of Float
451            medium_weight: Graph of Float
452            high_grain_frequency: Graph of Float
453            high_weight: Graph of Float
454
455        Returns:
456            Graph: A graph node producing a Composition.
457        """
458        composition_parsed = input_parsers.parse_graph(self)
459        grain_strength_parsed = input_parsers.parse_float_graph(grain_strength)
460        fine_grain_frequency_parsed = input_parsers.parse_float_graph(fine_grain_frequency)
461        fine_weight_parsed = input_parsers.parse_float_graph(fine_weight)
462        medium_grain_frequency_parsed = input_parsers.parse_float_graph(medium_grain_frequency)
463        medium_weight_parsed = input_parsers.parse_float_graph(medium_weight)
464        high_grain_frequency_parsed = input_parsers.parse_float_graph(high_grain_frequency)
465        high_weight_parsed = input_parsers.parse_float_graph(high_weight)
466        result = _internal.composition_film_grain_internal(composition_parsed, grain_strength_parsed, fine_grain_frequency_parsed, fine_weight_parsed, medium_grain_frequency_parsed, medium_weight_parsed, high_grain_frequency_parsed, high_weight_parsed)
467        return Composition(result)

Composition Film Grain

adds multi-octave value-noise film grain in OkLabA - grain_strength controls the overall intensity, and the fine/medium/high frequency and weight pairs control the size and contribution of each grain octave.

Args: grain_strength: Graph of Float fine_grain_frequency: Graph of Float fine_weight: Graph of Float medium_grain_frequency: Graph of Float medium_weight: Graph of Float high_grain_frequency: Graph of Float high_weight: Graph of Float

Returns: Graph: A graph node producing a Composition.

def fisheye(self, center, radius, strength) -> Composition:
469    def fisheye(self, center, radius, strength) -> Composition:
470        """Composition Fisheye
471
472        Applies a fisheye lens distortion to this composition, magnifying the center and compressing the edges
473
474        Args:
475            center: Graph of Vector2f
476            radius: Graph of Float
477            strength: Graph of Float
478
479        Returns:
480            Graph: A graph node producing a Composition.
481        """
482        composition_parsed = input_parsers.parse_graph(self)
483        center_parsed = input_parsers.parse_graph(center)
484        radius_parsed = input_parsers.parse_float_graph(radius)
485        strength_parsed = input_parsers.parse_float_graph(strength)
486        result = _internal.composition_fisheye_internal(composition_parsed, center_parsed, radius_parsed, strength_parsed)
487        return Composition(result)

Composition Fisheye

Applies a fisheye lens distortion to this composition, magnifying the center and compressing the edges

Args: center: Graph of Vector2f radius: Graph of Float strength: Graph of Float

Returns: Graph: A graph node producing a Composition.

def flip_horizontal(self) -> Composition:
489    def flip_horizontal(self) -> Composition:
490        """Composition Flip Horizontal
491
492        Flips the image along the horizontal axis
493
494        Returns:
495            Graph: A graph node producing a Composition.
496        """
497        composition_parsed = input_parsers.parse_graph(self)
498        result = _internal.composition_flip_horizontal_internal(composition_parsed)
499        return Composition(result)

Composition Flip Horizontal

Flips the image along the horizontal axis

Returns: Graph: A graph node producing a Composition.

def flip_vertical(self) -> Composition:
501    def flip_vertical(self) -> Composition:
502        """Composition Flip Vertical
503
504        Flips the image vertically
505
506        Returns:
507            Graph: A graph node producing a Composition.
508        """
509        composition_parsed = input_parsers.parse_graph(self)
510        result = _internal.composition_flip_vertical_internal(composition_parsed)
511        return Composition(result)

Composition Flip Vertical

Flips the image vertically

Returns: Graph: A graph node producing a Composition.

def foreground_cutout(self) -> Composition:
513    def foreground_cutout(self) -> Composition:
514        """Composition Foreground Cutout
515
516        Removes the background of a composition without a prompt, keeping the main subject on transparency. Edge colors are re-estimated so hair and fur don't carry the old background's color.
517
518        Returns:
519            Graph: A graph node producing a Composition.
520        """
521        composition_parsed = input_parsers.parse_graph(self)
522        result = _internal.composition_foreground_cutout_internal(composition_parsed)
523        return Composition(result)

Composition Foreground Cutout

Removes the background of a composition without a prompt, keeping the main subject on transparency. Edge colors are re-estimated so hair and fur don't carry the old background's color.

Returns: Graph: A graph node producing a Composition.

def foreground_mask(self) -> Composition:
525    def foreground_mask(self) -> Composition:
526        """Composition Foreground Mask
527
528        Finds the main subject of a composition without a prompt and returns its mask. The result is white with the subject's soft matte in alpha (1 = subject), the same convention as Composition Segment.
529
530        Returns:
531            Graph: A graph node producing a Composition.
532        """
533        composition_parsed = input_parsers.parse_graph(self)
534        result = _internal.composition_foreground_mask_internal(composition_parsed)
535        return Composition(result)

Composition Foreground Mask

Finds the main subject of a composition without a prompt and returns its mask. The result is white with the subject's soft matte in alpha (1 = subject), the same convention as Composition Segment.

Returns: Graph: A graph node producing a Composition.

@staticmethod
def freeform_shader( function_body, helpers, bounds, working_color_representation, inputs) -> Composition:
537    @staticmethod
538    def freeform_shader(function_body, helpers, bounds, working_color_representation, inputs) -> Composition:
539        """Composition Freeform Shader
540
541        Given a bounds and a shader, allows you to generate an image.
542
543        Args:
544            function_body: Graph of String
545            helpers: Graph of String
546            bounds: Graph of Bounds2f
547            working_color_representation: Graph of ColorRepresentation
548            inputs: Graph of Dictionary
549
550        Returns:
551            Graph: A graph node producing a Composition.
552        """
553        function_body_parsed = input_parsers.parse_string_graph(function_body)
554        helpers_parsed = input_parsers.parse_string_graph(helpers)
555        bounds_parsed = input_parsers.parse_graph(bounds)
556        working_color_representation_parsed = input_parsers.parse_graph(working_color_representation)
557        inputs_parsed = input_parsers.parse_graph(inputs)
558        result = _internal.composition_freeform_shader_internal(function_body_parsed, helpers_parsed, bounds_parsed, working_color_representation_parsed, inputs_parsed)
559        return Composition(result)

Composition Freeform Shader

Given a bounds and a shader, allows you to generate an image.

Args: function_body: Graph of String helpers: Graph of String bounds: Graph of Bounds2f working_color_representation: Graph of ColorRepresentation inputs: Graph of Dictionary

Returns: Graph: A graph node producing a Composition.

@staticmethod
def from_image(image) -> Composition:
561    @staticmethod
562    def from_image(image) -> Composition:
563        """Composition from Image
564
565        Creates an composition out of an image
566
567        Args:
568            image: Graph of Image
569
570        Returns:
571            Graph: A graph node producing a Composition.
572        """
573        image_parsed = input_parsers.parse_graph(image)
574        result = _internal.composition_from_image_internal(image_parsed)
575        return Composition(result)

Composition from Image

Creates an composition out of an image

Args: image: Graph of Image

Returns: Graph: A graph node producing a Composition.

@staticmethod
def from_path(path) -> Composition:
577    @staticmethod
578    def from_path(path) -> Composition:
579        """Composition from Path
580
581        Loads an image from a file path or URL, decodes its bytes, and creates a Composition from it.
582
583        Args:
584            path: Graph of String
585
586        Returns:
587            Graph: A graph node producing a Composition.
588        """
589        path_parsed = input_parsers.parse_string_graph(path)
590        result = _internal.composition_from_path_internal(path_parsed)
591        return Composition(result)

Composition from Path

Loads an image from a file path or URL, decodes its bytes, and creates a Composition from it.

Args: path: Graph of String

Returns: Graph: A graph node producing a Composition.

def gaussian_blur(self, sigma) -> Composition:
593    def gaussian_blur(self, sigma) -> Composition:
594        """Composition Gaussian Blur
595
596        Applies a gaussian blur to an image. Sigma controls the blur intensity.
597
598        Args:
599            sigma: Graph of Float
600
601        Returns:
602            Graph: A graph node producing a Composition.
603        """
604        composition_parsed = input_parsers.parse_graph(self)
605        sigma_parsed = input_parsers.parse_float_graph(sigma)
606        result = _internal.composition_gaussian_blur_internal(composition_parsed, sigma_parsed)
607        return Composition(result)

Composition Gaussian Blur

Applies a gaussian blur to an image. Sigma controls the blur intensity.

Args: sigma: Graph of Float

Returns: Graph: A graph node producing a Composition.

def grayscale(self) -> Composition:
609    def grayscale(self) -> Composition:
610        """Composition Grayscale
611
612        Applies grayscale to a Composition
613
614        Returns:
615            Graph: A graph node producing a Composition.
616        """
617        composition_parsed = input_parsers.parse_graph(self)
618        result = _internal.composition_grayscale_internal(composition_parsed)
619        return Composition(result)

Composition Grayscale

Applies grayscale to a Composition

Returns: Graph: A graph node producing a Composition.

def halftone( self, pixel_size, foreground_color, background_color) -> Composition:
621    def halftone(self, pixel_size, foreground_color, background_color) -> Composition:
622        """Composition Halftone
623
624        Applies a halftone effect to a composition, tiling it into cells and painting a foreground-colored dot in each cell whose radius grows as the cell darkens, over a background color.
625
626        Args:
627            pixel_size: Graph of Int
628            foreground_color: Graph of ProfiledColor
629            background_color: Graph of ProfiledColor
630
631        Returns:
632            Graph: A graph node producing a Composition.
633        """
634        composition_parsed = input_parsers.parse_graph(self)
635        pixel_size_parsed = input_parsers.parse_int_graph(pixel_size)
636        foreground_color_parsed = input_parsers.parse_graph(foreground_color)
637        background_color_parsed = input_parsers.parse_graph(background_color)
638        result = _internal.composition_halftone_internal(composition_parsed, pixel_size_parsed, foreground_color_parsed, background_color_parsed)
639        return Composition(result)

Composition Halftone

Applies a halftone effect to a composition, tiling it into cells and painting a foreground-colored dot in each cell whose radius grows as the cell darkens, over a background color.

Args: pixel_size: Graph of Int foreground_color: Graph of ProfiledColor background_color: Graph of ProfiledColor

Returns: Graph: A graph node producing a Composition.

def kaleidoscope( self, segments, rotation, warp, warp_frequency) -> Composition:
641    def kaleidoscope(self, segments, rotation, warp, warp_frequency) -> Composition:
642        """Composition Kaleidoscope
643
644        Applies a kaleidoscope effect, folding the image into mirrored wedges around the center. segments controls the number of wedges, rotation spins the pattern, and warp/warp_frequency add a radial glass-like distortion.
645
646        Args:
647            segments: Graph of Float
648            rotation: Graph of Float
649            warp: Graph of Float
650            warp_frequency: Graph of Float
651
652        Returns:
653            Graph: A graph node producing a Composition.
654        """
655        composition_parsed = input_parsers.parse_graph(self)
656        segments_parsed = input_parsers.parse_float_graph(segments)
657        rotation_parsed = input_parsers.parse_float_graph(rotation)
658        warp_parsed = input_parsers.parse_float_graph(warp)
659        warp_frequency_parsed = input_parsers.parse_float_graph(warp_frequency)
660        result = _internal.composition_kaleidoscope_internal(composition_parsed, segments_parsed, rotation_parsed, warp_parsed, warp_frequency_parsed)
661        return Composition(result)

Composition Kaleidoscope

Applies a kaleidoscope effect, folding the image into mirrored wedges around the center. segments controls the number of wedges, rotation spins the pattern, and warp/warp_frequency add a radial glass-like distortion.

Args: segments: Graph of Float rotation: Graph of Float warp: Graph of Float warp_frequency: Graph of Float

Returns: Graph: A graph node producing a Composition.

def l_curve(self, l_curve) -> Composition:
663    def l_curve(self, l_curve) -> Composition:
664        """Composition Lightness Curve
665
666        Applies a curve to the L component in an OkLab color. Adjusting the lightness of the image.
667
668        Args:
669            l_curve: Graph of Curve
670
671        Returns:
672            Graph: A graph node producing a Composition.
673        """
674        composition_parsed = input_parsers.parse_graph(self)
675        l_curve_parsed = input_parsers.parse_graph(l_curve)
676        result = _internal.composition_l_curve_internal(composition_parsed, l_curve_parsed)
677        return Composition(result)

Composition Lightness Curve

Applies a curve to the L component in an OkLab color. Adjusting the lightness of the image.

Args: l_curve: Graph of Curve

Returns: Graph: A graph node producing a Composition.

def lightness_threshold(self, threshold) -> Composition:
679    def lightness_threshold(self, threshold) -> Composition:
680        """Composition Lightness Threshold
681
682        Thresholds a Composition by OkLab lightness, producing an opaque white mask where lightness exceeds the threshold and transparent black elsewhere.
683
684        Args:
685            threshold: Graph of Float
686
687        Returns:
688            Graph: A graph node producing a Composition.
689        """
690        composition_parsed = input_parsers.parse_graph(self)
691        threshold_parsed = input_parsers.parse_float_graph(threshold)
692        result = _internal.composition_lightness_threshold_internal(composition_parsed, threshold_parsed)
693        return Composition(result)

Composition Lightness Threshold

Thresholds a Composition by OkLab lightness, producing an opaque white mask where lightness exceeds the threshold and transparent black elsewhere.

Args: threshold: Graph of Float

Returns: Graph: A graph node producing a Composition.

def linear_transform( self, entry_0_0, entry_0_1, entry_0_2, entry_0_3, entry_1_0, entry_1_1, entry_1_2, entry_1_3, entry_2_0, entry_2_1, entry_2_2, entry_2_3, entry_3_0, entry_3_1, entry_3_2, entry_3_3) -> Composition:
695    def linear_transform(self, entry_0_0, entry_0_1, entry_0_2, entry_0_3, entry_1_0, entry_1_1, entry_1_2, entry_1_3, entry_2_0, entry_2_1, entry_2_2, entry_2_3, entry_3_0, entry_3_1, entry_3_2, entry_3_3) -> Composition:
696        """Composition RGBA Linear Transform
697
698        Applies a linear transform to a Composition's RGBA values. Before application, will convert to a linear version of the color profile and will convert to an RGB profile if needed.
699
700        Args:
701            entry_0_0: Graph of Float
702            entry_0_1: Graph of Float
703            entry_0_2: Graph of Float
704            entry_0_3: Graph of Float
705            entry_1_0: Graph of Float
706            entry_1_1: Graph of Float
707            entry_1_2: Graph of Float
708            entry_1_3: Graph of Float
709            entry_2_0: Graph of Float
710            entry_2_1: Graph of Float
711            entry_2_2: Graph of Float
712            entry_2_3: Graph of Float
713            entry_3_0: Graph of Float
714            entry_3_1: Graph of Float
715            entry_3_2: Graph of Float
716            entry_3_3: Graph of Float
717
718        Returns:
719            Graph: A graph node producing a Composition.
720        """
721        composition_parsed = input_parsers.parse_graph(self)
722        entry_0_0_parsed = input_parsers.parse_float_graph(entry_0_0)
723        entry_0_1_parsed = input_parsers.parse_float_graph(entry_0_1)
724        entry_0_2_parsed = input_parsers.parse_float_graph(entry_0_2)
725        entry_0_3_parsed = input_parsers.parse_float_graph(entry_0_3)
726        entry_1_0_parsed = input_parsers.parse_float_graph(entry_1_0)
727        entry_1_1_parsed = input_parsers.parse_float_graph(entry_1_1)
728        entry_1_2_parsed = input_parsers.parse_float_graph(entry_1_2)
729        entry_1_3_parsed = input_parsers.parse_float_graph(entry_1_3)
730        entry_2_0_parsed = input_parsers.parse_float_graph(entry_2_0)
731        entry_2_1_parsed = input_parsers.parse_float_graph(entry_2_1)
732        entry_2_2_parsed = input_parsers.parse_float_graph(entry_2_2)
733        entry_2_3_parsed = input_parsers.parse_float_graph(entry_2_3)
734        entry_3_0_parsed = input_parsers.parse_float_graph(entry_3_0)
735        entry_3_1_parsed = input_parsers.parse_float_graph(entry_3_1)
736        entry_3_2_parsed = input_parsers.parse_float_graph(entry_3_2)
737        entry_3_3_parsed = input_parsers.parse_float_graph(entry_3_3)
738        result = _internal.composition_linear_transform_internal(composition_parsed, entry_0_0_parsed, entry_0_1_parsed, entry_0_2_parsed, entry_0_3_parsed, entry_1_0_parsed, entry_1_1_parsed, entry_1_2_parsed, entry_1_3_parsed, entry_2_0_parsed, entry_2_1_parsed, entry_2_2_parsed, entry_2_3_parsed, entry_3_0_parsed, entry_3_1_parsed, entry_3_2_parsed, entry_3_3_parsed)
739        return Composition(result)

Composition RGBA Linear Transform

Applies a linear transform to a Composition's RGBA values. Before application, will convert to a linear version of the color profile and will convert to an RGB profile if needed.

Args: entry_0_0: Graph of Float entry_0_1: Graph of Float entry_0_2: Graph of Float entry_0_3: Graph of Float entry_1_0: Graph of Float entry_1_1: Graph of Float entry_1_2: Graph of Float entry_1_3: Graph of Float entry_2_0: Graph of Float entry_2_1: Graph of Float entry_2_2: Graph of Float entry_2_3: Graph of Float entry_3_0: Graph of Float entry_3_1: Graph of Float entry_3_2: Graph of Float entry_3_3: Graph of Float

Returns: Graph: A graph node producing a Composition.

def liquify(self, amplitude, frequency) -> Composition:
741    def liquify(self, amplitude, frequency) -> Composition:
742        """Composition Liquify
743
744        Applies a sinusoidal liquify distortion to this composition, displacing pixels by a wave whose size is controlled by amplitude and whose density is controlled by frequency.
745
746        Args:
747            amplitude: Graph of Float
748            frequency: Graph of Float
749
750        Returns:
751            Graph: A graph node producing a Composition.
752        """
753        composition_parsed = input_parsers.parse_graph(self)
754        amplitude_parsed = input_parsers.parse_float_graph(amplitude)
755        frequency_parsed = input_parsers.parse_float_graph(frequency)
756        result = _internal.composition_liquify_internal(composition_parsed, amplitude_parsed, frequency_parsed)
757        return Composition(result)

Composition Liquify

Applies a sinusoidal liquify distortion to this composition, displacing pixels by a wave whose size is controlled by amplitude and whose density is controlled by frequency.

Args: amplitude: Graph of Float frequency: Graph of Float

Returns: Graph: A graph node producing a Composition.

def locate( self, prompt, positive_points, negative_points) -> Bounds2fList:
759    def locate(self, prompt, positive_points, negative_points) -> bounds2f_list.Bounds2fList:
760        """Composition Locate
761
762        Finds the location of a prompt within the image.
763
764        Args:
765            prompt: Graph of String
766            positive_points: Graph of Point2iList
767            negative_points: Graph of Point2iList
768
769        Returns:
770            Graph: A graph node producing a Bounds2fList.
771        """
772        composition_parsed = input_parsers.parse_graph(self)
773        prompt_parsed = input_parsers.parse_string_graph(prompt)
774        positive_points_parsed = input_parsers.parse_graph(positive_points)
775        negative_points_parsed = input_parsers.parse_graph(negative_points)
776        result = _internal.composition_locate_internal(composition_parsed, prompt_parsed, positive_points_parsed, negative_points_parsed)
777        from .bounds2f_list import Bounds2fList
778        return Bounds2fList(result)

Composition Locate

Finds the location of a prompt within the image.

Args: prompt: Graph of String positive_points: Graph of Point2iList negative_points: Graph of Point2iList

Returns: Graph: A graph node producing a Bounds2fList.

def max_color(self) -> ProfiledColor:
780    def max_color(self) -> profiled_color.ProfiledColor:
781        """Composition Max Color
782
783        Computes the maximum color in a composition. Works by finding the maximum L, a and b and alpha components of an OkLabA color.
784
785        Returns:
786            Graph: A graph node producing a ProfiledColor.
787        """
788        composition_parsed = input_parsers.parse_graph(self)
789        result = _internal.composition_max_color_internal(composition_parsed)
790        from .profiled_color import ProfiledColor
791        return ProfiledColor(result)

Composition Max Color

Computes the maximum color in a composition. Works by finding the maximum L, a and b and alpha components of an OkLabA color.

Returns: Graph: A graph node producing a ProfiledColor.

def median(self, kernel_size) -> Composition:
793    def median(self, kernel_size) -> Composition:
794        """Composition Median
795
796        Applies a per-channel median filter to a composition over a square window, reducing noise while preserving edges. kernel_size controls the window size (window width is 2*kernel_size-1).
797
798        Args:
799            kernel_size: Graph of Int
800
801        Returns:
802            Graph: A graph node producing a Composition.
803        """
804        composition_parsed = input_parsers.parse_graph(self)
805        kernel_size_parsed = input_parsers.parse_int_graph(kernel_size)
806        result = _internal.composition_median_internal(composition_parsed, kernel_size_parsed)
807        return Composition(result)

Composition Median

Applies a per-channel median filter to a composition over a square window, reducing noise while preserving edges. kernel_size controls the window size (window width is 2*kernel_size-1).

Args: kernel_size: Graph of Int

Returns: Graph: A graph node producing a Composition.

def min_color(self) -> ProfiledColor:
809    def min_color(self) -> profiled_color.ProfiledColor:
810        """Composition Min Color
811
812        Computes the minimum color in a composition. Works by finding the minimum L, a and b and alpha components of an OkLabA color.
813
814        Returns:
815            Graph: A graph node producing a ProfiledColor.
816        """
817        composition_parsed = input_parsers.parse_graph(self)
818        result = _internal.composition_min_color_internal(composition_parsed)
819        from .profiled_color import ProfiledColor
820        return ProfiledColor(result)

Composition Min Color

Computes the minimum color in a composition. Works by finding the minimum L, a and b and alpha components of an OkLabA color.

Returns: Graph: A graph node producing a ProfiledColor.

def min_max_colors(self) -> ProfiledColorList:
822    def min_max_colors(self) -> profiled_color_list.ProfiledColorList:
823        """Composition Min Max Colors
824
825        Computes the minimum and maximum colors in a composition. Works by finding the minimum and maximum L, a and b and alpha components of an OkLabA color.
826
827        Returns:
828            Graph: A graph node producing a ProfiledColorList.
829        """
830        composition_parsed = input_parsers.parse_graph(self)
831        result = _internal.composition_min_max_colors_internal(composition_parsed)
832        from .profiled_color_list import ProfiledColorList
833        return ProfiledColorList(result)

Composition Min Max Colors

Computes the minimum and maximum colors in a composition. Works by finding the minimum and maximum L, a and b and alpha components of an OkLabA color.

Returns: Graph: A graph node producing a ProfiledColorList.

@staticmethod
def monet_women_with_parasol() -> Composition:
835    @staticmethod
836    def monet_women_with_parasol() -> Composition:
837        """Monet's Women with a Parasol
838
839        Creates a composition from Monet's "Women with a Parasol" painting. Used frequently as a test asset.
840
841        Returns:
842            Graph: A graph node producing a Composition.
843        """
844        result = _internal.composition_monet_women_with_parasol_internal()
845        return Composition(result)

Monet's Women with a Parasol

Creates a composition from Monet's "Women with a Parasol" painting. Used frequently as a test asset.

Returns: Graph: A graph node producing a Composition.

def morphological_max(self, dimension) -> Composition:
847    def morphological_max(self, dimension) -> Composition:
848        """Composition Morphological Max
849
850        Apples a morphological max operation.
851
852        Args:
853            dimension: Graph of Int
854
855        Returns:
856            Graph: A graph node producing a Composition.
857        """
858        composition_parsed = input_parsers.parse_graph(self)
859        dimension_parsed = input_parsers.parse_int_graph(dimension)
860        result = _internal.composition_morphological_max_internal(composition_parsed, dimension_parsed)
861        return Composition(result)

Composition Morphological Max

Apples a morphological max operation.

Args: dimension: Graph of Int

Returns: Graph: A graph node producing a Composition.

def morphological_min(self, dimension) -> Composition:
863    def morphological_min(self, dimension) -> Composition:
864        """Composition Morphological Min
865
866        Apples a morphological min operation.
867
868        Args:
869            dimension: Graph of Int
870
871        Returns:
872            Graph: A graph node producing a Composition.
873        """
874        composition_parsed = input_parsers.parse_graph(self)
875        dimension_parsed = input_parsers.parse_int_graph(dimension)
876        result = _internal.composition_morphological_min_internal(composition_parsed, dimension_parsed)
877        return Composition(result)

Composition Morphological Min

Apples a morphological min operation.

Args: dimension: Graph of Int

Returns: Graph: A graph node producing a Composition.

def negative(self) -> Composition:
879    def negative(self) -> Composition:
880        """Composition Negative
881
882        Creates the effect of a negative image by subracting from each component of the image.
883
884        Returns:
885            Graph: A graph node producing a Composition.
886        """
887        composition_parsed = input_parsers.parse_graph(self)
888        result = _internal.composition_negative_internal(composition_parsed)
889        return Composition(result)

Composition Negative

Creates the effect of a negative image by subracting from each component of the image.

Returns: Graph: A graph node producing a Composition.

def nonlinear_rgb_blend_alpha(self, background) -> Composition:
891    def nonlinear_rgb_blend_alpha(self, background) -> Composition:
892        """Composition Nonlinear RGB Blend Alpha
893
894        A specialized version of CompositionBlendAlpha. Blends in a non-linear RGB.
895
896        Args:
897            background: Graph of Composition
898
899        Returns:
900            Graph: A graph node producing a Composition.
901        """
902        foreground_parsed = input_parsers.parse_graph(self)
903        background_parsed = input_parsers.parse_graph(background)
904        result = _internal.composition_nonlinear_r_g_b_blend_alpha_internal(foreground_parsed, background_parsed)
905        return Composition(result)

Composition Nonlinear RGB Blend Alpha

A specialized version of CompositionBlendAlpha. Blends in a non-linear RGB.

Args: background: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def opacity_scales(self, scale) -> Composition:
907    def opacity_scales(self, scale) -> Composition:
908        """Composition Opacity Scale
909
910        Changes the opacity of an image by multiplying it by a scalar.
911
912        Args:
913            scale: Graph of Float
914
915        Returns:
916            Graph: A graph node producing a Composition.
917        """
918        composition_parsed = input_parsers.parse_graph(self)
919        scale_parsed = input_parsers.parse_float_graph(scale)
920        result = _internal.composition_opacity_scale_internal(composition_parsed, scale_parsed)
921        return Composition(result)

Composition Opacity Scale

Changes the opacity of an image by multiplying it by a scalar.

Args: scale: Graph of Float

Returns: Graph: A graph node producing a Composition.

def opaque_bounds(self, alpha_threshold) -> Bounds2f:
923    def opaque_bounds(self, alpha_threshold) -> bounds2f.Bounds2f:
924        """Composition Opaque Bounds
925
926        Computes the bounding box of the pixels in a composition whose alpha is greater than the threshold. Unlike Composition Bounds, transparent regions are excluded.
927
928        Args:
929            alpha_threshold: Graph of Float
930
931        Returns:
932            Graph: A graph node producing a Bounds2f.
933        """
934        composition_parsed = input_parsers.parse_graph(self)
935        alpha_threshold_parsed = input_parsers.parse_float_graph(alpha_threshold)
936        result = _internal.composition_opaque_bounds_internal(composition_parsed, alpha_threshold_parsed)
937        from .bounds2f import Bounds2f
938        return Bounds2f(result)

Composition Opaque Bounds

Computes the bounding box of the pixels in a composition whose alpha is greater than the threshold. Unlike Composition Bounds, transparent regions are excluded.

Args: alpha_threshold: Graph of Float

Returns: Graph: A graph node producing a Bounds2f.

@staticmethod
def painter(painter) -> Composition:
940    @staticmethod
941    def painter(painter) -> Composition:
942        """Composition Painter
943
944        Creates a composition from a painter.
945
946        Args:
947            painter: Graph of Painter
948
949        Returns:
950            Graph: A graph node producing a Composition.
951        """
952        painter_parsed = input_parsers.parse_graph(painter)
953        result = _internal.composition_painter_internal(painter_parsed)
954        return Composition(result)

Composition Painter

Creates a composition from a painter.

Args: painter: Graph of Painter

Returns: Graph: A graph node producing a Composition.

def to_palette(self, size) -> ProfiledColorList:
956    def to_palette(self, size) -> profiled_color_list.ProfiledColorList:
957        """Composition Palette
958
959        Generates a palette of the most dominant colors of a composition.
960
961        Args:
962            size: Graph of Int
963
964        Returns:
965            Graph: A graph node producing a ProfiledColorList.
966        """
967        composition_parsed = input_parsers.parse_graph(self)
968        size_parsed = input_parsers.parse_int_graph(size)
969        result = _internal.composition_palette_internal(composition_parsed, size_parsed)
970        from .profiled_color_list import ProfiledColorList
971        return ProfiledColorList(result)

Composition Palette

Generates a palette of the most dominant colors of a composition.

Args: size: Graph of Int

Returns: Graph: A graph node producing a ProfiledColorList.

def palette_reduction(self, palette) -> Composition:
973    def palette_reduction(self, palette) -> Composition:
974        """Composition Palette Reduction
975
976        Reduces the number of colors in a composition to a specified palette.
977
978        Args:
979            palette: Graph of ProfiledColorList
980
981        Returns:
982            Graph: A graph node producing a Composition.
983        """
984        composition_parsed = input_parsers.parse_graph(self)
985        palette_parsed = input_parsers.parse_graph(palette)
986        result = _internal.composition_palette_reduction_internal(composition_parsed, palette_parsed)
987        return Composition(result)

Composition Palette Reduction

Reduces the number of colors in a composition to a specified palette.

Args: palette: Graph of ProfiledColorList

Returns: Graph: A graph node producing a Composition.

def pixelate(self, pixel_size) -> Composition:
 989    def pixelate(self, pixel_size) -> Composition:
 990        """Composition Pixelate
 991
 992        Applies a pixelation effect to a composition.
 993
 994        Args:
 995            pixel_size: Graph of Int
 996
 997        Returns:
 998            Graph: A graph node producing a Composition.
 999        """
1000        composition_parsed = input_parsers.parse_graph(self)
1001        pixel_size_parsed = input_parsers.parse_int_graph(pixel_size)
1002        result = _internal.composition_pixelate_internal(composition_parsed, pixel_size_parsed)
1003        return Composition(result)

Composition Pixelate

Applies a pixelation effect to a composition.

Args: pixel_size: Graph of Int

Returns: Graph: A graph node producing a Composition.

def point_effect_shader( self, function_body, helpers, effect_center_point, effect_radius, inputs, working_color_representation) -> Composition:
1005    def point_effect_shader(self, function_body, helpers, effect_center_point, effect_radius, inputs, working_color_representation) -> Composition:
1006        """Composition Point Effect Shader
1007
1008        Runs a custom shader over a circular region around an effect center point.
1009
1010        Args:
1011            function_body: Graph of String
1012            helpers: Graph of String
1013            effect_center_point: Graph of Point2f
1014            effect_radius: Graph of Float
1015            inputs: Graph of Dictionary
1016            working_color_representation: Graph of ColorRepresentation
1017
1018        Returns:
1019            Graph: A graph node producing a Composition.
1020        """
1021        composition_parsed = input_parsers.parse_graph(self)
1022        function_body_parsed = input_parsers.parse_string_graph(function_body)
1023        helpers_parsed = input_parsers.parse_string_graph(helpers)
1024        effect_center_point_parsed = input_parsers.parse_graph(effect_center_point)
1025        effect_radius_parsed = input_parsers.parse_float_graph(effect_radius)
1026        inputs_parsed = input_parsers.parse_graph(inputs)
1027        working_color_representation_parsed = input_parsers.parse_graph(working_color_representation)
1028        result = _internal.composition_point_effect_shader_internal(composition_parsed, function_body_parsed, helpers_parsed, effect_center_point_parsed, effect_radius_parsed, inputs_parsed, working_color_representation_parsed)
1029        return Composition(result)

Composition Point Effect Shader

Runs a custom shader over a circular region around an effect center point.

Args: function_body: Graph of String helpers: Graph of String effect_center_point: Graph of Point2f effect_radius: Graph of Float inputs: Graph of Dictionary working_color_representation: Graph of ColorRepresentation

Returns: Graph: A graph node producing a Composition.

def r_g_b_curve(self, r_curve, g_curve, b_curve) -> Composition:
1031    def r_g_b_curve(self, r_curve, g_curve, b_curve) -> Composition:
1032        """Composition RGB Curve
1033
1034        Applies a curve to the R, G, and B components
1035
1036        Args:
1037            r_curve: Graph of Curve
1038            g_curve: Graph of Curve
1039            b_curve: Graph of Curve
1040
1041        Returns:
1042            Graph: A graph node producing a Composition.
1043        """
1044        composition_parsed = input_parsers.parse_graph(self)
1045        r_curve_parsed = input_parsers.parse_graph(r_curve)
1046        g_curve_parsed = input_parsers.parse_graph(g_curve)
1047        b_curve_parsed = input_parsers.parse_graph(b_curve)
1048        result = _internal.composition_r_g_b_curve_internal(composition_parsed, r_curve_parsed, g_curve_parsed, b_curve_parsed)
1049        return Composition(result)

Composition RGB Curve

Applies a curve to the R, G, and B components

Args: r_curve: Graph of Curve g_curve: Graph of Curve b_curve: Graph of Curve

Returns: Graph: A graph node producing a Composition.

def render_to_image(self) -> Image:
1051    def render_to_image(self) -> image.Image:
1052        """Composition Render to Image
1053
1054        Renders a Composition to an Image
1055
1056        Returns:
1057            Graph: A graph node producing a Image.
1058        """
1059        composition_parsed = input_parsers.parse_graph(self)
1060        result = _internal.composition_render_to_image_internal(composition_parsed)
1061        from .image import Image
1062        return Image(result)

Composition Render to Image

Renders a Composition to an Image

Returns: Graph: A graph node producing a Image.

def rotate_180(self) -> Composition:
1064    def rotate_180(self) -> Composition:
1065        """Composition Rotate 180
1066
1067        Rotates the image 180 degrees
1068
1069        Returns:
1070            Graph: A graph node producing a Composition.
1071        """
1072        composition_parsed = input_parsers.parse_graph(self)
1073        result = _internal.composition_rotate180_internal(composition_parsed)
1074        return Composition(result)

Composition Rotate 180

Rotates the image 180 degrees

Returns: Graph: A graph node producing a Composition.

def rotate_90_clockwise(self) -> Composition:
1076    def rotate_90_clockwise(self) -> Composition:
1077        """Composition Rotate 90 Clockwise
1078
1079        Rotates the image 90 degrees clockwise
1080
1081        Returns:
1082            Graph: A graph node producing a Composition.
1083        """
1084        composition_parsed = input_parsers.parse_graph(self)
1085        result = _internal.composition_rotate90_clockwise_internal(composition_parsed)
1086        return Composition(result)

Composition Rotate 90 Clockwise

Rotates the image 90 degrees clockwise

Returns: Graph: A graph node producing a Composition.

def rotate_90_counter_clockwise(self) -> Composition:
1088    def rotate_90_counter_clockwise(self) -> Composition:
1089        """Composition Rotate 90 Counter Clockwise
1090
1091        Rotates the image 90 degrees counter-clockwise
1092
1093        Returns:
1094            Graph: A graph node producing a Composition.
1095        """
1096        composition_parsed = input_parsers.parse_graph(self)
1097        result = _internal.composition_rotate90_counter_clockwise_internal(composition_parsed)
1098        return Composition(result)

Composition Rotate 90 Counter Clockwise

Rotates the image 90 degrees counter-clockwise

Returns: Graph: A graph node producing a Composition.

def saturation_adjust(self, scale) -> Composition:
1100    def saturation_adjust(self, scale) -> Composition:
1101        """Composition Saturation Adjust
1102
1103        Adjusts the saturation of an image by a given factor. Internally, scales the chroma components in OkLab color space.
1104
1105        Args:
1106            scale: Graph of Float
1107
1108        Returns:
1109            Graph: A graph node producing a Composition.
1110        """
1111        composition_parsed = input_parsers.parse_graph(self)
1112        scale_parsed = input_parsers.parse_float_graph(scale)
1113        result = _internal.composition_saturation_adjust_internal(composition_parsed, scale_parsed)
1114        return Composition(result)

Composition Saturation Adjust

Adjusts the saturation of an image by a given factor. Internally, scales the chroma components in OkLab color space.

Args: scale: Graph of Float

Returns: Graph: A graph node producing a Composition.

def scanlines( self, size, beam_power, line_offset, intensity) -> Composition:
1116    def scanlines(self, size, beam_power, line_offset, intensity) -> Composition:
1117        """Composition Scanlines
1118
1119        Applies a CRT-style scanline effect, darkening the composition in horizontal bands whose spacing is set by size, sharpness by beam power, vertical phase by line offset, and overall strength by intensity.
1120
1121        Args:
1122            size: Graph of Float
1123            beam_power: Graph of Float
1124            line_offset: Graph of Float
1125            intensity: Graph of Float
1126
1127        Returns:
1128            Graph: A graph node producing a Composition.
1129        """
1130        composition_parsed = input_parsers.parse_graph(self)
1131        size_parsed = input_parsers.parse_float_graph(size)
1132        beam_power_parsed = input_parsers.parse_float_graph(beam_power)
1133        line_offset_parsed = input_parsers.parse_float_graph(line_offset)
1134        intensity_parsed = input_parsers.parse_float_graph(intensity)
1135        result = _internal.composition_scanlines_internal(composition_parsed, size_parsed, beam_power_parsed, line_offset_parsed, intensity_parsed)
1136        return Composition(result)

Composition Scanlines

Applies a CRT-style scanline effect, darkening the composition in horizontal bands whose spacing is set by size, sharpness by beam power, vertical phase by line offset, and overall strength by intensity.

Args: size: Graph of Float beam_power: Graph of Float line_offset: Graph of Float intensity: Graph of Float

Returns: Graph: A graph node producing a Composition.

def segment( self, prompt, positive_points, negative_points) -> Composition:
1138    def segment(self, prompt, positive_points, negative_points) -> Composition:
1139        """Composition Segment
1140
1141        Segments objects in a composition using SAM3. Accepts a text prompt and lists of positive/negative click points.
1142
1143        Args:
1144            prompt: Graph of String
1145            positive_points: Graph of Point2iList
1146            negative_points: Graph of Point2iList
1147
1148        Returns:
1149            Graph: A graph node producing a Composition.
1150        """
1151        composition_parsed = input_parsers.parse_graph(self)
1152        prompt_parsed = input_parsers.parse_string_graph(prompt)
1153        positive_points_parsed = input_parsers.parse_graph(positive_points)
1154        negative_points_parsed = input_parsers.parse_graph(negative_points)
1155        result = _internal.composition_segment_internal(composition_parsed, prompt_parsed, positive_points_parsed, negative_points_parsed)
1156        return Composition(result)

Composition Segment

Segments objects in a composition using SAM3. Accepts a text prompt and lists of positive/negative click points.

Args: prompt: Graph of String positive_points: Graph of Point2iList negative_points: Graph of Point2iList

Returns: Graph: A graph node producing a Composition.

def sharpen(self, radius, strength) -> Composition:
1158    def sharpen(self, radius, strength) -> Composition:
1159        """Composition Sharpen
1160
1161        Applies a sharpen filter to the composition.
1162
1163        Args:
1164            radius: Graph of Float
1165            strength: Graph of Float
1166
1167        Returns:
1168            Graph: A graph node producing a Composition.
1169        """
1170        composition_parsed = input_parsers.parse_graph(self)
1171        radius_parsed = input_parsers.parse_float_graph(radius)
1172        strength_parsed = input_parsers.parse_float_graph(strength)
1173        result = _internal.composition_sharpen_internal(composition_parsed, radius_parsed, strength_parsed)
1174        return Composition(result)

Composition Sharpen

Applies a sharpen filter to the composition.

Args: radius: Graph of Float strength: Graph of Float

Returns: Graph: A graph node producing a Composition.

def sobel_edge_detection(self) -> Composition:
1176    def sobel_edge_detection(self) -> Composition:
1177        """Composition Sobel Edge Detection
1178
1179        Applies Sobel edge detection to an image.
1180
1181        Returns:
1182            Graph: A graph node producing a Composition.
1183        """
1184        composition_parsed = input_parsers.parse_graph(self)
1185        result = _internal.composition_sobel_edge_detection_internal(composition_parsed)
1186        return Composition(result)

Composition Sobel Edge Detection

Applies Sobel edge detection to an image.

Returns: Graph: A graph node producing a Composition.

def spacial_effect_shader( self, function_body, helpers, max_displacement, inputs, working_color_representation) -> Composition:
1188    def spacial_effect_shader(self, function_body, helpers, max_displacement, inputs, working_color_representation) -> Composition:
1189        """Composition Spacial Effect Shader
1190
1191        Runs a custom shader over an input that can spatially displace pixels by up to a maximum displacement.
1192
1193        Args:
1194            function_body: Graph of String
1195            helpers: Graph of String
1196            max_displacement: Graph of Float
1197            inputs: Graph of Dictionary
1198            working_color_representation: Graph of ColorRepresentation
1199
1200        Returns:
1201            Graph: A graph node producing a Composition.
1202        """
1203        composition_parsed = input_parsers.parse_graph(self)
1204        function_body_parsed = input_parsers.parse_string_graph(function_body)
1205        helpers_parsed = input_parsers.parse_string_graph(helpers)
1206        max_displacement_parsed = input_parsers.parse_float_graph(max_displacement)
1207        inputs_parsed = input_parsers.parse_graph(inputs)
1208        working_color_representation_parsed = input_parsers.parse_graph(working_color_representation)
1209        result = _internal.composition_spacial_effect_shader_internal(composition_parsed, function_body_parsed, helpers_parsed, max_displacement_parsed, inputs_parsed, working_color_representation_parsed)
1210        return Composition(result)

Composition Spacial Effect Shader

Runs a custom shader over an input that can spatially displace pixels by up to a maximum displacement.

Args: function_body: Graph of String helpers: Graph of String max_displacement: Graph of Float inputs: Graph of Dictionary working_color_representation: Graph of ColorRepresentation

Returns: Graph: A graph node producing a Composition.

def swirl(self, center, radius, amount) -> Composition:
1212    def swirl(self, center, radius, amount) -> Composition:
1213        """Composition Swirl
1214
1215        Applies a swirl distortion to this composition
1216
1217        Args:
1218            center: Graph of Vector2f
1219            radius: Graph of Float
1220            amount: Graph of Float
1221
1222        Returns:
1223            Graph: A graph node producing a Composition.
1224        """
1225        composition_parsed = input_parsers.parse_graph(self)
1226        center_parsed = input_parsers.parse_graph(center)
1227        radius_parsed = input_parsers.parse_float_graph(radius)
1228        amount_parsed = input_parsers.parse_float_graph(amount)
1229        result = _internal.composition_swirl_internal(composition_parsed, center_parsed, radius_parsed, amount_parsed)
1230        return Composition(result)

Composition Swirl

Applies a swirl distortion to this composition

Args: center: Graph of Vector2f radius: Graph of Float amount: Graph of Float

Returns: Graph: A graph node producing a Composition.

def target_white_kelvin(self, kelvin) -> Composition:
1232    def target_white_kelvin(self, kelvin) -> Composition:
1233        """Composition Target White Kelvin
1234
1235        Sets the image white point to the value specified in Kelvin. The profile connection white point is D50, so you will only see changes as you move away from that.
1236
1237        Args:
1238            kelvin: Graph of Float
1239
1240        Returns:
1241            Graph: A graph node producing a Composition.
1242        """
1243        composition_parsed = input_parsers.parse_graph(self)
1244        kelvin_parsed = input_parsers.parse_float_graph(kelvin)
1245        result = _internal.composition_target_white_kelvin_internal(composition_parsed, kelvin_parsed)
1246        return Composition(result)

Composition Target White Kelvin

Sets the image white point to the value specified in Kelvin. The profile connection white point is D50, so you will only see changes as you move away from that.

Args: kelvin: Graph of Float

Returns: Graph: A graph node producing a Composition.

def to_ok_lab_hist(self) -> OkLabHist:
1248    def to_ok_lab_hist(self) -> ok_lab_hist.OkLabHist:
1249        """Composition to OkLab Histogram
1250
1251        Creates an OkLab Histogram from the colors in a Composition.
1252
1253        Returns:
1254            Graph: A graph node producing a OkLabHist.
1255        """
1256        composition_parsed = input_parsers.parse_graph(self)
1257        result = _internal.composition_to_ok_lab_hist_internal(composition_parsed)
1258        from .ok_lab_hist import OkLabHist
1259        return OkLabHist(result)

Composition to OkLab Histogram

Creates an OkLab Histogram from the colors in a Composition.

Returns: Graph: A graph node producing a OkLabHist.

def transform(self, transform) -> Composition:
1261    def transform(self, transform) -> Composition:
1262        """Composition Transform
1263
1264        Applies a 2D transform to a Composition.
1265
1266        Args:
1267            transform: Graph of Transform2
1268
1269        Returns:
1270            Graph: A graph node producing a Composition.
1271        """
1272        composition_parsed = input_parsers.parse_graph(self)
1273        transform_parsed = input_parsers.parse_graph(transform)
1274        result = _internal.composition_transform_internal(composition_parsed, transform_parsed)
1275        return Composition(result)

Composition Transform

Applies a 2D transform to a Composition.

Args: transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def vibrance_adjustment(self, strength) -> Composition:
1277    def vibrance_adjustment(self, strength) -> Composition:
1278        """Composition Vibrance Adjustment
1279
1280        Adjusts the vibrance of an image by a given strength. Internally, boosts chroma in OkLab color space adaptively, applying more boost to less saturated colors.
1281
1282        Args:
1283            strength: Graph of Float
1284
1285        Returns:
1286            Graph: A graph node producing a Composition.
1287        """
1288        composition_parsed = input_parsers.parse_graph(self)
1289        strength_parsed = input_parsers.parse_float_graph(strength)
1290        result = _internal.composition_vibrance_adjustment_internal(composition_parsed, strength_parsed)
1291        return Composition(result)

Composition Vibrance Adjustment

Adjusts the vibrance of an image by a given strength. Internally, boosts chroma in OkLab color space adaptively, applying more boost to less saturated colors.

Args: strength: Graph of Float

Returns: Graph: A graph node producing a Composition.

def vignette( self, center, radius_x, radius_y, softness, strength) -> Composition:
1293    def vignette(self, center, radius_x, radius_y, softness, strength) -> Composition:
1294        """Composition Vignette
1295
1296        darkens the area outside an ellipse - center is the bright spot in pixel coordinates, radius_x and radius_y are the ellipse semi-axes in pixels where the falloff starts, softness is the width of the fade-out band in pixels, and strength (0-1) defines how dark the edges become at maximum.
1297
1298        Args:
1299            center: Graph of Vector2f
1300            radius_x: Graph of Float
1301            radius_y: Graph of Float
1302            softness: Graph of Float
1303            strength: Graph of Float
1304
1305        Returns:
1306            Graph: A graph node producing a Composition.
1307        """
1308        composition_parsed = input_parsers.parse_graph(self)
1309        center_parsed = input_parsers.parse_graph(center)
1310        radius_x_parsed = input_parsers.parse_float_graph(radius_x)
1311        radius_y_parsed = input_parsers.parse_float_graph(radius_y)
1312        softness_parsed = input_parsers.parse_float_graph(softness)
1313        strength_parsed = input_parsers.parse_float_graph(strength)
1314        result = _internal.composition_vignette_internal(composition_parsed, center_parsed, radius_x_parsed, radius_y_parsed, softness_parsed, strength_parsed)
1315        return Composition(result)

Composition Vignette

darkens the area outside an ellipse - center is the bright spot in pixel coordinates, radius_x and radius_y are the ellipse semi-axes in pixels where the falloff starts, softness is the width of the fade-out band in pixels, and strength (0-1) defines how dark the edges become at maximum.

Args: center: Graph of Vector2f radius_x: Graph of Float radius_y: Graph of Float softness: Graph of Float strength: Graph of Float

Returns: Graph: A graph node producing a Composition.

def zoom_blur( self, center, strength, falloff, effect_radius) -> Composition:
1317    def zoom_blur(self, center, strength, falloff, effect_radius) -> Composition:
1318        """Composition Zoom Blur
1319
1320        Performs a zoom blur on this composition
1321
1322        Args:
1323            center: Graph of Vector2f
1324            strength: Graph of Float
1325            falloff: Graph of Float
1326            effect_radius: Graph of Float
1327
1328        Returns:
1329            Graph: A graph node producing a Composition.
1330        """
1331        composition_parsed = input_parsers.parse_graph(self)
1332        center_parsed = input_parsers.parse_graph(center)
1333        strength_parsed = input_parsers.parse_float_graph(strength)
1334        falloff_parsed = input_parsers.parse_float_graph(falloff)
1335        effect_radius_parsed = input_parsers.parse_float_graph(effect_radius)
1336        result = _internal.composition_zoom_blur_internal(composition_parsed, center_parsed, strength_parsed, falloff_parsed, effect_radius_parsed)
1337        return Composition(result)

Composition Zoom Blur

Performs a zoom blur on this composition

Args: center: Graph of Vector2f strength: Graph of Float falloff: Graph of Float effect_radius: Graph of Float

Returns: Graph: A graph node producing a Composition.

class Curve(brushcue.Object):
 17class Curve(Object):
 18    """A curve that represents a mathematical function in 2D that takes and input and maps to an output."""
 19
 20    def execute(self, context):
 21        return self._inner.execute(context)
 22
 23    def evaluate(self, input) -> float.Float:
 24        """Curve Evaluate
 25
 26        Evaluates a curve at a given input value.
 27
 28        Args:
 29            input: Graph of Float
 30
 31        Returns:
 32            Graph: A graph node producing a Float.
 33        """
 34        curve_parsed = input_parsers.parse_graph(self)
 35        input_parsed = input_parsers.parse_float_graph(input)
 36        result = _internal.curve_evaluate_internal(curve_parsed, input_parsed)
 37        from .float import Float
 38        return Float(result)
 39
 40    @staticmethod
 41    def gamma(gamma) -> Curve:
 42        """Curve Gamma
 43
 44        A gamma curve. The gamma parameter corresponding to y=x^gamma.
 45
 46        Args:
 47            gamma: Graph of Float
 48
 49        Returns:
 50            Graph: A graph node producing a Curve.
 51        """
 52        gamma_parsed = input_parsers.parse_float_graph(gamma)
 53        result = _internal.curve_gamma_internal(gamma_parsed)
 54        return Curve(result)
 55
 56    @staticmethod
 57    def identity() -> Curve:
 58        """Curve Identity
 59
 60        An identity curve, y=x
 61
 62        Returns:
 63            Graph: A graph node producing a Curve.
 64        """
 65        result = _internal.curve_identity_internal()
 66        return Curve(result)
 67
 68    @staticmethod
 69    def pivoted_sigmoid(pivot, slope) -> Curve:
 70        """Curve Pivoted Sigmoid
 71
 72        A pivoted sigmoid contrast curve that anchors at the pivot and smoothly compresses shadows and highlights, with a slope parameter controlling midtone contrast.
 73
 74        Args:
 75            pivot: Graph of Float
 76            slope: Graph of Float
 77
 78        Returns:
 79            Graph: A graph node producing a Curve.
 80        """
 81        pivot_parsed = input_parsers.parse_float_graph(pivot)
 82        slope_parsed = input_parsers.parse_float_graph(slope)
 83        result = _internal.curve_pivoted_sigmoid_internal(pivot_parsed, slope_parsed)
 84        return Curve(result)
 85
 86    @staticmethod
 87    def s_curve(pivot, slope, toe, shoulder) -> Curve:
 88        """Curve S
 89
 90        An S-curve remaps values by anchoring contrast at a chosen pivot, increasing or decreasing midtone separation via slope, gently flattening the curve near black with toe to compress or lift shadows, and softly flattening near white with shoulder to roll off highlights, while keeping black and white fixed.
 91
 92        Args:
 93            pivot: Graph of Float
 94            slope: Graph of Float
 95            toe: Graph of Float
 96            shoulder: Graph of Float
 97
 98        Returns:
 99            Graph: A graph node producing a Curve.
100        """
101        pivot_parsed = input_parsers.parse_float_graph(pivot)
102        slope_parsed = input_parsers.parse_float_graph(slope)
103        toe_parsed = input_parsers.parse_float_graph(toe)
104        shoulder_parsed = input_parsers.parse_float_graph(shoulder)
105        result = _internal.curve_s_curve_internal(pivot_parsed, slope_parsed, toe_parsed, shoulder_parsed)
106        return Curve(result)

A curve that represents a mathematical function in 2D that takes and input and maps to an output.

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context)
def evaluate(self, input) -> Float:
23    def evaluate(self, input) -> float.Float:
24        """Curve Evaluate
25
26        Evaluates a curve at a given input value.
27
28        Args:
29            input: Graph of Float
30
31        Returns:
32            Graph: A graph node producing a Float.
33        """
34        curve_parsed = input_parsers.parse_graph(self)
35        input_parsed = input_parsers.parse_float_graph(input)
36        result = _internal.curve_evaluate_internal(curve_parsed, input_parsed)
37        from .float import Float
38        return Float(result)

Curve Evaluate

Evaluates a curve at a given input value.

Args: input: Graph of Float

Returns: Graph: A graph node producing a Float.

@staticmethod
def gamma(gamma) -> Curve:
40    @staticmethod
41    def gamma(gamma) -> Curve:
42        """Curve Gamma
43
44        A gamma curve. The gamma parameter corresponding to y=x^gamma.
45
46        Args:
47            gamma: Graph of Float
48
49        Returns:
50            Graph: A graph node producing a Curve.
51        """
52        gamma_parsed = input_parsers.parse_float_graph(gamma)
53        result = _internal.curve_gamma_internal(gamma_parsed)
54        return Curve(result)

Curve Gamma

A gamma curve. The gamma parameter corresponding to y=x^gamma.

Args: gamma: Graph of Float

Returns: Graph: A graph node producing a Curve.

@staticmethod
def identity() -> Curve:
56    @staticmethod
57    def identity() -> Curve:
58        """Curve Identity
59
60        An identity curve, y=x
61
62        Returns:
63            Graph: A graph node producing a Curve.
64        """
65        result = _internal.curve_identity_internal()
66        return Curve(result)

Curve Identity

An identity curve, y=x

Returns: Graph: A graph node producing a Curve.

@staticmethod
def pivoted_sigmoid(pivot, slope) -> Curve:
68    @staticmethod
69    def pivoted_sigmoid(pivot, slope) -> Curve:
70        """Curve Pivoted Sigmoid
71
72        A pivoted sigmoid contrast curve that anchors at the pivot and smoothly compresses shadows and highlights, with a slope parameter controlling midtone contrast.
73
74        Args:
75            pivot: Graph of Float
76            slope: Graph of Float
77
78        Returns:
79            Graph: A graph node producing a Curve.
80        """
81        pivot_parsed = input_parsers.parse_float_graph(pivot)
82        slope_parsed = input_parsers.parse_float_graph(slope)
83        result = _internal.curve_pivoted_sigmoid_internal(pivot_parsed, slope_parsed)
84        return Curve(result)

Curve Pivoted Sigmoid

A pivoted sigmoid contrast curve that anchors at the pivot and smoothly compresses shadows and highlights, with a slope parameter controlling midtone contrast.

Args: pivot: Graph of Float slope: Graph of Float

Returns: Graph: A graph node producing a Curve.

@staticmethod
def s_curve(pivot, slope, toe, shoulder) -> Curve:
 86    @staticmethod
 87    def s_curve(pivot, slope, toe, shoulder) -> Curve:
 88        """Curve S
 89
 90        An S-curve remaps values by anchoring contrast at a chosen pivot, increasing or decreasing midtone separation via slope, gently flattening the curve near black with toe to compress or lift shadows, and softly flattening near white with shoulder to roll off highlights, while keeping black and white fixed.
 91
 92        Args:
 93            pivot: Graph of Float
 94            slope: Graph of Float
 95            toe: Graph of Float
 96            shoulder: Graph of Float
 97
 98        Returns:
 99            Graph: A graph node producing a Curve.
100        """
101        pivot_parsed = input_parsers.parse_float_graph(pivot)
102        slope_parsed = input_parsers.parse_float_graph(slope)
103        toe_parsed = input_parsers.parse_float_graph(toe)
104        shoulder_parsed = input_parsers.parse_float_graph(shoulder)
105        result = _internal.curve_s_curve_internal(pivot_parsed, slope_parsed, toe_parsed, shoulder_parsed)
106        return Curve(result)

Curve S

An S-curve remaps values by anchoring contrast at a chosen pivot, increasing or decreasing midtone separation via slope, gently flattening the curve near black with toe to compress or lift shadows, and softly flattening near white with shoulder to roll off highlights, while keeping black and white fixed.

Args: pivot: Graph of Float slope: Graph of Float toe: Graph of Float shoulder: Graph of Float

Returns: Graph: A graph node producing a Curve.

class Dictionary(brushcue.Object):
12class Dictionary(Object):
13    """A key value lookup between a name and a type in the graph"""
14
15    def execute(self, context):
16        return self._inner.execute(context)
17
18    def add(self, key, value) -> Dictionary:
19        """Dictionary Add
20
21        Adds a key-value pair to a dictionary
22
23        Args:
24            key: Graph of String
25            value: Graph of Any
26
27        Returns:
28            Graph: A graph node producing a Dictionary.
29        """
30        dictionary_parsed = input_parsers.parse_graph(self)
31        key_parsed = input_parsers.parse_string_graph(key)
32        value_parsed = input_parsers.parse_graph(value)
33        result = _internal.dictionary_add_internal(dictionary_parsed, key_parsed, value_parsed)
34        return Dictionary(result)
35
36    @staticmethod
37    def create() -> Dictionary:
38        """Dictionary Create
39
40        Creates a new dictionary
41
42        Returns:
43            Graph: A graph node producing a Dictionary.
44        """
45        result = _internal.dictionary_create_internal()
46        return Dictionary(result)

A key value lookup between a name and a type in the graph

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context)
def add(self, key, value) -> Dictionary:
18    def add(self, key, value) -> Dictionary:
19        """Dictionary Add
20
21        Adds a key-value pair to a dictionary
22
23        Args:
24            key: Graph of String
25            value: Graph of Any
26
27        Returns:
28            Graph: A graph node producing a Dictionary.
29        """
30        dictionary_parsed = input_parsers.parse_graph(self)
31        key_parsed = input_parsers.parse_string_graph(key)
32        value_parsed = input_parsers.parse_graph(value)
33        result = _internal.dictionary_add_internal(dictionary_parsed, key_parsed, value_parsed)
34        return Dictionary(result)

Dictionary Add

Adds a key-value pair to a dictionary

Args: key: Graph of String value: Graph of Any

Returns: Graph: A graph node producing a Dictionary.

@staticmethod
def create() -> Dictionary:
36    @staticmethod
37    def create() -> Dictionary:
38        """Dictionary Create
39
40        Creates a new dictionary
41
42        Returns:
43            Graph: A graph node producing a Dictionary.
44        """
45        result = _internal.dictionary_create_internal()
46        return Dictionary(result)

Dictionary Create

Creates a new dictionary

Returns: Graph: A graph node producing a Dictionary.

class Fill(brushcue.Object):
12class Fill(Object):
13    """The fill for when drawing in a 2d object."""
14
15    def execute(self, context):
16        return self._inner.execute(context)
17
18    @staticmethod
19    def custom(function_body, helpers, inputs) -> Fill:
20        """Fill Custom
21
22        Creates a fill with a custom shader.
23
24        Args:
25            function_body: Graph of String
26            helpers: Graph of String
27            inputs: Graph of Dictionary
28
29        Returns:
30            Graph: A graph node producing a Fill.
31        """
32        function_body_parsed = input_parsers.parse_string_graph(function_body)
33        helpers_parsed = input_parsers.parse_string_graph(helpers)
34        inputs_parsed = input_parsers.parse_graph(inputs)
35        result = _internal.fill_custom_internal(function_body_parsed, helpers_parsed, inputs_parsed)
36        return Fill(result)
37
38    @staticmethod
39    def solid(color) -> Fill:
40        """Fill Solid
41
42        Creates a fill with a solid color.
43
44        Args:
45            color: Graph of ProfiledColor
46
47        Returns:
48            Graph: A graph node producing a Fill.
49        """
50        color_parsed = input_parsers.parse_graph(color)
51        result = _internal.fill_solid_internal(color_parsed)
52        return Fill(result)

The fill for when drawing in a 2d object.

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context)
@staticmethod
def custom(function_body, helpers, inputs) -> Fill:
18    @staticmethod
19    def custom(function_body, helpers, inputs) -> Fill:
20        """Fill Custom
21
22        Creates a fill with a custom shader.
23
24        Args:
25            function_body: Graph of String
26            helpers: Graph of String
27            inputs: Graph of Dictionary
28
29        Returns:
30            Graph: A graph node producing a Fill.
31        """
32        function_body_parsed = input_parsers.parse_string_graph(function_body)
33        helpers_parsed = input_parsers.parse_string_graph(helpers)
34        inputs_parsed = input_parsers.parse_graph(inputs)
35        result = _internal.fill_custom_internal(function_body_parsed, helpers_parsed, inputs_parsed)
36        return Fill(result)

Fill Custom

Creates a fill with a custom shader.

Args: function_body: Graph of String helpers: Graph of String inputs: Graph of Dictionary

Returns: Graph: A graph node producing a Fill.

@staticmethod
def solid(color) -> Fill:
38    @staticmethod
39    def solid(color) -> Fill:
40        """Fill Solid
41
42        Creates a fill with a solid color.
43
44        Args:
45            color: Graph of ProfiledColor
46
47        Returns:
48            Graph: A graph node producing a Fill.
49        """
50        color_parsed = input_parsers.parse_graph(color)
51        result = _internal.fill_solid_internal(color_parsed)
52        return Fill(result)

Fill Solid

Creates a fill with a solid color.

Args: color: Graph of ProfiledColor

Returns: Graph: A graph node producing a Fill.

class Float(brushcue.Object):
 19class Float(Object):
 20    """A float"""
 21
 22    def execute(self, context):
 23        return self._inner.execute(context).as_float()
 24
 25    if TYPE_CHECKING:
 26        # Implemented at runtime via monkeypatching in `_operators.py`; declared
 27        # here only so static type checkers recognize these operators.
 28        def __add__(self, other: Float | builtins.float | builtins.int) -> Float: ...
 29        def __radd__(self, other: Float | builtins.float | builtins.int) -> Float: ...
 30        def __sub__(self, other: Float | builtins.float | builtins.int) -> Float: ...
 31        def __rsub__(self, other: Float | builtins.float | builtins.int) -> Float: ...
 32        def __mul__(self, other: Float | builtins.float | builtins.int) -> Float: ...
 33        def __rmul__(self, other: Float | builtins.float | builtins.int) -> Float: ...
 34        def __truediv__(self, other: Float | builtins.float | builtins.int) -> Float: ...
 35        def __rtruediv__(self, other: Float | builtins.float | builtins.int) -> Float: ...
 36        def __gt__(self, other: Float | builtins.float | builtins.int) -> bool.Bool: ...
 37        def __ge__(self, other: Float | builtins.float | builtins.int) -> bool.Bool: ...
 38        def __lt__(self, other: Float | builtins.float | builtins.int) -> bool.Bool: ...
 39        def __le__(self, other: Float | builtins.float | builtins.int) -> bool.Bool: ...
 40        def __eq__(self, other: builtins.object) -> bool.Bool: ...  # type: ignore[override]
 41
 42    def abs(self) -> Float:
 43        """Absolute Value
 44
 45        Returns the absolute value of a float
 46
 47        Returns:
 48            Graph: A graph node producing a Float.
 49        """
 50        number_parsed = input_parsers.parse_float_graph(self)
 51        result = _internal.abs_internal(number_parsed)
 52        return Float(result)
 53
 54    def add(self, float2) -> Float:
 55        """Float Add
 56
 57        Adds two floats together.
 58
 59        Args:
 60            float2: Graph of Float
 61
 62        Returns:
 63            Graph: A graph node producing a Float.
 64        """
 65        float1_parsed = input_parsers.parse_float_graph(self)
 66        float2_parsed = input_parsers.parse_float_graph(float2)
 67        result = _internal.float_add_internal(float1_parsed, float2_parsed)
 68        return Float(result)
 69
 70    def cos(self) -> Float:
 71        """Float Cosine
 72
 73        Computes the cosine of a float (in radians).
 74
 75        Returns:
 76            Graph: A graph node producing a Float.
 77        """
 78        angle_parsed = input_parsers.parse_float_graph(self)
 79        result = _internal.float_cos_internal(angle_parsed)
 80        return Float(result)
 81
 82    def divide(self, float2) -> Float:
 83        """Float Divide
 84
 85        Adds two floats together.
 86
 87        Args:
 88            float2: Graph of Float
 89
 90        Returns:
 91            Graph: A graph node producing a Float.
 92        """
 93        float1_parsed = input_parsers.parse_float_graph(self)
 94        float2_parsed = input_parsers.parse_float_graph(float2)
 95        result = _internal.float_divide_internal(float1_parsed, float2_parsed)
 96        return Float(result)
 97
 98    def equals(self, float_2) -> bool.Bool:
 99        """Float Equals
100
101        Checks if two floats are equal
102
103        Args:
104            float_2: Graph of Float
105
106        Returns:
107            Graph: A graph node producing a Bool.
108        """
109        float_1_parsed = input_parsers.parse_float_graph(self)
110        float_2_parsed = input_parsers.parse_float_graph(float_2)
111        result = _internal.float_equals_internal(float_1_parsed, float_2_parsed)
112        from .bool import Bool
113        return Bool(result)
114
115    def greater_than(self, float_2) -> bool.Bool:
116        """Float Greater Than
117
118        Checks if the first float is greater than the second float
119
120        Args:
121            float_2: Graph of Float
122
123        Returns:
124            Graph: A graph node producing a Bool.
125        """
126        float_1_parsed = input_parsers.parse_float_graph(self)
127        float_2_parsed = input_parsers.parse_float_graph(float_2)
128        result = _internal.float_greater_than_internal(float_1_parsed, float_2_parsed)
129        from .bool import Bool
130        return Bool(result)
131
132    def greater_than_or_equal(self, float_2) -> bool.Bool:
133        """Float Greater Than Or Equal
134
135        Checks if the first float is greater than or equal to the second float
136
137        Args:
138            float_2: Graph of Float
139
140        Returns:
141            Graph: A graph node producing a Bool.
142        """
143        float_1_parsed = input_parsers.parse_float_graph(self)
144        float_2_parsed = input_parsers.parse_float_graph(float_2)
145        result = _internal.float_greater_than_or_equal_internal(float_1_parsed, float_2_parsed)
146        from .bool import Bool
147        return Bool(result)
148
149    def lerp(self, float1, float2) -> Float:
150        """Float Lerp
151
152        Lerps between two floats using the x parameter
153
154        Args:
155            float1: Graph of Float
156            float2: Graph of Float
157
158        Returns:
159            Graph: A graph node producing a Float.
160        """
161        x_parsed = input_parsers.parse_float_graph(self)
162        float1_parsed = input_parsers.parse_float_graph(float1)
163        float2_parsed = input_parsers.parse_float_graph(float2)
164        result = _internal.float_lerp_internal(x_parsed, float1_parsed, float2_parsed)
165        return Float(result)
166
167    def less_than(self, float_2) -> bool.Bool:
168        """Float Less Than
169
170        Checks if the first float is less than the second float
171
172        Args:
173            float_2: Graph of Float
174
175        Returns:
176            Graph: A graph node producing a Bool.
177        """
178        float_1_parsed = input_parsers.parse_float_graph(self)
179        float_2_parsed = input_parsers.parse_float_graph(float_2)
180        result = _internal.float_less_than_internal(float_1_parsed, float_2_parsed)
181        from .bool import Bool
182        return Bool(result)
183
184    def less_than_or_equal(self, float_2) -> bool.Bool:
185        """Float Less Than Or Equal
186
187        Checks if the first float is less than or equal to the second float
188
189        Args:
190            float_2: Graph of Float
191
192        Returns:
193            Graph: A graph node producing a Bool.
194        """
195        float_1_parsed = input_parsers.parse_float_graph(self)
196        float_2_parsed = input_parsers.parse_float_graph(float_2)
197        result = _internal.float_less_than_or_equal_internal(float_1_parsed, float_2_parsed)
198        from .bool import Bool
199        return Bool(result)
200
201    def max(self, float2) -> Float:
202        """Float Max
203
204        Returns the maximum float.
205
206        Args:
207            float2: Graph of Float
208
209        Returns:
210            Graph: A graph node producing a Float.
211        """
212        float1_parsed = input_parsers.parse_float_graph(self)
213        float2_parsed = input_parsers.parse_float_graph(float2)
214        result = _internal.float_max_internal(float1_parsed, float2_parsed)
215        return Float(result)
216
217    def min(self, float2) -> Float:
218        """Float Min
219
220        Returns the minimum float.
221
222        Args:
223            float2: Graph of Float
224
225        Returns:
226            Graph: A graph node producing a Float.
227        """
228        float1_parsed = input_parsers.parse_float_graph(self)
229        float2_parsed = input_parsers.parse_float_graph(float2)
230        result = _internal.float_min_internal(float1_parsed, float2_parsed)
231        return Float(result)
232
233    def modulo(self, float2) -> Float:
234        """Float Modulo
235
236        Returns the euclidean remainder of float 1 divided by float 2. The result is never negative for a positive divisor.
237
238        Args:
239            float2: Graph of Float
240
241        Returns:
242            Graph: A graph node producing a Float.
243        """
244        float1_parsed = input_parsers.parse_float_graph(self)
245        float2_parsed = input_parsers.parse_float_graph(float2)
246        result = _internal.float_modulo_internal(float1_parsed, float2_parsed)
247        return Float(result)
248
249    def multiply(self, float2) -> Float:
250        """Float Multiply
251
252        Multiplies two floats together.
253
254        Args:
255            float2: Graph of Float
256
257        Returns:
258            Graph: A graph node producing a Float.
259        """
260        float1_parsed = input_parsers.parse_float_graph(self)
261        float2_parsed = input_parsers.parse_float_graph(float2)
262        result = _internal.float_multiply_internal(float1_parsed, float2_parsed)
263        return Float(result)
264
265    def pow(self, float2) -> Float:
266        """Float Power
267
268        Raises float 1 to the power of float 2
269
270        Args:
271            float2: Graph of Float
272
273        Returns:
274            Graph: A graph node producing a Float.
275        """
276        float1_parsed = input_parsers.parse_float_graph(self)
277        float2_parsed = input_parsers.parse_float_graph(float2)
278        result = _internal.float_pow_internal(float1_parsed, float2_parsed)
279        return Float(result)
280
281    def round_to_int(self) -> int.Int:
282        """Float Round to Int
283
284        Rounds the float to the nearest int
285
286        Returns:
287            Graph: A graph node producing a Int.
288        """
289        float_parsed = input_parsers.parse_float_graph(self)
290        result = _internal.float_round_to_int_internal(float_parsed)
291        from .int import Int
292        return Int(result)
293
294    def sin(self) -> Float:
295        """Float Sine
296
297        Computes the sine of a float (in radians).
298
299        Returns:
300            Graph: A graph node producing a Float.
301        """
302        angle_parsed = input_parsers.parse_float_graph(self)
303        result = _internal.float_sin_internal(angle_parsed)
304        return Float(result)
305
306    def square_root(self) -> Float:
307        """Float Square Root
308
309        Compares the square root of a number
310
311        Returns:
312            Graph: A graph node producing a Float.
313        """
314        number_parsed = input_parsers.parse_float_graph(self)
315        result = _internal.float_square_root_internal(number_parsed)
316        return Float(result)
317
318    def squared(self) -> Float:
319        """Float Squared
320
321        Raises a float to the power of 2.
322
323        Returns:
324            Graph: A graph node producing a Float.
325        """
326        number_parsed = input_parsers.parse_float_graph(self)
327        result = _internal.float_squared_internal(number_parsed)
328        return Float(result)
329
330    def subtract(self, float2) -> Float:
331        """Float Subtract
332
333        Adds two floats together.
334
335        Args:
336            float2: Graph of Float
337
338        Returns:
339            Graph: A graph node producing a Float.
340        """
341        float1_parsed = input_parsers.parse_float_graph(self)
342        float2_parsed = input_parsers.parse_float_graph(float2)
343        result = _internal.float_subtract_internal(float1_parsed, float2_parsed)
344        return Float(result)
345
346    @staticmethod
347    def pi() -> Float:
348        """Pi
349
350        Returns π as a float
351
352        Returns:
353            Graph: A graph node producing a Float.
354        """
355        result = _internal.pi_internal()
356        return Float(result)

A float

def execute(self, context):
22    def execute(self, context):
23        return self._inner.execute(context).as_float()
def abs(self) -> Float:
42    def abs(self) -> Float:
43        """Absolute Value
44
45        Returns the absolute value of a float
46
47        Returns:
48            Graph: A graph node producing a Float.
49        """
50        number_parsed = input_parsers.parse_float_graph(self)
51        result = _internal.abs_internal(number_parsed)
52        return Float(result)

Absolute Value

Returns the absolute value of a float

Returns: Graph: A graph node producing a Float.

def add(self, float2) -> Float:
54    def add(self, float2) -> Float:
55        """Float Add
56
57        Adds two floats together.
58
59        Args:
60            float2: Graph of Float
61
62        Returns:
63            Graph: A graph node producing a Float.
64        """
65        float1_parsed = input_parsers.parse_float_graph(self)
66        float2_parsed = input_parsers.parse_float_graph(float2)
67        result = _internal.float_add_internal(float1_parsed, float2_parsed)
68        return Float(result)

Float Add

Adds two floats together.

Args: float2: Graph of Float

Returns: Graph: A graph node producing a Float.

def cos(self) -> Float:
70    def cos(self) -> Float:
71        """Float Cosine
72
73        Computes the cosine of a float (in radians).
74
75        Returns:
76            Graph: A graph node producing a Float.
77        """
78        angle_parsed = input_parsers.parse_float_graph(self)
79        result = _internal.float_cos_internal(angle_parsed)
80        return Float(result)

Float Cosine

Computes the cosine of a float (in radians).

Returns: Graph: A graph node producing a Float.

def divide(self, float2) -> Float:
82    def divide(self, float2) -> Float:
83        """Float Divide
84
85        Adds two floats together.
86
87        Args:
88            float2: Graph of Float
89
90        Returns:
91            Graph: A graph node producing a Float.
92        """
93        float1_parsed = input_parsers.parse_float_graph(self)
94        float2_parsed = input_parsers.parse_float_graph(float2)
95        result = _internal.float_divide_internal(float1_parsed, float2_parsed)
96        return Float(result)

Float Divide

Adds two floats together.

Args: float2: Graph of Float

Returns: Graph: A graph node producing a Float.

def equals(self, float_2) -> Bool:
 98    def equals(self, float_2) -> bool.Bool:
 99        """Float Equals
100
101        Checks if two floats are equal
102
103        Args:
104            float_2: Graph of Float
105
106        Returns:
107            Graph: A graph node producing a Bool.
108        """
109        float_1_parsed = input_parsers.parse_float_graph(self)
110        float_2_parsed = input_parsers.parse_float_graph(float_2)
111        result = _internal.float_equals_internal(float_1_parsed, float_2_parsed)
112        from .bool import Bool
113        return Bool(result)

Float Equals

Checks if two floats are equal

Args: float_2: Graph of Float

Returns: Graph: A graph node producing a Bool.

def greater_than(self, float_2) -> Bool:
115    def greater_than(self, float_2) -> bool.Bool:
116        """Float Greater Than
117
118        Checks if the first float is greater than the second float
119
120        Args:
121            float_2: Graph of Float
122
123        Returns:
124            Graph: A graph node producing a Bool.
125        """
126        float_1_parsed = input_parsers.parse_float_graph(self)
127        float_2_parsed = input_parsers.parse_float_graph(float_2)
128        result = _internal.float_greater_than_internal(float_1_parsed, float_2_parsed)
129        from .bool import Bool
130        return Bool(result)

Float Greater Than

Checks if the first float is greater than the second float

Args: float_2: Graph of Float

Returns: Graph: A graph node producing a Bool.

def greater_than_or_equal(self, float_2) -> Bool:
132    def greater_than_or_equal(self, float_2) -> bool.Bool:
133        """Float Greater Than Or Equal
134
135        Checks if the first float is greater than or equal to the second float
136
137        Args:
138            float_2: Graph of Float
139
140        Returns:
141            Graph: A graph node producing a Bool.
142        """
143        float_1_parsed = input_parsers.parse_float_graph(self)
144        float_2_parsed = input_parsers.parse_float_graph(float_2)
145        result = _internal.float_greater_than_or_equal_internal(float_1_parsed, float_2_parsed)
146        from .bool import Bool
147        return Bool(result)

Float Greater Than Or Equal

Checks if the first float is greater than or equal to the second float

Args: float_2: Graph of Float

Returns: Graph: A graph node producing a Bool.

def lerp(self, float1, float2) -> Float:
149    def lerp(self, float1, float2) -> Float:
150        """Float Lerp
151
152        Lerps between two floats using the x parameter
153
154        Args:
155            float1: Graph of Float
156            float2: Graph of Float
157
158        Returns:
159            Graph: A graph node producing a Float.
160        """
161        x_parsed = input_parsers.parse_float_graph(self)
162        float1_parsed = input_parsers.parse_float_graph(float1)
163        float2_parsed = input_parsers.parse_float_graph(float2)
164        result = _internal.float_lerp_internal(x_parsed, float1_parsed, float2_parsed)
165        return Float(result)

Float Lerp

Lerps between two floats using the x parameter

Args: float1: Graph of Float float2: Graph of Float

Returns: Graph: A graph node producing a Float.

def less_than(self, float_2) -> Bool:
167    def less_than(self, float_2) -> bool.Bool:
168        """Float Less Than
169
170        Checks if the first float is less than the second float
171
172        Args:
173            float_2: Graph of Float
174
175        Returns:
176            Graph: A graph node producing a Bool.
177        """
178        float_1_parsed = input_parsers.parse_float_graph(self)
179        float_2_parsed = input_parsers.parse_float_graph(float_2)
180        result = _internal.float_less_than_internal(float_1_parsed, float_2_parsed)
181        from .bool import Bool
182        return Bool(result)

Float Less Than

Checks if the first float is less than the second float

Args: float_2: Graph of Float

Returns: Graph: A graph node producing a Bool.

def less_than_or_equal(self, float_2) -> Bool:
184    def less_than_or_equal(self, float_2) -> bool.Bool:
185        """Float Less Than Or Equal
186
187        Checks if the first float is less than or equal to the second float
188
189        Args:
190            float_2: Graph of Float
191
192        Returns:
193            Graph: A graph node producing a Bool.
194        """
195        float_1_parsed = input_parsers.parse_float_graph(self)
196        float_2_parsed = input_parsers.parse_float_graph(float_2)
197        result = _internal.float_less_than_or_equal_internal(float_1_parsed, float_2_parsed)
198        from .bool import Bool
199        return Bool(result)

Float Less Than Or Equal

Checks if the first float is less than or equal to the second float

Args: float_2: Graph of Float

Returns: Graph: A graph node producing a Bool.

def max(self, float2) -> Float:
201    def max(self, float2) -> Float:
202        """Float Max
203
204        Returns the maximum float.
205
206        Args:
207            float2: Graph of Float
208
209        Returns:
210            Graph: A graph node producing a Float.
211        """
212        float1_parsed = input_parsers.parse_float_graph(self)
213        float2_parsed = input_parsers.parse_float_graph(float2)
214        result = _internal.float_max_internal(float1_parsed, float2_parsed)
215        return Float(result)

Float Max

Returns the maximum float.

Args: float2: Graph of Float

Returns: Graph: A graph node producing a Float.

def min(self, float2) -> Float:
217    def min(self, float2) -> Float:
218        """Float Min
219
220        Returns the minimum float.
221
222        Args:
223            float2: Graph of Float
224
225        Returns:
226            Graph: A graph node producing a Float.
227        """
228        float1_parsed = input_parsers.parse_float_graph(self)
229        float2_parsed = input_parsers.parse_float_graph(float2)
230        result = _internal.float_min_internal(float1_parsed, float2_parsed)
231        return Float(result)

Float Min

Returns the minimum float.

Args: float2: Graph of Float

Returns: Graph: A graph node producing a Float.

def modulo(self, float2) -> Float:
233    def modulo(self, float2) -> Float:
234        """Float Modulo
235
236        Returns the euclidean remainder of float 1 divided by float 2. The result is never negative for a positive divisor.
237
238        Args:
239            float2: Graph of Float
240
241        Returns:
242            Graph: A graph node producing a Float.
243        """
244        float1_parsed = input_parsers.parse_float_graph(self)
245        float2_parsed = input_parsers.parse_float_graph(float2)
246        result = _internal.float_modulo_internal(float1_parsed, float2_parsed)
247        return Float(result)

Float Modulo

Returns the euclidean remainder of float 1 divided by float 2. The result is never negative for a positive divisor.

Args: float2: Graph of Float

Returns: Graph: A graph node producing a Float.

def multiply(self, float2) -> Float:
249    def multiply(self, float2) -> Float:
250        """Float Multiply
251
252        Multiplies two floats together.
253
254        Args:
255            float2: Graph of Float
256
257        Returns:
258            Graph: A graph node producing a Float.
259        """
260        float1_parsed = input_parsers.parse_float_graph(self)
261        float2_parsed = input_parsers.parse_float_graph(float2)
262        result = _internal.float_multiply_internal(float1_parsed, float2_parsed)
263        return Float(result)

Float Multiply

Multiplies two floats together.

Args: float2: Graph of Float

Returns: Graph: A graph node producing a Float.

def pow(self, float2) -> Float:
265    def pow(self, float2) -> Float:
266        """Float Power
267
268        Raises float 1 to the power of float 2
269
270        Args:
271            float2: Graph of Float
272
273        Returns:
274            Graph: A graph node producing a Float.
275        """
276        float1_parsed = input_parsers.parse_float_graph(self)
277        float2_parsed = input_parsers.parse_float_graph(float2)
278        result = _internal.float_pow_internal(float1_parsed, float2_parsed)
279        return Float(result)

Float Power

Raises float 1 to the power of float 2

Args: float2: Graph of Float

Returns: Graph: A graph node producing a Float.

def round_to_int(self) -> Int:
281    def round_to_int(self) -> int.Int:
282        """Float Round to Int
283
284        Rounds the float to the nearest int
285
286        Returns:
287            Graph: A graph node producing a Int.
288        """
289        float_parsed = input_parsers.parse_float_graph(self)
290        result = _internal.float_round_to_int_internal(float_parsed)
291        from .int import Int
292        return Int(result)

Float Round to Int

Rounds the float to the nearest int

Returns: Graph: A graph node producing a Int.

def sin(self) -> Float:
294    def sin(self) -> Float:
295        """Float Sine
296
297        Computes the sine of a float (in radians).
298
299        Returns:
300            Graph: A graph node producing a Float.
301        """
302        angle_parsed = input_parsers.parse_float_graph(self)
303        result = _internal.float_sin_internal(angle_parsed)
304        return Float(result)

Float Sine

Computes the sine of a float (in radians).

Returns: Graph: A graph node producing a Float.

def square_root(self) -> Float:
306    def square_root(self) -> Float:
307        """Float Square Root
308
309        Compares the square root of a number
310
311        Returns:
312            Graph: A graph node producing a Float.
313        """
314        number_parsed = input_parsers.parse_float_graph(self)
315        result = _internal.float_square_root_internal(number_parsed)
316        return Float(result)

Float Square Root

Compares the square root of a number

Returns: Graph: A graph node producing a Float.

def squared(self) -> Float:
318    def squared(self) -> Float:
319        """Float Squared
320
321        Raises a float to the power of 2.
322
323        Returns:
324            Graph: A graph node producing a Float.
325        """
326        number_parsed = input_parsers.parse_float_graph(self)
327        result = _internal.float_squared_internal(number_parsed)
328        return Float(result)

Float Squared

Raises a float to the power of 2.

Returns: Graph: A graph node producing a Float.

def subtract(self, float2) -> Float:
330    def subtract(self, float2) -> Float:
331        """Float Subtract
332
333        Adds two floats together.
334
335        Args:
336            float2: Graph of Float
337
338        Returns:
339            Graph: A graph node producing a Float.
340        """
341        float1_parsed = input_parsers.parse_float_graph(self)
342        float2_parsed = input_parsers.parse_float_graph(float2)
343        result = _internal.float_subtract_internal(float1_parsed, float2_parsed)
344        return Float(result)

Float Subtract

Adds two floats together.

Args: float2: Graph of Float

Returns: Graph: A graph node producing a Float.

@staticmethod
def pi() -> Float:
346    @staticmethod
347    def pi() -> Float:
348        """Pi
349
350        Returns π as a float
351
352        Returns:
353            Graph: A graph node producing a Float.
354        """
355        result = _internal.pi_internal()
356        return Float(result)

Pi

Returns π as a float

Returns: Graph: A graph node producing a Float.

class FloatList(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
11class FloatList(List):
12    """List of Floats"""
13
14    def __init__(self, inner, resolved_type=None):
15        from .float import Float
16        super().__init__(inner, Float if resolved_type is None else resolved_type)
17
18    def execute(self, context):
19        return self._inner.execute(context).as_float_list()

List of Floats

FloatList(inner, resolved_type=None)
14    def __init__(self, inner, resolved_type=None):
15        from .float import Float
16        super().__init__(inner, Float if resolved_type is None else resolved_type)
class Font(brushcue.Object):
12class Font(Object):
13    """a font"""
14
15    def execute(self, context):
16        return self._inner.execute(context)
17
18    @staticmethod
19    def from_path(path) -> Font:
20        """Font from Path
21
22        Loads a font file from a file path or URL, and parses it into a Font.
23
24        Args:
25            path: Graph of String
26
27        Returns:
28            Graph: A graph node producing a Font.
29        """
30        path_parsed = input_parsers.parse_string_graph(path)
31        result = _internal.font_from_path_internal(path_parsed)
32        return Font(result)

a font

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context)
@staticmethod
def from_path(path) -> Font:
18    @staticmethod
19    def from_path(path) -> Font:
20        """Font from Path
21
22        Loads a font file from a file path or URL, and parses it into a Font.
23
24        Args:
25            path: Graph of String
26
27        Returns:
28            Graph: A graph node producing a Font.
29        """
30        path_parsed = input_parsers.parse_string_graph(path)
31        result = _internal.font_from_path_internal(path_parsed)
32        return Font(result)

Font from Path

Loads a font file from a file path or URL, and parses it into a Font.

Args: path: Graph of String

Returns: Graph: A graph node producing a Font.

class Image(brushcue.Object):
17class Image(Object):
18    """An Image"""
19
20    def execute(self, context):
21        return self._inner.execute(context)
22
23    @staticmethod
24    def from_bytes(bytes) -> Image:
25        """Image from Bytes
26
27        Given some bytes, parses an image
28
29        Args:
30            bytes: Graph of Bytes
31
32        Returns:
33            Graph: A graph node producing a Image.
34        """
35        bytes_parsed = input_parsers.parse_graph(bytes)
36        result = _internal.image_from_bytes_internal(bytes_parsed)
37        return Image(result)
38
39    def to_bytes(self) -> bytes.Bytes:
40        """Image to Bytes
41
42        Given an image, converts it to bytes
43
44        Returns:
45            Graph: A graph node producing a Bytes.
46        """
47        image_parsed = input_parsers.parse_graph(self)
48        result = _internal.image_to_bytes_internal(image_parsed)
49        from .bytes import Bytes
50        return Bytes(result)

An Image

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context)
@staticmethod
def from_bytes(bytes) -> Image:
23    @staticmethod
24    def from_bytes(bytes) -> Image:
25        """Image from Bytes
26
27        Given some bytes, parses an image
28
29        Args:
30            bytes: Graph of Bytes
31
32        Returns:
33            Graph: A graph node producing a Image.
34        """
35        bytes_parsed = input_parsers.parse_graph(bytes)
36        result = _internal.image_from_bytes_internal(bytes_parsed)
37        return Image(result)

Image from Bytes

Given some bytes, parses an image

Args: bytes: Graph of Bytes

Returns: Graph: A graph node producing a Image.

def to_bytes(self) -> Bytes:
39    def to_bytes(self) -> bytes.Bytes:
40        """Image to Bytes
41
42        Given an image, converts it to bytes
43
44        Returns:
45            Graph: A graph node producing a Bytes.
46        """
47        image_parsed = input_parsers.parse_graph(self)
48        result = _internal.image_to_bytes_internal(image_parsed)
49        from .bytes import Bytes
50        return Bytes(result)

Image to Bytes

Given an image, converts it to bytes

Returns: Graph: A graph node producing a Bytes.

class Int(brushcue.Object):
 20class Int(Object):
 21    """An integer"""
 22
 23    def execute(self, context):
 24        return self._inner.execute(context).as_int()
 25
 26    if TYPE_CHECKING:
 27        # Implemented at runtime via monkeypatching in `_operators.py`; declared
 28        # here only so static type checkers recognize these operators.
 29        def __add__(self, other: Int | builtins.int) -> Int: ...
 30        def __radd__(self, other: Int | builtins.int) -> Int: ...
 31        def __sub__(self, other: Int | builtins.int) -> Int: ...
 32        def __rsub__(self, other: Int | builtins.int) -> Int: ...
 33        def __mul__(self, other: Int | builtins.int) -> Int: ...
 34        def __rmul__(self, other: Int | builtins.int) -> Int: ...
 35        def __gt__(self, other: Int | builtins.int) -> bool.Bool: ...
 36        def __ge__(self, other: Int | builtins.int) -> bool.Bool: ...
 37        def __lt__(self, other: Int | builtins.int) -> bool.Bool: ...
 38        def __le__(self, other: Int | builtins.int) -> bool.Bool: ...
 39        def __eq__(self, other: builtins.object) -> bool.Bool: ...  # type: ignore[override]
 40
 41    def abs(self) -> Int:
 42        """Int Absolute Value
 43
 44        Returns the absolute value of an int
 45
 46        Returns:
 47            Graph: A graph node producing a Int.
 48        """
 49        number_parsed = input_parsers.parse_int_graph(self)
 50        result = _internal.int_abs_internal(number_parsed)
 51        return Int(result)
 52
 53    def add(self, int_2) -> Int:
 54        """Int Add
 55
 56        Adds to ints together
 57
 58        Args:
 59            int_2: Graph of Int
 60
 61        Returns:
 62            Graph: A graph node producing a Int.
 63        """
 64        int_1_parsed = input_parsers.parse_int_graph(self)
 65        int_2_parsed = input_parsers.parse_int_graph(int_2)
 66        result = _internal.int_add_internal(int_1_parsed, int_2_parsed)
 67        return Int(result)
 68
 69    def equals(self, int_2) -> bool.Bool:
 70        """Int Equals
 71
 72        Checks if two ints are equal
 73
 74        Args:
 75            int_2: Graph of Int
 76
 77        Returns:
 78            Graph: A graph node producing a Bool.
 79        """
 80        int_1_parsed = input_parsers.parse_int_graph(self)
 81        int_2_parsed = input_parsers.parse_int_graph(int_2)
 82        result = _internal.int_equals_internal(int_1_parsed, int_2_parsed)
 83        from .bool import Bool
 84        return Bool(result)
 85
 86    def greater_than(self, int_2) -> bool.Bool:
 87        """Int Greater Than
 88
 89        Checks if the first int is greater than the second int
 90
 91        Args:
 92            int_2: Graph of Int
 93
 94        Returns:
 95            Graph: A graph node producing a Bool.
 96        """
 97        int_1_parsed = input_parsers.parse_int_graph(self)
 98        int_2_parsed = input_parsers.parse_int_graph(int_2)
 99        result = _internal.int_greater_than_internal(int_1_parsed, int_2_parsed)
100        from .bool import Bool
101        return Bool(result)
102
103    def greater_than_or_equal(self, int_2) -> bool.Bool:
104        """Int Greater Than Or Equal
105
106        Checks if the first int is greater than or equal to the second int
107
108        Args:
109            int_2: Graph of Int
110
111        Returns:
112            Graph: A graph node producing a Bool.
113        """
114        int_1_parsed = input_parsers.parse_int_graph(self)
115        int_2_parsed = input_parsers.parse_int_graph(int_2)
116        result = _internal.int_greater_than_or_equal_internal(int_1_parsed, int_2_parsed)
117        from .bool import Bool
118        return Bool(result)
119
120    def less_than(self, int_2) -> bool.Bool:
121        """Int Less Than
122
123        Checks if the first int is less than the second int
124
125        Args:
126            int_2: Graph of Int
127
128        Returns:
129            Graph: A graph node producing a Bool.
130        """
131        int_1_parsed = input_parsers.parse_int_graph(self)
132        int_2_parsed = input_parsers.parse_int_graph(int_2)
133        result = _internal.int_less_than_internal(int_1_parsed, int_2_parsed)
134        from .bool import Bool
135        return Bool(result)
136
137    def less_than_or_equal(self, int_2) -> bool.Bool:
138        """Int Less Than Or Equal
139
140        Checks if the first int is less than or equal to the second int
141
142        Args:
143            int_2: Graph of Int
144
145        Returns:
146            Graph: A graph node producing a Bool.
147        """
148        int_1_parsed = input_parsers.parse_int_graph(self)
149        int_2_parsed = input_parsers.parse_int_graph(int_2)
150        result = _internal.int_less_than_or_equal_internal(int_1_parsed, int_2_parsed)
151        from .bool import Bool
152        return Bool(result)
153
154    def max(self, int2) -> Int:
155        """Int Max
156
157        Returns the maximum int.
158
159        Args:
160            int2: Graph of Int
161
162        Returns:
163            Graph: A graph node producing a Int.
164        """
165        int1_parsed = input_parsers.parse_int_graph(self)
166        int2_parsed = input_parsers.parse_int_graph(int2)
167        result = _internal.int_max_internal(int1_parsed, int2_parsed)
168        return Int(result)
169
170    def min(self, int2) -> Int:
171        """Int Min
172
173        Returns the minimum int.
174
175        Args:
176            int2: Graph of Int
177
178        Returns:
179            Graph: A graph node producing a Int.
180        """
181        int1_parsed = input_parsers.parse_int_graph(self)
182        int2_parsed = input_parsers.parse_int_graph(int2)
183        result = _internal.int_min_internal(int1_parsed, int2_parsed)
184        return Int(result)
185
186    def multiply(self, int_2) -> Int:
187        """Int Multiply
188
189        Multiplies two integers together
190
191        Args:
192            int_2: Graph of Int
193
194        Returns:
195            Graph: A graph node producing a Int.
196        """
197        int_1_parsed = input_parsers.parse_int_graph(self)
198        int_2_parsed = input_parsers.parse_int_graph(int_2)
199        result = _internal.int_multiply_internal(int_1_parsed, int_2_parsed)
200        return Int(result)
201
202    def range(self, max) -> int_list.IntList:
203        """Int Range
204
205        Generates a list from the minimum to the maximum inclusive
206
207        Args:
208            max: Graph of Int
209
210        Returns:
211            Graph: A graph node producing a IntList.
212        """
213        min_parsed = input_parsers.parse_int_graph(self)
214        max_parsed = input_parsers.parse_int_graph(max)
215        result = _internal.int_range_internal(min_parsed, max_parsed)
216        from .int_list import IntList
217        return IntList(result)
218
219    def subtract(self, int_2) -> Int:
220        """Int Subtract
221
222        Subtracts one int from another
223
224        Args:
225            int_2: Graph of Int
226
227        Returns:
228            Graph: A graph node producing a Int.
229        """
230        int_1_parsed = input_parsers.parse_int_graph(self)
231        int_2_parsed = input_parsers.parse_int_graph(int_2)
232        result = _internal.int_subtract_internal(int_1_parsed, int_2_parsed)
233        return Int(result)
234
235    def to_float(self) -> float.Float:
236        """Int To Float
237
238        Converts an Int to a Float
239
240        Returns:
241            Graph: A graph node producing a Float.
242        """
243        int_parsed = input_parsers.parse_int_graph(self)
244        result = _internal.int_to_float_internal(int_parsed)
245        from .float import Float
246        return Float(result)

An integer

def execute(self, context):
23    def execute(self, context):
24        return self._inner.execute(context).as_int()
def abs(self) -> Int:
41    def abs(self) -> Int:
42        """Int Absolute Value
43
44        Returns the absolute value of an int
45
46        Returns:
47            Graph: A graph node producing a Int.
48        """
49        number_parsed = input_parsers.parse_int_graph(self)
50        result = _internal.int_abs_internal(number_parsed)
51        return Int(result)

Int Absolute Value

Returns the absolute value of an int

Returns: Graph: A graph node producing a Int.

def add(self, int_2) -> Int:
53    def add(self, int_2) -> Int:
54        """Int Add
55
56        Adds to ints together
57
58        Args:
59            int_2: Graph of Int
60
61        Returns:
62            Graph: A graph node producing a Int.
63        """
64        int_1_parsed = input_parsers.parse_int_graph(self)
65        int_2_parsed = input_parsers.parse_int_graph(int_2)
66        result = _internal.int_add_internal(int_1_parsed, int_2_parsed)
67        return Int(result)

Int Add

Adds to ints together

Args: int_2: Graph of Int

Returns: Graph: A graph node producing a Int.

def equals(self, int_2) -> Bool:
69    def equals(self, int_2) -> bool.Bool:
70        """Int Equals
71
72        Checks if two ints are equal
73
74        Args:
75            int_2: Graph of Int
76
77        Returns:
78            Graph: A graph node producing a Bool.
79        """
80        int_1_parsed = input_parsers.parse_int_graph(self)
81        int_2_parsed = input_parsers.parse_int_graph(int_2)
82        result = _internal.int_equals_internal(int_1_parsed, int_2_parsed)
83        from .bool import Bool
84        return Bool(result)

Int Equals

Checks if two ints are equal

Args: int_2: Graph of Int

Returns: Graph: A graph node producing a Bool.

def greater_than(self, int_2) -> Bool:
 86    def greater_than(self, int_2) -> bool.Bool:
 87        """Int Greater Than
 88
 89        Checks if the first int is greater than the second int
 90
 91        Args:
 92            int_2: Graph of Int
 93
 94        Returns:
 95            Graph: A graph node producing a Bool.
 96        """
 97        int_1_parsed = input_parsers.parse_int_graph(self)
 98        int_2_parsed = input_parsers.parse_int_graph(int_2)
 99        result = _internal.int_greater_than_internal(int_1_parsed, int_2_parsed)
100        from .bool import Bool
101        return Bool(result)

Int Greater Than

Checks if the first int is greater than the second int

Args: int_2: Graph of Int

Returns: Graph: A graph node producing a Bool.

def greater_than_or_equal(self, int_2) -> Bool:
103    def greater_than_or_equal(self, int_2) -> bool.Bool:
104        """Int Greater Than Or Equal
105
106        Checks if the first int is greater than or equal to the second int
107
108        Args:
109            int_2: Graph of Int
110
111        Returns:
112            Graph: A graph node producing a Bool.
113        """
114        int_1_parsed = input_parsers.parse_int_graph(self)
115        int_2_parsed = input_parsers.parse_int_graph(int_2)
116        result = _internal.int_greater_than_or_equal_internal(int_1_parsed, int_2_parsed)
117        from .bool import Bool
118        return Bool(result)

Int Greater Than Or Equal

Checks if the first int is greater than or equal to the second int

Args: int_2: Graph of Int

Returns: Graph: A graph node producing a Bool.

def less_than(self, int_2) -> Bool:
120    def less_than(self, int_2) -> bool.Bool:
121        """Int Less Than
122
123        Checks if the first int is less than the second int
124
125        Args:
126            int_2: Graph of Int
127
128        Returns:
129            Graph: A graph node producing a Bool.
130        """
131        int_1_parsed = input_parsers.parse_int_graph(self)
132        int_2_parsed = input_parsers.parse_int_graph(int_2)
133        result = _internal.int_less_than_internal(int_1_parsed, int_2_parsed)
134        from .bool import Bool
135        return Bool(result)

Int Less Than

Checks if the first int is less than the second int

Args: int_2: Graph of Int

Returns: Graph: A graph node producing a Bool.

def less_than_or_equal(self, int_2) -> Bool:
137    def less_than_or_equal(self, int_2) -> bool.Bool:
138        """Int Less Than Or Equal
139
140        Checks if the first int is less than or equal to the second int
141
142        Args:
143            int_2: Graph of Int
144
145        Returns:
146            Graph: A graph node producing a Bool.
147        """
148        int_1_parsed = input_parsers.parse_int_graph(self)
149        int_2_parsed = input_parsers.parse_int_graph(int_2)
150        result = _internal.int_less_than_or_equal_internal(int_1_parsed, int_2_parsed)
151        from .bool import Bool
152        return Bool(result)

Int Less Than Or Equal

Checks if the first int is less than or equal to the second int

Args: int_2: Graph of Int

Returns: Graph: A graph node producing a Bool.

def max(self, int2) -> Int:
154    def max(self, int2) -> Int:
155        """Int Max
156
157        Returns the maximum int.
158
159        Args:
160            int2: Graph of Int
161
162        Returns:
163            Graph: A graph node producing a Int.
164        """
165        int1_parsed = input_parsers.parse_int_graph(self)
166        int2_parsed = input_parsers.parse_int_graph(int2)
167        result = _internal.int_max_internal(int1_parsed, int2_parsed)
168        return Int(result)

Int Max

Returns the maximum int.

Args: int2: Graph of Int

Returns: Graph: A graph node producing a Int.

def min(self, int2) -> Int:
170    def min(self, int2) -> Int:
171        """Int Min
172
173        Returns the minimum int.
174
175        Args:
176            int2: Graph of Int
177
178        Returns:
179            Graph: A graph node producing a Int.
180        """
181        int1_parsed = input_parsers.parse_int_graph(self)
182        int2_parsed = input_parsers.parse_int_graph(int2)
183        result = _internal.int_min_internal(int1_parsed, int2_parsed)
184        return Int(result)

Int Min

Returns the minimum int.

Args: int2: Graph of Int

Returns: Graph: A graph node producing a Int.

def multiply(self, int_2) -> Int:
186    def multiply(self, int_2) -> Int:
187        """Int Multiply
188
189        Multiplies two integers together
190
191        Args:
192            int_2: Graph of Int
193
194        Returns:
195            Graph: A graph node producing a Int.
196        """
197        int_1_parsed = input_parsers.parse_int_graph(self)
198        int_2_parsed = input_parsers.parse_int_graph(int_2)
199        result = _internal.int_multiply_internal(int_1_parsed, int_2_parsed)
200        return Int(result)

Int Multiply

Multiplies two integers together

Args: int_2: Graph of Int

Returns: Graph: A graph node producing a Int.

def range(self, max) -> IntList:
202    def range(self, max) -> int_list.IntList:
203        """Int Range
204
205        Generates a list from the minimum to the maximum inclusive
206
207        Args:
208            max: Graph of Int
209
210        Returns:
211            Graph: A graph node producing a IntList.
212        """
213        min_parsed = input_parsers.parse_int_graph(self)
214        max_parsed = input_parsers.parse_int_graph(max)
215        result = _internal.int_range_internal(min_parsed, max_parsed)
216        from .int_list import IntList
217        return IntList(result)

Int Range

Generates a list from the minimum to the maximum inclusive

Args: max: Graph of Int

Returns: Graph: A graph node producing a IntList.

def subtract(self, int_2) -> Int:
219    def subtract(self, int_2) -> Int:
220        """Int Subtract
221
222        Subtracts one int from another
223
224        Args:
225            int_2: Graph of Int
226
227        Returns:
228            Graph: A graph node producing a Int.
229        """
230        int_1_parsed = input_parsers.parse_int_graph(self)
231        int_2_parsed = input_parsers.parse_int_graph(int_2)
232        result = _internal.int_subtract_internal(int_1_parsed, int_2_parsed)
233        return Int(result)

Int Subtract

Subtracts one int from another

Args: int_2: Graph of Int

Returns: Graph: A graph node producing a Int.

def to_float(self) -> Float:
235    def to_float(self) -> float.Float:
236        """Int To Float
237
238        Converts an Int to a Float
239
240        Returns:
241            Graph: A graph node producing a Float.
242        """
243        int_parsed = input_parsers.parse_int_graph(self)
244        result = _internal.int_to_float_internal(int_parsed)
245        from .float import Float
246        return Float(result)

Int To Float

Converts an Int to a Float

Returns: Graph: A graph node producing a Float.

class IntList(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
11class IntList(List):
12    """List of Ints"""
13
14    def __init__(self, inner, resolved_type=None):
15        from .int import Int
16        super().__init__(inner, Int if resolved_type is None else resolved_type)
17
18    def execute(self, context):
19        return self._inner.execute(context).as_int_list()

List of Ints

IntList(inner, resolved_type=None)
14    def __init__(self, inner, resolved_type=None):
15        from .int import Int
16        super().__init__(inner, Int if resolved_type is None else resolved_type)
class LMSA(brushcue.Object):
17class LMSA(Object):
18    """An LMS color with an alpha component."""
19
20    def execute(self, context):
21        return self._inner.execute(context).as_lmsa_color()
22
23    def alpha(self) -> float.Float:
24        """LMS Color Alpha
25
26        Gets the alpha component of an LMS color with alpha.
27
28        Returns:
29            Graph: A graph node producing a Float.
30        """
31        lmsa_parsed = input_parsers.parse_graph(self)
32        result = _internal.l_m_s_a_alpha_internal(lmsa_parsed)
33        from .float import Float
34        return Float(result)
35
36    def l(self) -> float.Float:
37        """LMS Color L
38
39        Gets the L component of an LMS color with alpha.
40
41        Returns:
42            Graph: A graph node producing a Float.
43        """
44        lmsa_parsed = input_parsers.parse_graph(self)
45        result = _internal.l_m_s_a_l_internal(lmsa_parsed)
46        from .float import Float
47        return Float(result)
48
49    def m(self) -> float.Float:
50        """LMS Color M
51
52        Gets the M component of an LMS color with alpha.
53
54        Returns:
55            Graph: A graph node producing a Float.
56        """
57        lmsa_parsed = input_parsers.parse_graph(self)
58        result = _internal.l_m_s_a_m_internal(lmsa_parsed)
59        from .float import Float
60        return Float(result)
61
62    def s(self) -> float.Float:
63        """LMS Color S
64
65        Gets the S component of an LMS color with alpha.
66
67        Returns:
68            Graph: A graph node producing a Float.
69        """
70        lmsa_parsed = input_parsers.parse_graph(self)
71        result = _internal.l_m_s_a_s_internal(lmsa_parsed)
72        from .float import Float
73        return Float(result)

An LMS color with an alpha component.

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context).as_lmsa_color()
def alpha(self) -> Float:
23    def alpha(self) -> float.Float:
24        """LMS Color Alpha
25
26        Gets the alpha component of an LMS color with alpha.
27
28        Returns:
29            Graph: A graph node producing a Float.
30        """
31        lmsa_parsed = input_parsers.parse_graph(self)
32        result = _internal.l_m_s_a_alpha_internal(lmsa_parsed)
33        from .float import Float
34        return Float(result)

LMS Color Alpha

Gets the alpha component of an LMS color with alpha.

Returns: Graph: A graph node producing a Float.

def l(self) -> Float:
36    def l(self) -> float.Float:
37        """LMS Color L
38
39        Gets the L component of an LMS color with alpha.
40
41        Returns:
42            Graph: A graph node producing a Float.
43        """
44        lmsa_parsed = input_parsers.parse_graph(self)
45        result = _internal.l_m_s_a_l_internal(lmsa_parsed)
46        from .float import Float
47        return Float(result)

LMS Color L

Gets the L component of an LMS color with alpha.

Returns: Graph: A graph node producing a Float.

def m(self) -> Float:
49    def m(self) -> float.Float:
50        """LMS Color M
51
52        Gets the M component of an LMS color with alpha.
53
54        Returns:
55            Graph: A graph node producing a Float.
56        """
57        lmsa_parsed = input_parsers.parse_graph(self)
58        result = _internal.l_m_s_a_m_internal(lmsa_parsed)
59        from .float import Float
60        return Float(result)

LMS Color M

Gets the M component of an LMS color with alpha.

Returns: Graph: A graph node producing a Float.

def s(self) -> Float:
62    def s(self) -> float.Float:
63        """LMS Color S
64
65        Gets the S component of an LMS color with alpha.
66
67        Returns:
68            Graph: A graph node producing a Float.
69        """
70        lmsa_parsed = input_parsers.parse_graph(self)
71        result = _internal.l_m_s_a_s_internal(lmsa_parsed)
72        from .float import Float
73        return Float(result)

LMS Color S

Gets the S component of an LMS color with alpha.

Returns: Graph: A graph node producing a Float.

class Null(brushcue.Object):
11class Null(Object):
12    """An unconnected input"""
13
14    def execute(self, context):
15        return self._inner.execute(context)

An unconnected input

def execute(self, context):
14    def execute(self, context):
15        return self._inner.execute(context)
class OkLabA(brushcue.Object):
 18class OkLabA(Object):
 19    """An OkLab color with an alpha component."""
 20
 21    def execute(self, context):
 22        return self._inner.execute(context).as_ok_lab_a()
 23
 24    def a(self) -> float.Float:
 25        """OkLab Color a
 26
 27        Gets the a component of an OkLab color with alpha.
 28
 29        Returns:
 30            Graph: A graph node producing a Float.
 31        """
 32        ok_lab_a_parsed = input_parsers.parse_graph(self)
 33        result = _internal.ok_lab_a_a_internal(ok_lab_a_parsed)
 34        from .float import Float
 35        return Float(result)
 36
 37    def alpha(self) -> float.Float:
 38        """OkLab Color Alpha
 39
 40        Gets the alpha component of an OkLab color with alpha.
 41
 42        Returns:
 43            Graph: A graph node producing a Float.
 44        """
 45        ok_lab_a_parsed = input_parsers.parse_graph(self)
 46        result = _internal.ok_lab_a_alpha_internal(ok_lab_a_parsed)
 47        from .float import Float
 48        return Float(result)
 49
 50    def b(self) -> float.Float:
 51        """OkLab Color b
 52
 53        Gets the b component of an OkLab color with alpha.
 54
 55        Returns:
 56            Graph: A graph node producing a Float.
 57        """
 58        ok_lab_a_parsed = input_parsers.parse_graph(self)
 59        result = _internal.ok_lab_a_b_internal(ok_lab_a_parsed)
 60        from .float import Float
 61        return Float(result)
 62
 63    @staticmethod
 64    def from_components(l, a, b, alpha) -> OkLabA:
 65        """OkLab Color with Alpha from Components
 66
 67        Given the L, a, b and alpha creates the color
 68
 69        Args:
 70            l: Graph of Float
 71            a: Graph of Float
 72            b: Graph of Float
 73            alpha: Graph of Float
 74
 75        Returns:
 76            Graph: A graph node producing a OkLabA.
 77        """
 78        l_parsed = input_parsers.parse_float_graph(l)
 79        a_parsed = input_parsers.parse_float_graph(a)
 80        b_parsed = input_parsers.parse_float_graph(b)
 81        alpha_parsed = input_parsers.parse_float_graph(alpha)
 82        result = _internal.ok_lab_a_from_components_internal(l_parsed, a_parsed, b_parsed, alpha_parsed)
 83        return OkLabA(result)
 84
 85    def l(self) -> float.Float:
 86        """OkLab Color L
 87
 88        Gets the L component of an OkLab color with alpha.
 89
 90        Returns:
 91            Graph: A graph node producing a Float.
 92        """
 93        ok_lab_a_parsed = input_parsers.parse_graph(self)
 94        result = _internal.ok_lab_a_l_internal(ok_lab_a_parsed)
 95        from .float import Float
 96        return Float(result)
 97
 98    def to_oklcha(self) -> ok_lch_a.OkLchA:
 99        """OkLab with Alpha to OkLch with Alpha
100
101        Converts OkLab to OkLch, preserving lightness and alpha. Hue is in radians.
102
103        Returns:
104            Graph: A graph node producing a OkLchA.
105        """
106        ok_lab_a_parsed = input_parsers.parse_graph(self)
107        result = _internal.ok_lab_a_to_ok_lch_a_internal(ok_lab_a_parsed)
108        from .ok_lch_a import OkLchA
109        return OkLchA(result)

An OkLab color with an alpha component.

def execute(self, context):
21    def execute(self, context):
22        return self._inner.execute(context).as_ok_lab_a()
def a(self) -> Float:
24    def a(self) -> float.Float:
25        """OkLab Color a
26
27        Gets the a component of an OkLab color with alpha.
28
29        Returns:
30            Graph: A graph node producing a Float.
31        """
32        ok_lab_a_parsed = input_parsers.parse_graph(self)
33        result = _internal.ok_lab_a_a_internal(ok_lab_a_parsed)
34        from .float import Float
35        return Float(result)

OkLab Color a

Gets the a component of an OkLab color with alpha.

Returns: Graph: A graph node producing a Float.

def alpha(self) -> Float:
37    def alpha(self) -> float.Float:
38        """OkLab Color Alpha
39
40        Gets the alpha component of an OkLab color with alpha.
41
42        Returns:
43            Graph: A graph node producing a Float.
44        """
45        ok_lab_a_parsed = input_parsers.parse_graph(self)
46        result = _internal.ok_lab_a_alpha_internal(ok_lab_a_parsed)
47        from .float import Float
48        return Float(result)

OkLab Color Alpha

Gets the alpha component of an OkLab color with alpha.

Returns: Graph: A graph node producing a Float.

def b(self) -> Float:
50    def b(self) -> float.Float:
51        """OkLab Color b
52
53        Gets the b component of an OkLab color with alpha.
54
55        Returns:
56            Graph: A graph node producing a Float.
57        """
58        ok_lab_a_parsed = input_parsers.parse_graph(self)
59        result = _internal.ok_lab_a_b_internal(ok_lab_a_parsed)
60        from .float import Float
61        return Float(result)

OkLab Color b

Gets the b component of an OkLab color with alpha.

Returns: Graph: A graph node producing a Float.

@staticmethod
def from_components(l, a, b, alpha) -> OkLabA:
63    @staticmethod
64    def from_components(l, a, b, alpha) -> OkLabA:
65        """OkLab Color with Alpha from Components
66
67        Given the L, a, b and alpha creates the color
68
69        Args:
70            l: Graph of Float
71            a: Graph of Float
72            b: Graph of Float
73            alpha: Graph of Float
74
75        Returns:
76            Graph: A graph node producing a OkLabA.
77        """
78        l_parsed = input_parsers.parse_float_graph(l)
79        a_parsed = input_parsers.parse_float_graph(a)
80        b_parsed = input_parsers.parse_float_graph(b)
81        alpha_parsed = input_parsers.parse_float_graph(alpha)
82        result = _internal.ok_lab_a_from_components_internal(l_parsed, a_parsed, b_parsed, alpha_parsed)
83        return OkLabA(result)

OkLab Color with Alpha from Components

Given the L, a, b and alpha creates the color

Args: l: Graph of Float a: Graph of Float b: Graph of Float alpha: Graph of Float

Returns: Graph: A graph node producing a OkLabA.

def l(self) -> Float:
85    def l(self) -> float.Float:
86        """OkLab Color L
87
88        Gets the L component of an OkLab color with alpha.
89
90        Returns:
91            Graph: A graph node producing a Float.
92        """
93        ok_lab_a_parsed = input_parsers.parse_graph(self)
94        result = _internal.ok_lab_a_l_internal(ok_lab_a_parsed)
95        from .float import Float
96        return Float(result)

OkLab Color L

Gets the L component of an OkLab color with alpha.

Returns: Graph: A graph node producing a Float.

def to_oklcha(self) -> OkLchA:
 98    def to_oklcha(self) -> ok_lch_a.OkLchA:
 99        """OkLab with Alpha to OkLch with Alpha
100
101        Converts OkLab to OkLch, preserving lightness and alpha. Hue is in radians.
102
103        Returns:
104            Graph: A graph node producing a OkLchA.
105        """
106        ok_lab_a_parsed = input_parsers.parse_graph(self)
107        result = _internal.ok_lab_a_to_ok_lch_a_internal(ok_lab_a_parsed)
108        from .ok_lch_a import OkLchA
109        return OkLchA(result)

OkLab with Alpha to OkLch with Alpha

Converts OkLab to OkLch, preserving lightness and alpha. Hue is in radians.

Returns: Graph: A graph node producing a OkLchA.

class OkLabColor(brushcue.Object):
12class OkLabColor(Object):
13    """A color in the OkLab color space, which is designed to be perceptually uniform. L represents lightness. Negative "a" for green. Positive "a" for red. Negative "b" for blue. Positive "b" for yellow."""
14
15    def execute(self, context):
16        return self._inner.execute(context)
17
18    @staticmethod
19    def from_components(l, a, b) -> OkLabColor:
20        """OkLab Color from Components
21
22        Given the L, a and b creates the color
23
24        Args:
25            l: Graph of Float
26            a: Graph of Float
27            b: Graph of Float
28
29        Returns:
30            Graph: A graph node producing a OkLabColor.
31        """
32        l_parsed = input_parsers.parse_float_graph(l)
33        a_parsed = input_parsers.parse_float_graph(a)
34        b_parsed = input_parsers.parse_float_graph(b)
35        result = _internal.ok_lab_color_from_components_internal(l_parsed, a_parsed, b_parsed)
36        return OkLabColor(result)

A color in the OkLab color space, which is designed to be perceptually uniform. L represents lightness. Negative "a" for green. Positive "a" for red. Negative "b" for blue. Positive "b" for yellow.

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context)
@staticmethod
def from_components(l, a, b) -> OkLabColor:
18    @staticmethod
19    def from_components(l, a, b) -> OkLabColor:
20        """OkLab Color from Components
21
22        Given the L, a and b creates the color
23
24        Args:
25            l: Graph of Float
26            a: Graph of Float
27            b: Graph of Float
28
29        Returns:
30            Graph: A graph node producing a OkLabColor.
31        """
32        l_parsed = input_parsers.parse_float_graph(l)
33        a_parsed = input_parsers.parse_float_graph(a)
34        b_parsed = input_parsers.parse_float_graph(b)
35        result = _internal.ok_lab_color_from_components_internal(l_parsed, a_parsed, b_parsed)
36        return OkLabColor(result)

OkLab Color from Components

Given the L, a and b creates the color

Args: l: Graph of Float a: Graph of Float b: Graph of Float

Returns: Graph: A graph node producing a OkLabColor.

class OkLabHist(brushcue.Object):
17class OkLabHist(Object):
18    """A histogram in various dimensions over the OkLab color space."""
19
20    def execute(self, context):
21        return self._inner.execute(context)
22
23    def lightness_percentile(self, quantile) -> float.Float:
24        """OkLab Histogram Lightness Quantile
25
26        Given an OkLab histogram and a quantile, returns the lightness value that corresponds to the quantile.
27
28        Args:
29            quantile: Graph of Float
30
31        Returns:
32            Graph: A graph node producing a Float.
33        """
34        hist_parsed = input_parsers.parse_graph(self)
35        quantile_parsed = input_parsers.parse_float_graph(quantile)
36        result = _internal.ok_lab_hist_lightness_quantile_internal(hist_parsed, quantile_parsed)
37        from .float import Float
38        return Float(result)

A histogram in various dimensions over the OkLab color space.

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context)
def lightness_percentile(self, quantile) -> Float:
23    def lightness_percentile(self, quantile) -> float.Float:
24        """OkLab Histogram Lightness Quantile
25
26        Given an OkLab histogram and a quantile, returns the lightness value that corresponds to the quantile.
27
28        Args:
29            quantile: Graph of Float
30
31        Returns:
32            Graph: A graph node producing a Float.
33        """
34        hist_parsed = input_parsers.parse_graph(self)
35        quantile_parsed = input_parsers.parse_float_graph(quantile)
36        result = _internal.ok_lab_hist_lightness_quantile_internal(hist_parsed, quantile_parsed)
37        from .float import Float
38        return Float(result)

OkLab Histogram Lightness Quantile

Given an OkLab histogram and a quantile, returns the lightness value that corresponds to the quantile.

Args: quantile: Graph of Float

Returns: Graph: A graph node producing a Float.

class OkLchA(brushcue.Object):
 18class OkLchA(Object):
 19    """An OkLch color with an alpha component."""
 20
 21    def execute(self, context):
 22        return self._inner.execute(context).as_ok_lch_a()
 23
 24    def alpha(self) -> float.Float:
 25        """OkLch Color Alpha
 26
 27        Gets the alpha component of an OkLch color with alpha.
 28
 29        Returns:
 30            Graph: A graph node producing a Float.
 31        """
 32        ok_lch_a_parsed = input_parsers.parse_graph(self)
 33        result = _internal.ok_lch_a_alpha_internal(ok_lch_a_parsed)
 34        from .float import Float
 35        return Float(result)
 36
 37    def c(self) -> float.Float:
 38        """OkLch Color c
 39
 40        Gets the c component of an OkLch color with alpha.
 41
 42        Returns:
 43            Graph: A graph node producing a Float.
 44        """
 45        ok_lch_a_parsed = input_parsers.parse_graph(self)
 46        result = _internal.ok_lch_a_c_internal(ok_lch_a_parsed)
 47        from .float import Float
 48        return Float(result)
 49
 50    @staticmethod
 51    def from_components(l, c, h, alpha) -> OkLchA:
 52        """OkLch Color with Alpha from Components
 53
 54        Given the L, chroma, hue in radians and alpha creates the color
 55
 56        Args:
 57            l: Graph of Float
 58            c: Graph of Float
 59            h: Graph of Float
 60            alpha: Graph of Float
 61
 62        Returns:
 63            Graph: A graph node producing a OkLchA.
 64        """
 65        l_parsed = input_parsers.parse_float_graph(l)
 66        c_parsed = input_parsers.parse_float_graph(c)
 67        h_parsed = input_parsers.parse_float_graph(h)
 68        alpha_parsed = input_parsers.parse_float_graph(alpha)
 69        result = _internal.ok_lch_a_from_components_internal(l_parsed, c_parsed, h_parsed, alpha_parsed)
 70        return OkLchA(result)
 71
 72    def h(self) -> float.Float:
 73        """OkLch Color h
 74
 75        Gets the hue in radians of an OkLch color with alpha.
 76
 77        Returns:
 78            Graph: A graph node producing a Float.
 79        """
 80        ok_lch_a_parsed = input_parsers.parse_graph(self)
 81        result = _internal.ok_lch_a_h_internal(ok_lch_a_parsed)
 82        from .float import Float
 83        return Float(result)
 84
 85    def l(self) -> float.Float:
 86        """OkLch Color L
 87
 88        Gets the L component of an OkLch color with alpha.
 89
 90        Returns:
 91            Graph: A graph node producing a Float.
 92        """
 93        ok_lch_a_parsed = input_parsers.parse_graph(self)
 94        result = _internal.ok_lch_a_l_internal(ok_lch_a_parsed)
 95        from .float import Float
 96        return Float(result)
 97
 98    def to_oklaba(self) -> ok_lab_a.OkLabA:
 99        """OkLch with Alpha to OkLab with Alpha
100
101        Converts OkLch to OkLab, preserving lightness and alpha. Hue is in radians.
102
103        Returns:
104            Graph: A graph node producing a OkLabA.
105        """
106        ok_lch_a_parsed = input_parsers.parse_graph(self)
107        result = _internal.ok_lch_a_to_ok_lab_a_internal(ok_lch_a_parsed)
108        from .ok_lab_a import OkLabA
109        return OkLabA(result)

An OkLch color with an alpha component.

def execute(self, context):
21    def execute(self, context):
22        return self._inner.execute(context).as_ok_lch_a()
def alpha(self) -> Float:
24    def alpha(self) -> float.Float:
25        """OkLch Color Alpha
26
27        Gets the alpha component of an OkLch color with alpha.
28
29        Returns:
30            Graph: A graph node producing a Float.
31        """
32        ok_lch_a_parsed = input_parsers.parse_graph(self)
33        result = _internal.ok_lch_a_alpha_internal(ok_lch_a_parsed)
34        from .float import Float
35        return Float(result)

OkLch Color Alpha

Gets the alpha component of an OkLch color with alpha.

Returns: Graph: A graph node producing a Float.

def c(self) -> Float:
37    def c(self) -> float.Float:
38        """OkLch Color c
39
40        Gets the c component of an OkLch color with alpha.
41
42        Returns:
43            Graph: A graph node producing a Float.
44        """
45        ok_lch_a_parsed = input_parsers.parse_graph(self)
46        result = _internal.ok_lch_a_c_internal(ok_lch_a_parsed)
47        from .float import Float
48        return Float(result)

OkLch Color c

Gets the c component of an OkLch color with alpha.

Returns: Graph: A graph node producing a Float.

@staticmethod
def from_components(l, c, h, alpha) -> OkLchA:
50    @staticmethod
51    def from_components(l, c, h, alpha) -> OkLchA:
52        """OkLch Color with Alpha from Components
53
54        Given the L, chroma, hue in radians and alpha creates the color
55
56        Args:
57            l: Graph of Float
58            c: Graph of Float
59            h: Graph of Float
60            alpha: Graph of Float
61
62        Returns:
63            Graph: A graph node producing a OkLchA.
64        """
65        l_parsed = input_parsers.parse_float_graph(l)
66        c_parsed = input_parsers.parse_float_graph(c)
67        h_parsed = input_parsers.parse_float_graph(h)
68        alpha_parsed = input_parsers.parse_float_graph(alpha)
69        result = _internal.ok_lch_a_from_components_internal(l_parsed, c_parsed, h_parsed, alpha_parsed)
70        return OkLchA(result)

OkLch Color with Alpha from Components

Given the L, chroma, hue in radians and alpha creates the color

Args: l: Graph of Float c: Graph of Float h: Graph of Float alpha: Graph of Float

Returns: Graph: A graph node producing a OkLchA.

def h(self) -> Float:
72    def h(self) -> float.Float:
73        """OkLch Color h
74
75        Gets the hue in radians of an OkLch color with alpha.
76
77        Returns:
78            Graph: A graph node producing a Float.
79        """
80        ok_lch_a_parsed = input_parsers.parse_graph(self)
81        result = _internal.ok_lch_a_h_internal(ok_lch_a_parsed)
82        from .float import Float
83        return Float(result)

OkLch Color h

Gets the hue in radians of an OkLch color with alpha.

Returns: Graph: A graph node producing a Float.

def l(self) -> Float:
85    def l(self) -> float.Float:
86        """OkLch Color L
87
88        Gets the L component of an OkLch color with alpha.
89
90        Returns:
91            Graph: A graph node producing a Float.
92        """
93        ok_lch_a_parsed = input_parsers.parse_graph(self)
94        result = _internal.ok_lch_a_l_internal(ok_lch_a_parsed)
95        from .float import Float
96        return Float(result)

OkLch Color L

Gets the L component of an OkLch color with alpha.

Returns: Graph: A graph node producing a Float.

def to_oklaba(self) -> OkLabA:
 98    def to_oklaba(self) -> ok_lab_a.OkLabA:
 99        """OkLch with Alpha to OkLab with Alpha
100
101        Converts OkLch to OkLab, preserving lightness and alpha. Hue is in radians.
102
103        Returns:
104            Graph: A graph node producing a OkLabA.
105        """
106        ok_lch_a_parsed = input_parsers.parse_graph(self)
107        result = _internal.ok_lch_a_to_ok_lab_a_internal(ok_lch_a_parsed)
108        from .ok_lab_a import OkLabA
109        return OkLabA(result)

OkLch with Alpha to OkLab with Alpha

Converts OkLch to OkLab, preserving lightness and alpha. Hue is in radians.

Returns: Graph: A graph node producing a OkLabA.

class PaintedIllustration(brushcue.Object):
 23class PaintedIllustration(Object):
 24    """A single item drawn by a painter. A path, rectangle or ellipse together with the render style it is drawn with and its instance transforms."""
 25
 26    def execute(self, context):
 27        return self._inner.execute(context)
 28
 29    def center(self) -> point2f.Point2f:
 30        """Painted Illustration Center
 31
 32        Gets the center point of a rectangle or ellipse. Fails on paths.
 33
 34        Returns:
 35            Graph: A graph node producing a Point2f.
 36        """
 37        illustration_parsed = input_parsers.parse_graph(self)
 38        result = _internal.painted_illustration_center_internal(illustration_parsed)
 39        from .point2f import Point2f
 40        return Point2f(result)
 41
 42    def dimensions(self) -> vector2f.Vector2f:
 43        """Painted Illustration Dimensions
 44
 45        Gets the width and height of a rectangle, or the a and b radii of an ellipse. Fails on paths.
 46
 47        Returns:
 48            Graph: A graph node producing a Vector2f.
 49        """
 50        illustration_parsed = input_parsers.parse_graph(self)
 51        result = _internal.painted_illustration_dimensions_internal(illustration_parsed)
 52        from .vector2f import Vector2f
 53        return Vector2f(result)
 54
 55    def instances(self) -> transform2_list.Transform2List:
 56        """Painted Illustration Instances
 57
 58        Gets the transforms this painted illustration is drawn with. It is drawn once for each transform.
 59
 60        Returns:
 61            Graph: A graph node producing a Transform2List.
 62        """
 63        illustration_parsed = input_parsers.parse_graph(self)
 64        result = _internal.painted_illustration_instances_internal(illustration_parsed)
 65        from .transform2_list import Transform2List
 66        return Transform2List(result)
 67
 68    def is_ellipse(self) -> bool.Bool:
 69        """Painted Illustration Is Ellipse
 70
 71        Returns whether this painted illustration is an ellipse.
 72
 73        Returns:
 74            Graph: A graph node producing a Bool.
 75        """
 76        illustration_parsed = input_parsers.parse_graph(self)
 77        result = _internal.painted_illustration_is_ellipse_internal(illustration_parsed)
 78        from .bool import Bool
 79        return Bool(result)
 80
 81    def is_path(self) -> bool.Bool:
 82        """Painted Illustration Is Path
 83
 84        Returns whether this painted illustration is a path.
 85
 86        Returns:
 87            Graph: A graph node producing a Bool.
 88        """
 89        illustration_parsed = input_parsers.parse_graph(self)
 90        result = _internal.painted_illustration_is_path_internal(illustration_parsed)
 91        from .bool import Bool
 92        return Bool(result)
 93
 94    def is_rectangle(self) -> bool.Bool:
 95        """Painted Illustration Is Rectangle
 96
 97        Returns whether this painted illustration is a rectangle.
 98
 99        Returns:
100            Graph: A graph node producing a Bool.
101        """
102        illustration_parsed = input_parsers.parse_graph(self)
103        result = _internal.painted_illustration_is_rectangle_internal(illustration_parsed)
104        from .bool import Bool
105        return Bool(result)
106
107    def path(self) -> path.Path:
108        """Painted Illustration Path
109
110        Gets the path of this painted illustration. Only works on paths and fails on rectangles and ellipses.
111
112        Returns:
113            Graph: A graph node producing a Path.
114        """
115        illustration_parsed = input_parsers.parse_graph(self)
116        result = _internal.painted_illustration_path_internal(illustration_parsed)
117        from .path import Path
118        return Path(result)
119
120    def render_style(self) -> render_style.RenderStyle:
121        """Painted Illustration Render Style
122
123        Gets the render style this painted illustration is drawn with.
124
125        Returns:
126            Graph: A graph node producing a RenderStyle.
127        """
128        illustration_parsed = input_parsers.parse_graph(self)
129        result = _internal.painted_illustration_render_style_internal(illustration_parsed)
130        from .render_style import RenderStyle
131        return RenderStyle(result)
132
133    def rotation(self) -> float.Float:
134        """Painted Illustration Rotation
135
136        Gets the rotation in radians of a rectangle or ellipse. Fails on paths.
137
138        Returns:
139            Graph: A graph node producing a Float.
140        """
141        illustration_parsed = input_parsers.parse_graph(self)
142        result = _internal.painted_illustration_rotation_internal(illustration_parsed)
143        from .float import Float
144        return Float(result)
145
146    def with_instances(self, instances) -> PaintedIllustration:
147        """Painted Illustration with Instances
148
149        Returns a copy of this painted illustration drawn with different transforms. It is drawn once for each transform. The shape and render style stay the same.
150
151        Args:
152            instances: Graph of Transform2List
153
154        Returns:
155            Graph: A graph node producing a PaintedIllustration.
156        """
157        illustration_parsed = input_parsers.parse_graph(self)
158        instances_parsed = input_parsers.parse_graph(instances)
159        result = _internal.painted_illustration_with_instances_internal(illustration_parsed, instances_parsed)
160        return PaintedIllustration(result)
161
162    def with_path(self, path) -> PaintedIllustration:
163        """Painted Illustration with Path
164
165        Returns a copy of this painted illustration with its shape replaced by a path. Works on paths, rectangles and ellipses. The render style and instances stay the same.
166
167        Args:
168            path: Graph of Path
169
170        Returns:
171            Graph: A graph node producing a PaintedIllustration.
172        """
173        illustration_parsed = input_parsers.parse_graph(self)
174        path_parsed = input_parsers.parse_graph(path)
175        result = _internal.painted_illustration_with_path_internal(illustration_parsed, path_parsed)
176        return PaintedIllustration(result)
177
178    def with_render_style(self, render_style) -> PaintedIllustration:
179        """Painted Illustration with Render Style
180
181        Returns a copy of this painted illustration drawn with a different render style. The shape and instances stay the same.
182
183        Args:
184            render_style: Graph of RenderStyle
185
186        Returns:
187            Graph: A graph node producing a PaintedIllustration.
188        """
189        illustration_parsed = input_parsers.parse_graph(self)
190        render_style_parsed = input_parsers.parse_graph(render_style)
191        result = _internal.painted_illustration_with_render_style_internal(illustration_parsed, render_style_parsed)
192        return PaintedIllustration(result)
193
194    def with_transform(self, transform) -> PaintedIllustration:
195        """Painted Illustration with Transform
196
197        Returns a copy of this painted illustration with a transform applied after each of its instance transforms.
198
199        Args:
200            transform: Graph of Transform2
201
202        Returns:
203            Graph: A graph node producing a PaintedIllustration.
204        """
205        illustration_parsed = input_parsers.parse_graph(self)
206        transform_parsed = input_parsers.parse_graph(transform)
207        result = _internal.painted_illustration_with_transform_internal(illustration_parsed, transform_parsed)
208        return PaintedIllustration(result)

A single item drawn by a painter. A path, rectangle or ellipse together with the render style it is drawn with and its instance transforms.

def execute(self, context):
26    def execute(self, context):
27        return self._inner.execute(context)
def center(self) -> Point2f:
29    def center(self) -> point2f.Point2f:
30        """Painted Illustration Center
31
32        Gets the center point of a rectangle or ellipse. Fails on paths.
33
34        Returns:
35            Graph: A graph node producing a Point2f.
36        """
37        illustration_parsed = input_parsers.parse_graph(self)
38        result = _internal.painted_illustration_center_internal(illustration_parsed)
39        from .point2f import Point2f
40        return Point2f(result)

Painted Illustration Center

Gets the center point of a rectangle or ellipse. Fails on paths.

Returns: Graph: A graph node producing a Point2f.

def dimensions(self) -> Vector2f:
42    def dimensions(self) -> vector2f.Vector2f:
43        """Painted Illustration Dimensions
44
45        Gets the width and height of a rectangle, or the a and b radii of an ellipse. Fails on paths.
46
47        Returns:
48            Graph: A graph node producing a Vector2f.
49        """
50        illustration_parsed = input_parsers.parse_graph(self)
51        result = _internal.painted_illustration_dimensions_internal(illustration_parsed)
52        from .vector2f import Vector2f
53        return Vector2f(result)

Painted Illustration Dimensions

Gets the width and height of a rectangle, or the a and b radii of an ellipse. Fails on paths.

Returns: Graph: A graph node producing a Vector2f.

def instances(self) -> Transform2List:
55    def instances(self) -> transform2_list.Transform2List:
56        """Painted Illustration Instances
57
58        Gets the transforms this painted illustration is drawn with. It is drawn once for each transform.
59
60        Returns:
61            Graph: A graph node producing a Transform2List.
62        """
63        illustration_parsed = input_parsers.parse_graph(self)
64        result = _internal.painted_illustration_instances_internal(illustration_parsed)
65        from .transform2_list import Transform2List
66        return Transform2List(result)

Painted Illustration Instances

Gets the transforms this painted illustration is drawn with. It is drawn once for each transform.

Returns: Graph: A graph node producing a Transform2List.

def is_ellipse(self) -> Bool:
68    def is_ellipse(self) -> bool.Bool:
69        """Painted Illustration Is Ellipse
70
71        Returns whether this painted illustration is an ellipse.
72
73        Returns:
74            Graph: A graph node producing a Bool.
75        """
76        illustration_parsed = input_parsers.parse_graph(self)
77        result = _internal.painted_illustration_is_ellipse_internal(illustration_parsed)
78        from .bool import Bool
79        return Bool(result)

Painted Illustration Is Ellipse

Returns whether this painted illustration is an ellipse.

Returns: Graph: A graph node producing a Bool.

def is_path(self) -> Bool:
81    def is_path(self) -> bool.Bool:
82        """Painted Illustration Is Path
83
84        Returns whether this painted illustration is a path.
85
86        Returns:
87            Graph: A graph node producing a Bool.
88        """
89        illustration_parsed = input_parsers.parse_graph(self)
90        result = _internal.painted_illustration_is_path_internal(illustration_parsed)
91        from .bool import Bool
92        return Bool(result)

Painted Illustration Is Path

Returns whether this painted illustration is a path.

Returns: Graph: A graph node producing a Bool.

def is_rectangle(self) -> Bool:
 94    def is_rectangle(self) -> bool.Bool:
 95        """Painted Illustration Is Rectangle
 96
 97        Returns whether this painted illustration is a rectangle.
 98
 99        Returns:
100            Graph: A graph node producing a Bool.
101        """
102        illustration_parsed = input_parsers.parse_graph(self)
103        result = _internal.painted_illustration_is_rectangle_internal(illustration_parsed)
104        from .bool import Bool
105        return Bool(result)

Painted Illustration Is Rectangle

Returns whether this painted illustration is a rectangle.

Returns: Graph: A graph node producing a Bool.

def path(self) -> Path:
107    def path(self) -> path.Path:
108        """Painted Illustration Path
109
110        Gets the path of this painted illustration. Only works on paths and fails on rectangles and ellipses.
111
112        Returns:
113            Graph: A graph node producing a Path.
114        """
115        illustration_parsed = input_parsers.parse_graph(self)
116        result = _internal.painted_illustration_path_internal(illustration_parsed)
117        from .path import Path
118        return Path(result)

Painted Illustration Path

Gets the path of this painted illustration. Only works on paths and fails on rectangles and ellipses.

Returns: Graph: A graph node producing a Path.

def render_style(self) -> RenderStyle:
120    def render_style(self) -> render_style.RenderStyle:
121        """Painted Illustration Render Style
122
123        Gets the render style this painted illustration is drawn with.
124
125        Returns:
126            Graph: A graph node producing a RenderStyle.
127        """
128        illustration_parsed = input_parsers.parse_graph(self)
129        result = _internal.painted_illustration_render_style_internal(illustration_parsed)
130        from .render_style import RenderStyle
131        return RenderStyle(result)

Painted Illustration Render Style

Gets the render style this painted illustration is drawn with.

Returns: Graph: A graph node producing a RenderStyle.

def rotation(self) -> Float:
133    def rotation(self) -> float.Float:
134        """Painted Illustration Rotation
135
136        Gets the rotation in radians of a rectangle or ellipse. Fails on paths.
137
138        Returns:
139            Graph: A graph node producing a Float.
140        """
141        illustration_parsed = input_parsers.parse_graph(self)
142        result = _internal.painted_illustration_rotation_internal(illustration_parsed)
143        from .float import Float
144        return Float(result)

Painted Illustration Rotation

Gets the rotation in radians of a rectangle or ellipse. Fails on paths.

Returns: Graph: A graph node producing a Float.

def with_instances(self, instances) -> PaintedIllustration:
146    def with_instances(self, instances) -> PaintedIllustration:
147        """Painted Illustration with Instances
148
149        Returns a copy of this painted illustration drawn with different transforms. It is drawn once for each transform. The shape and render style stay the same.
150
151        Args:
152            instances: Graph of Transform2List
153
154        Returns:
155            Graph: A graph node producing a PaintedIllustration.
156        """
157        illustration_parsed = input_parsers.parse_graph(self)
158        instances_parsed = input_parsers.parse_graph(instances)
159        result = _internal.painted_illustration_with_instances_internal(illustration_parsed, instances_parsed)
160        return PaintedIllustration(result)

Painted Illustration with Instances

Returns a copy of this painted illustration drawn with different transforms. It is drawn once for each transform. The shape and render style stay the same.

Args: instances: Graph of Transform2List

Returns: Graph: A graph node producing a PaintedIllustration.

def with_path(self, path) -> PaintedIllustration:
162    def with_path(self, path) -> PaintedIllustration:
163        """Painted Illustration with Path
164
165        Returns a copy of this painted illustration with its shape replaced by a path. Works on paths, rectangles and ellipses. The render style and instances stay the same.
166
167        Args:
168            path: Graph of Path
169
170        Returns:
171            Graph: A graph node producing a PaintedIllustration.
172        """
173        illustration_parsed = input_parsers.parse_graph(self)
174        path_parsed = input_parsers.parse_graph(path)
175        result = _internal.painted_illustration_with_path_internal(illustration_parsed, path_parsed)
176        return PaintedIllustration(result)

Painted Illustration with Path

Returns a copy of this painted illustration with its shape replaced by a path. Works on paths, rectangles and ellipses. The render style and instances stay the same.

Args: path: Graph of Path

Returns: Graph: A graph node producing a PaintedIllustration.

def with_render_style(self, render_style) -> PaintedIllustration:
178    def with_render_style(self, render_style) -> PaintedIllustration:
179        """Painted Illustration with Render Style
180
181        Returns a copy of this painted illustration drawn with a different render style. The shape and instances stay the same.
182
183        Args:
184            render_style: Graph of RenderStyle
185
186        Returns:
187            Graph: A graph node producing a PaintedIllustration.
188        """
189        illustration_parsed = input_parsers.parse_graph(self)
190        render_style_parsed = input_parsers.parse_graph(render_style)
191        result = _internal.painted_illustration_with_render_style_internal(illustration_parsed, render_style_parsed)
192        return PaintedIllustration(result)

Painted Illustration with Render Style

Returns a copy of this painted illustration drawn with a different render style. The shape and instances stay the same.

Args: render_style: Graph of RenderStyle

Returns: Graph: A graph node producing a PaintedIllustration.

def with_transform(self, transform) -> PaintedIllustration:
194    def with_transform(self, transform) -> PaintedIllustration:
195        """Painted Illustration with Transform
196
197        Returns a copy of this painted illustration with a transform applied after each of its instance transforms.
198
199        Args:
200            transform: Graph of Transform2
201
202        Returns:
203            Graph: A graph node producing a PaintedIllustration.
204        """
205        illustration_parsed = input_parsers.parse_graph(self)
206        transform_parsed = input_parsers.parse_graph(transform)
207        result = _internal.painted_illustration_with_transform_internal(illustration_parsed, transform_parsed)
208        return PaintedIllustration(result)

Painted Illustration with Transform

Returns a copy of this painted illustration with a transform applied after each of its instance transforms.

Args: transform: Graph of Transform2

Returns: Graph: A graph node producing a PaintedIllustration.

class PaintedIllustrationList(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
11class PaintedIllustrationList(List):
12    """List of Painted Illustrations"""
13
14    def __init__(self, inner, resolved_type=None):
15        from .painted_illustration import PaintedIllustration
16        super().__init__(inner, PaintedIllustration if resolved_type is None else resolved_type)
17
18    def execute(self, context):
19        return self._inner.execute(context)

List of Painted Illustrations

PaintedIllustrationList(inner, resolved_type=None)
14    def __init__(self, inner, resolved_type=None):
15        from .painted_illustration import PaintedIllustration
16        super().__init__(inner, PaintedIllustration if resolved_type is None else resolved_type)
class Painter(brushcue.Object):
 19class Painter(Object):
 20    """Can draw in 2D. Using paths, brushes, fills and transforms to create your artwork."""
 21
 22    def execute(self, context):
 23        return self._inner.execute(context)
 24
 25    def add_ellipse_with_render_style(self, center, dimensions, rotation, render_style, instances) -> Painter:
 26        """Painter Add Ellipse with Render Style
 27
 28        Adds an ellipse to the painter and draws it with the render style. Set some transforms on the ellipse as well.
 29
 30        Args:
 31            center: Graph of Point2f
 32            dimensions: Graph of Vector2f
 33            rotation: Graph of Float
 34            render_style: Graph of RenderStyle
 35            instances: Graph of Transform2List
 36
 37        Returns:
 38            Graph: A graph node producing a Painter.
 39        """
 40        painter_parsed = input_parsers.parse_graph(self)
 41        center_parsed = input_parsers.parse_graph(center)
 42        dimensions_parsed = input_parsers.parse_graph(dimensions)
 43        rotation_parsed = input_parsers.parse_float_graph(rotation)
 44        render_style_parsed = input_parsers.parse_graph(render_style)
 45        instances_parsed = input_parsers.parse_graph(instances)
 46        result = _internal.painter_add_ellipse_with_render_style_internal(painter_parsed, center_parsed, dimensions_parsed, rotation_parsed, render_style_parsed, instances_parsed)
 47        return Painter(result)
 48
 49    def add_path_with_render_style(self, path, render_style, instances) -> Painter:
 50        """Painter Add Path with Render Style
 51
 52        Adds a path to the painter and draws it with the render style. Set some transforms on the path as well.
 53
 54        Args:
 55            path: Graph of Path
 56            render_style: Graph of RenderStyle
 57            instances: Graph of Transform2List
 58
 59        Returns:
 60            Graph: A graph node producing a Painter.
 61        """
 62        painter_parsed = input_parsers.parse_graph(self)
 63        path_parsed = input_parsers.parse_graph(path)
 64        render_style_parsed = input_parsers.parse_graph(render_style)
 65        instances_parsed = input_parsers.parse_graph(instances)
 66        result = _internal.painter_add_path_with_render_style_internal(painter_parsed, path_parsed, render_style_parsed, instances_parsed)
 67        return Painter(result)
 68
 69    def add_rectangle_with_render_style(self, center, dimensions, rotation, render_style, instances) -> Painter:
 70        """Painter Add Rectangle with Render Style
 71
 72        Adds a rectangle to the painter and draws it with the render style. Set some transforms on the rectangle as well.
 73
 74        Args:
 75            center: Graph of Point2f
 76            dimensions: Graph of Vector2f
 77            rotation: Graph of Float
 78            render_style: Graph of RenderStyle
 79            instances: Graph of Transform2List
 80
 81        Returns:
 82            Graph: A graph node producing a Painter.
 83        """
 84        painter_parsed = input_parsers.parse_graph(self)
 85        center_parsed = input_parsers.parse_graph(center)
 86        dimensions_parsed = input_parsers.parse_graph(dimensions)
 87        rotation_parsed = input_parsers.parse_float_graph(rotation)
 88        render_style_parsed = input_parsers.parse_graph(render_style)
 89        instances_parsed = input_parsers.parse_graph(instances)
 90        result = _internal.painter_add_rectangle_with_render_style_internal(painter_parsed, center_parsed, dimensions_parsed, rotation_parsed, render_style_parsed, instances_parsed)
 91        return Painter(result)
 92
 93    def add_styled_text(self, styled_string) -> Painter:
 94        """Painter Add Styled Text
 95
 96        Adds a styled string to the painter, drawn on top of what the painter already contains.
 97
 98        Args:
 99            styled_string: Graph of StyledString
100
101        Returns:
102            Graph: A graph node producing a Painter.
103        """
104        painter_parsed = input_parsers.parse_graph(self)
105        styled_string_parsed = input_parsers.parse_graph(styled_string)
106        result = _internal.painter_add_styled_text_internal(painter_parsed, styled_string_parsed)
107        return Painter(result)
108
109    def bounds(self) -> bounds2f.Bounds2f:
110        """Painter Bounds
111
112        Gets the bounding box of everything the painter draws, including brush radius.
113
114        Returns:
115            Graph: A graph node producing a Bounds2f.
116        """
117        painter_parsed = input_parsers.parse_graph(self)
118        result = _internal.painter_bounds_internal(painter_parsed)
119        from .bounds2f import Bounds2f
120        return Bounds2f(result)
121
122    @staticmethod
123    def from_painted_illustrations(illustrations) -> Painter:
124        """Painter From Painted Illustrations
125
126        Creates a painter that draws the painted illustrations in order, from back to front.
127
128        Args:
129            illustrations: Graph of PaintedIllustrationList
130
131        Returns:
132            Graph: A graph node producing a Painter.
133        """
134        illustrations_parsed = input_parsers.parse_graph(illustrations)
135        result = _internal.painter_from_painted_illustrations_internal(illustrations_parsed)
136        return Painter(result)
137
138    @staticmethod
139    def new() -> Painter:
140        """Painter New
141
142        Creates a new painter.
143
144        Returns:
145            Graph: A graph node producing a Painter.
146        """
147        result = _internal.painter_new_internal()
148        return Painter(result)
149
150    def to_painted_illustrations(self) -> painted_illustration_list.PaintedIllustrationList:
151        """Painter To Painted Illustrations
152
153        Gets the list of painted illustrations in this painter, in paint order from back to front.
154
155        Returns:
156            Graph: A graph node producing a PaintedIllustrationList.
157        """
158        painter_parsed = input_parsers.parse_graph(self)
159        result = _internal.painter_to_painted_illustrations_internal(painter_parsed)
160        from .painted_illustration_list import PaintedIllustrationList
161        return PaintedIllustrationList(result)
162
163    def to_svg(self) -> string.String:
164        """Painter to SVG
165
166        Exports everything the painter draws as an SVG document. Supports solid brushes and fills only; custom or dashed brushes, custom fills, and erasing return an error.
167
168        Returns:
169            Graph: A graph node producing a String.
170        """
171        painter_parsed = input_parsers.parse_graph(self)
172        result = _internal.painter_to_svg_internal(painter_parsed)
173        from .string import String
174        return String(result)

Can draw in 2D. Using paths, brushes, fills and transforms to create your artwork.

def execute(self, context):
22    def execute(self, context):
23        return self._inner.execute(context)
def add_ellipse_with_render_style( self, center, dimensions, rotation, render_style, instances) -> Painter:
25    def add_ellipse_with_render_style(self, center, dimensions, rotation, render_style, instances) -> Painter:
26        """Painter Add Ellipse with Render Style
27
28        Adds an ellipse to the painter and draws it with the render style. Set some transforms on the ellipse as well.
29
30        Args:
31            center: Graph of Point2f
32            dimensions: Graph of Vector2f
33            rotation: Graph of Float
34            render_style: Graph of RenderStyle
35            instances: Graph of Transform2List
36
37        Returns:
38            Graph: A graph node producing a Painter.
39        """
40        painter_parsed = input_parsers.parse_graph(self)
41        center_parsed = input_parsers.parse_graph(center)
42        dimensions_parsed = input_parsers.parse_graph(dimensions)
43        rotation_parsed = input_parsers.parse_float_graph(rotation)
44        render_style_parsed = input_parsers.parse_graph(render_style)
45        instances_parsed = input_parsers.parse_graph(instances)
46        result = _internal.painter_add_ellipse_with_render_style_internal(painter_parsed, center_parsed, dimensions_parsed, rotation_parsed, render_style_parsed, instances_parsed)
47        return Painter(result)

Painter Add Ellipse with Render Style

Adds an ellipse to the painter and draws it with the render style. Set some transforms on the ellipse as well.

Args: center: Graph of Point2f dimensions: Graph of Vector2f rotation: Graph of Float render_style: Graph of RenderStyle instances: Graph of Transform2List

Returns: Graph: A graph node producing a Painter.

def add_path_with_render_style(self, path, render_style, instances) -> Painter:
49    def add_path_with_render_style(self, path, render_style, instances) -> Painter:
50        """Painter Add Path with Render Style
51
52        Adds a path to the painter and draws it with the render style. Set some transforms on the path as well.
53
54        Args:
55            path: Graph of Path
56            render_style: Graph of RenderStyle
57            instances: Graph of Transform2List
58
59        Returns:
60            Graph: A graph node producing a Painter.
61        """
62        painter_parsed = input_parsers.parse_graph(self)
63        path_parsed = input_parsers.parse_graph(path)
64        render_style_parsed = input_parsers.parse_graph(render_style)
65        instances_parsed = input_parsers.parse_graph(instances)
66        result = _internal.painter_add_path_with_render_style_internal(painter_parsed, path_parsed, render_style_parsed, instances_parsed)
67        return Painter(result)

Painter Add Path with Render Style

Adds a path to the painter and draws it with the render style. Set some transforms on the path as well.

Args: path: Graph of Path render_style: Graph of RenderStyle instances: Graph of Transform2List

Returns: Graph: A graph node producing a Painter.

def add_rectangle_with_render_style( self, center, dimensions, rotation, render_style, instances) -> Painter:
69    def add_rectangle_with_render_style(self, center, dimensions, rotation, render_style, instances) -> Painter:
70        """Painter Add Rectangle with Render Style
71
72        Adds a rectangle to the painter and draws it with the render style. Set some transforms on the rectangle as well.
73
74        Args:
75            center: Graph of Point2f
76            dimensions: Graph of Vector2f
77            rotation: Graph of Float
78            render_style: Graph of RenderStyle
79            instances: Graph of Transform2List
80
81        Returns:
82            Graph: A graph node producing a Painter.
83        """
84        painter_parsed = input_parsers.parse_graph(self)
85        center_parsed = input_parsers.parse_graph(center)
86        dimensions_parsed = input_parsers.parse_graph(dimensions)
87        rotation_parsed = input_parsers.parse_float_graph(rotation)
88        render_style_parsed = input_parsers.parse_graph(render_style)
89        instances_parsed = input_parsers.parse_graph(instances)
90        result = _internal.painter_add_rectangle_with_render_style_internal(painter_parsed, center_parsed, dimensions_parsed, rotation_parsed, render_style_parsed, instances_parsed)
91        return Painter(result)

Painter Add Rectangle with Render Style

Adds a rectangle to the painter and draws it with the render style. Set some transforms on the rectangle as well.

Args: center: Graph of Point2f dimensions: Graph of Vector2f rotation: Graph of Float render_style: Graph of RenderStyle instances: Graph of Transform2List

Returns: Graph: A graph node producing a Painter.

def add_styled_text(self, styled_string) -> Painter:
 93    def add_styled_text(self, styled_string) -> Painter:
 94        """Painter Add Styled Text
 95
 96        Adds a styled string to the painter, drawn on top of what the painter already contains.
 97
 98        Args:
 99            styled_string: Graph of StyledString
100
101        Returns:
102            Graph: A graph node producing a Painter.
103        """
104        painter_parsed = input_parsers.parse_graph(self)
105        styled_string_parsed = input_parsers.parse_graph(styled_string)
106        result = _internal.painter_add_styled_text_internal(painter_parsed, styled_string_parsed)
107        return Painter(result)

Painter Add Styled Text

Adds a styled string to the painter, drawn on top of what the painter already contains.

Args: styled_string: Graph of StyledString

Returns: Graph: A graph node producing a Painter.

def bounds(self) -> Bounds2f:
109    def bounds(self) -> bounds2f.Bounds2f:
110        """Painter Bounds
111
112        Gets the bounding box of everything the painter draws, including brush radius.
113
114        Returns:
115            Graph: A graph node producing a Bounds2f.
116        """
117        painter_parsed = input_parsers.parse_graph(self)
118        result = _internal.painter_bounds_internal(painter_parsed)
119        from .bounds2f import Bounds2f
120        return Bounds2f(result)

Painter Bounds

Gets the bounding box of everything the painter draws, including brush radius.

Returns: Graph: A graph node producing a Bounds2f.

@staticmethod
def from_painted_illustrations(illustrations) -> Painter:
122    @staticmethod
123    def from_painted_illustrations(illustrations) -> Painter:
124        """Painter From Painted Illustrations
125
126        Creates a painter that draws the painted illustrations in order, from back to front.
127
128        Args:
129            illustrations: Graph of PaintedIllustrationList
130
131        Returns:
132            Graph: A graph node producing a Painter.
133        """
134        illustrations_parsed = input_parsers.parse_graph(illustrations)
135        result = _internal.painter_from_painted_illustrations_internal(illustrations_parsed)
136        return Painter(result)

Painter From Painted Illustrations

Creates a painter that draws the painted illustrations in order, from back to front.

Args: illustrations: Graph of PaintedIllustrationList

Returns: Graph: A graph node producing a Painter.

@staticmethod
def new() -> Painter:
138    @staticmethod
139    def new() -> Painter:
140        """Painter New
141
142        Creates a new painter.
143
144        Returns:
145            Graph: A graph node producing a Painter.
146        """
147        result = _internal.painter_new_internal()
148        return Painter(result)

Painter New

Creates a new painter.

Returns: Graph: A graph node producing a Painter.

def to_painted_illustrations(self) -> PaintedIllustrationList:
150    def to_painted_illustrations(self) -> painted_illustration_list.PaintedIllustrationList:
151        """Painter To Painted Illustrations
152
153        Gets the list of painted illustrations in this painter, in paint order from back to front.
154
155        Returns:
156            Graph: A graph node producing a PaintedIllustrationList.
157        """
158        painter_parsed = input_parsers.parse_graph(self)
159        result = _internal.painter_to_painted_illustrations_internal(painter_parsed)
160        from .painted_illustration_list import PaintedIllustrationList
161        return PaintedIllustrationList(result)

Painter To Painted Illustrations

Gets the list of painted illustrations in this painter, in paint order from back to front.

Returns: Graph: A graph node producing a PaintedIllustrationList.

def to_svg(self) -> String:
163    def to_svg(self) -> string.String:
164        """Painter to SVG
165
166        Exports everything the painter draws as an SVG document. Supports solid brushes and fills only; custom or dashed brushes, custom fills, and erasing return an error.
167
168        Returns:
169            Graph: A graph node producing a String.
170        """
171        painter_parsed = input_parsers.parse_graph(self)
172        result = _internal.painter_to_svg_internal(painter_parsed)
173        from .string import String
174        return String(result)

Painter to SVG

Exports everything the painter draws as an SVG document. Supports solid brushes and fills only; custom or dashed brushes, custom fills, and erasing return an error.

Returns: Graph: A graph node producing a String.

class Path(brushcue.Object):
 17class Path(Object):
 18    """A 2D path that can be used to be rendered."""
 19
 20    def execute(self, context):
 21        return self._inner.execute(context)
 22
 23    def cardinal_cubic_to_point(self, point, tension) -> Path:
 24        """Path Cardinal Cubic to Point
 25
 26        Moves the path from its current point to another with a Cardinal Cubic spline.
 27
 28        Args:
 29            point: Graph of Point2f
 30            tension: Graph of Float
 31
 32        Returns:
 33            Graph: A graph node producing a Path.
 34        """
 35        path_parsed = input_parsers.parse_graph(self)
 36        point_parsed = input_parsers.parse_graph(point)
 37        tension_parsed = input_parsers.parse_float_graph(tension)
 38        result = _internal.path_cardinal_cubic_to_point_internal(path_parsed, point_parsed, tension_parsed)
 39        return Path(result)
 40
 41    def catmull_rom_to_point(self, point) -> Path:
 42        """Path Catmull-Rom to Point
 43
 44        Moves the path from its current point to another with a Catmull-Rom spline.
 45
 46        Args:
 47            point: Graph of Point2f
 48
 49        Returns:
 50            Graph: A graph node producing a Path.
 51        """
 52        path_parsed = input_parsers.parse_graph(self)
 53        point_parsed = input_parsers.parse_graph(point)
 54        result = _internal.path_catmull_rom_to_point_internal(path_parsed, point_parsed)
 55        return Path(result)
 56
 57    def cubic_bezier_to_point(self, control_point_1, control_point_2, point) -> Path:
 58        """Path Cubic Bézier to Point
 59
 60        Moves the path from its current point to another with a cubic Bézier curve shaped by two control points.
 61
 62        Args:
 63            control_point_1: Graph of Point2f
 64            control_point_2: Graph of Point2f
 65            point: Graph of Point2f
 66
 67        Returns:
 68            Graph: A graph node producing a Path.
 69        """
 70        path_parsed = input_parsers.parse_graph(self)
 71        control_point_1_parsed = input_parsers.parse_graph(control_point_1)
 72        control_point_2_parsed = input_parsers.parse_graph(control_point_2)
 73        point_parsed = input_parsers.parse_graph(point)
 74        result = _internal.path_cubic_bezier_to_point_internal(path_parsed, control_point_1_parsed, control_point_2_parsed, point_parsed)
 75        return Path(result)
 76
 77    @staticmethod
 78    def from_commands(commands) -> Path:
 79        """Path From Commands
 80
 81        Creates a path by applying a list of path commands in order. Each subpath must start with a move to command.
 82
 83        Args:
 84            commands: Graph of PathCommandList
 85
 86        Returns:
 87            Graph: A graph node producing a Path.
 88        """
 89        commands_parsed = input_parsers.parse_graph(commands)
 90        result = _internal.path_from_commands_internal(commands_parsed)
 91        return Path(result)
 92
 93    @staticmethod
 94    def from_stylus(path, smooth_factor) -> Path:
 95        """Path From Stylus
 96
 97        Creates a path from a stylus capture.
 98
 99        Args:
100            path: Graph of String
101            smooth_factor: Graph of Float
102
103        Returns:
104            Graph: A graph node producing a Path.
105        """
106        path_parsed = input_parsers.parse_string_graph(path)
107        smooth_factor_parsed = input_parsers.parse_float_graph(smooth_factor)
108        result = _internal.path_from_stylus_internal(path_parsed, smooth_factor_parsed)
109        return Path(result)
110
111    def line_to_point(self, point) -> Path:
112        """Path Line to Point
113
114        Moves the path from its current point to another at another point with a line.
115
116        Args:
117            point: Graph of Point2f
118
119        Returns:
120            Graph: A graph node producing a Path.
121        """
122        path_parsed = input_parsers.parse_graph(self)
123        point_parsed = input_parsers.parse_graph(point)
124        result = _internal.path_line_to_point_internal(path_parsed, point_parsed)
125        return Path(result)
126
127    def move_to_point(self, point) -> Path:
128        """Path Move to Point
129
130        Moves the path to a specified point without drawing anything.
131
132        Args:
133            point: Graph of Point2f
134
135        Returns:
136            Graph: A graph node producing a Path.
137        """
138        path_parsed = input_parsers.parse_graph(self)
139        point_parsed = input_parsers.parse_graph(point)
140        result = _internal.path_move_to_point_internal(path_parsed, point_parsed)
141        return Path(result)
142
143    @staticmethod
144    def new() -> Path:
145        """Path New
146
147        Creates a new empty path.
148
149        Returns:
150            Graph: A graph node producing a Path.
151        """
152        result = _internal.path_new_internal()
153        return Path(result)
154
155    def quadratic_bezier_to_point(self, control_point, point) -> Path:
156        """Path Quadratic Bézier to Point
157
158        Moves the path from its current point to another with a quadratic Bézier curve bent toward a control point.
159
160        Args:
161            control_point: Graph of Point2f
162            point: Graph of Point2f
163
164        Returns:
165            Graph: A graph node producing a Path.
166        """
167        path_parsed = input_parsers.parse_graph(self)
168        control_point_parsed = input_parsers.parse_graph(control_point)
169        point_parsed = input_parsers.parse_graph(point)
170        result = _internal.path_quadratic_bezier_to_point_internal(path_parsed, control_point_parsed, point_parsed)
171        return Path(result)
172
173    def to_commands(self) -> path_command_list.PathCommandList:
174        """Path To Commands
175
176        Creates a list of path commands that rebuild this path.
177
178        Returns:
179            Graph: A graph node producing a PathCommandList.
180        """
181        path_parsed = input_parsers.parse_graph(self)
182        result = _internal.path_to_commands_internal(path_parsed)
183        from .path_command_list import PathCommandList
184        return PathCommandList(result)

A 2D path that can be used to be rendered.

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context)
def cardinal_cubic_to_point(self, point, tension) -> Path:
23    def cardinal_cubic_to_point(self, point, tension) -> Path:
24        """Path Cardinal Cubic to Point
25
26        Moves the path from its current point to another with a Cardinal Cubic spline.
27
28        Args:
29            point: Graph of Point2f
30            tension: Graph of Float
31
32        Returns:
33            Graph: A graph node producing a Path.
34        """
35        path_parsed = input_parsers.parse_graph(self)
36        point_parsed = input_parsers.parse_graph(point)
37        tension_parsed = input_parsers.parse_float_graph(tension)
38        result = _internal.path_cardinal_cubic_to_point_internal(path_parsed, point_parsed, tension_parsed)
39        return Path(result)

Path Cardinal Cubic to Point

Moves the path from its current point to another with a Cardinal Cubic spline.

Args: point: Graph of Point2f tension: Graph of Float

Returns: Graph: A graph node producing a Path.

def catmull_rom_to_point(self, point) -> Path:
41    def catmull_rom_to_point(self, point) -> Path:
42        """Path Catmull-Rom to Point
43
44        Moves the path from its current point to another with a Catmull-Rom spline.
45
46        Args:
47            point: Graph of Point2f
48
49        Returns:
50            Graph: A graph node producing a Path.
51        """
52        path_parsed = input_parsers.parse_graph(self)
53        point_parsed = input_parsers.parse_graph(point)
54        result = _internal.path_catmull_rom_to_point_internal(path_parsed, point_parsed)
55        return Path(result)

Path Catmull-Rom to Point

Moves the path from its current point to another with a Catmull-Rom spline.

Args: point: Graph of Point2f

Returns: Graph: A graph node producing a Path.

def cubic_bezier_to_point(self, control_point_1, control_point_2, point) -> Path:
57    def cubic_bezier_to_point(self, control_point_1, control_point_2, point) -> Path:
58        """Path Cubic Bézier to Point
59
60        Moves the path from its current point to another with a cubic Bézier curve shaped by two control points.
61
62        Args:
63            control_point_1: Graph of Point2f
64            control_point_2: Graph of Point2f
65            point: Graph of Point2f
66
67        Returns:
68            Graph: A graph node producing a Path.
69        """
70        path_parsed = input_parsers.parse_graph(self)
71        control_point_1_parsed = input_parsers.parse_graph(control_point_1)
72        control_point_2_parsed = input_parsers.parse_graph(control_point_2)
73        point_parsed = input_parsers.parse_graph(point)
74        result = _internal.path_cubic_bezier_to_point_internal(path_parsed, control_point_1_parsed, control_point_2_parsed, point_parsed)
75        return Path(result)

Path Cubic Bézier to Point

Moves the path from its current point to another with a cubic Bézier curve shaped by two control points.

Args: control_point_1: Graph of Point2f control_point_2: Graph of Point2f point: Graph of Point2f

Returns: Graph: A graph node producing a Path.

@staticmethod
def from_commands(commands) -> Path:
77    @staticmethod
78    def from_commands(commands) -> Path:
79        """Path From Commands
80
81        Creates a path by applying a list of path commands in order. Each subpath must start with a move to command.
82
83        Args:
84            commands: Graph of PathCommandList
85
86        Returns:
87            Graph: A graph node producing a Path.
88        """
89        commands_parsed = input_parsers.parse_graph(commands)
90        result = _internal.path_from_commands_internal(commands_parsed)
91        return Path(result)

Path From Commands

Creates a path by applying a list of path commands in order. Each subpath must start with a move to command.

Args: commands: Graph of PathCommandList

Returns: Graph: A graph node producing a Path.

@staticmethod
def from_stylus(path, smooth_factor) -> Path:
 93    @staticmethod
 94    def from_stylus(path, smooth_factor) -> Path:
 95        """Path From Stylus
 96
 97        Creates a path from a stylus capture.
 98
 99        Args:
100            path: Graph of String
101            smooth_factor: Graph of Float
102
103        Returns:
104            Graph: A graph node producing a Path.
105        """
106        path_parsed = input_parsers.parse_string_graph(path)
107        smooth_factor_parsed = input_parsers.parse_float_graph(smooth_factor)
108        result = _internal.path_from_stylus_internal(path_parsed, smooth_factor_parsed)
109        return Path(result)

Path From Stylus

Creates a path from a stylus capture.

Args: path: Graph of String smooth_factor: Graph of Float

Returns: Graph: A graph node producing a Path.

def line_to_point(self, point) -> Path:
111    def line_to_point(self, point) -> Path:
112        """Path Line to Point
113
114        Moves the path from its current point to another at another point with a line.
115
116        Args:
117            point: Graph of Point2f
118
119        Returns:
120            Graph: A graph node producing a Path.
121        """
122        path_parsed = input_parsers.parse_graph(self)
123        point_parsed = input_parsers.parse_graph(point)
124        result = _internal.path_line_to_point_internal(path_parsed, point_parsed)
125        return Path(result)

Path Line to Point

Moves the path from its current point to another at another point with a line.

Args: point: Graph of Point2f

Returns: Graph: A graph node producing a Path.

def move_to_point(self, point) -> Path:
127    def move_to_point(self, point) -> Path:
128        """Path Move to Point
129
130        Moves the path to a specified point without drawing anything.
131
132        Args:
133            point: Graph of Point2f
134
135        Returns:
136            Graph: A graph node producing a Path.
137        """
138        path_parsed = input_parsers.parse_graph(self)
139        point_parsed = input_parsers.parse_graph(point)
140        result = _internal.path_move_to_point_internal(path_parsed, point_parsed)
141        return Path(result)

Path Move to Point

Moves the path to a specified point without drawing anything.

Args: point: Graph of Point2f

Returns: Graph: A graph node producing a Path.

@staticmethod
def new() -> Path:
143    @staticmethod
144    def new() -> Path:
145        """Path New
146
147        Creates a new empty path.
148
149        Returns:
150            Graph: A graph node producing a Path.
151        """
152        result = _internal.path_new_internal()
153        return Path(result)

Path New

Creates a new empty path.

Returns: Graph: A graph node producing a Path.

def quadratic_bezier_to_point(self, control_point, point) -> Path:
155    def quadratic_bezier_to_point(self, control_point, point) -> Path:
156        """Path Quadratic Bézier to Point
157
158        Moves the path from its current point to another with a quadratic Bézier curve bent toward a control point.
159
160        Args:
161            control_point: Graph of Point2f
162            point: Graph of Point2f
163
164        Returns:
165            Graph: A graph node producing a Path.
166        """
167        path_parsed = input_parsers.parse_graph(self)
168        control_point_parsed = input_parsers.parse_graph(control_point)
169        point_parsed = input_parsers.parse_graph(point)
170        result = _internal.path_quadratic_bezier_to_point_internal(path_parsed, control_point_parsed, point_parsed)
171        return Path(result)

Path Quadratic Bézier to Point

Moves the path from its current point to another with a quadratic Bézier curve bent toward a control point.

Args: control_point: Graph of Point2f point: Graph of Point2f

Returns: Graph: A graph node producing a Path.

def to_commands(self) -> PathCommandList:
173    def to_commands(self) -> path_command_list.PathCommandList:
174        """Path To Commands
175
176        Creates a list of path commands that rebuild this path.
177
178        Returns:
179            Graph: A graph node producing a PathCommandList.
180        """
181        path_parsed = input_parsers.parse_graph(self)
182        result = _internal.path_to_commands_internal(path_parsed)
183        from .path_command_list import PathCommandList
184        return PathCommandList(result)

Path To Commands

Creates a list of path commands that rebuild this path.

Returns: Graph: A graph node producing a PathCommandList.

class PathCommand(brushcue.Object):
 19class PathCommand(Object):
 20    """A command to modify a 2D path"""
 21
 22    def execute(self, context):
 23        return self._inner.execute(context)
 24
 25    def altitude_angle(self) -> float.Float:
 26        """Path Command Altitude Angle
 27
 28        Gets the altitude angle of this path command's end point, in radians.
 29
 30        Returns:
 31            Graph: A graph node producing a Float.
 32        """
 33        command_parsed = input_parsers.parse_graph(self)
 34        result = _internal.path_command_altitude_angle_internal(command_parsed)
 35        from .float import Float
 36        return Float(result)
 37
 38    def azimuth_angle(self) -> float.Float:
 39        """Path Command Azimuth Angle
 40
 41        Gets the azimuth angle of this path command's end point, in radians.
 42
 43        Returns:
 44            Graph: A graph node producing a Float.
 45        """
 46        command_parsed = input_parsers.parse_graph(self)
 47        result = _internal.path_command_azimuth_angle_internal(command_parsed)
 48        from .float import Float
 49        return Float(result)
 50
 51    @staticmethod
 52    def cardinal_cubic_to_point(coordinate, time, pressure, azimuth_angle, altitude_angle, tension) -> PathCommand:
 53        """Path Command Cardinal Cubic To
 54
 55        A command for a path to draw a Cardinal Cubic spline to a point.
 56
 57        Args:
 58            coordinate: Graph of Point2f
 59            time: Graph of Float
 60            pressure: Graph of Float
 61            azimuth_angle: Graph of Float
 62            altitude_angle: Graph of Float
 63            tension: Graph of Float
 64
 65        Returns:
 66            Graph: A graph node producing a PathCommand.
 67        """
 68        coordinate_parsed = input_parsers.parse_graph(coordinate)
 69        time_parsed = input_parsers.parse_float_graph(time)
 70        pressure_parsed = input_parsers.parse_float_graph(pressure)
 71        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
 72        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
 73        tension_parsed = input_parsers.parse_float_graph(tension)
 74        result = _internal.path_command_cardinal_cubic_to_point_internal(coordinate_parsed, time_parsed, pressure_parsed, azimuth_angle_parsed, altitude_angle_parsed, tension_parsed)
 75        return PathCommand(result)
 76
 77    @staticmethod
 78    def catmull_rom_to_point(coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
 79        """Path Command Catmull-Rom To
 80
 81        A command for a path to draw a Catmull-Rom spline to a point.
 82
 83        Args:
 84            coordinate: Graph of Point2f
 85            time: Graph of Float
 86            pressure: Graph of Float
 87            azimuth_angle: Graph of Float
 88            altitude_angle: Graph of Float
 89
 90        Returns:
 91            Graph: A graph node producing a PathCommand.
 92        """
 93        coordinate_parsed = input_parsers.parse_graph(coordinate)
 94        time_parsed = input_parsers.parse_float_graph(time)
 95        pressure_parsed = input_parsers.parse_float_graph(pressure)
 96        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
 97        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
 98        result = _internal.path_command_catmull_rom_to_point_internal(coordinate_parsed, time_parsed, pressure_parsed, azimuth_angle_parsed, altitude_angle_parsed)
 99        return PathCommand(result)
100
101    def control_point(self) -> point2f.Point2f:
102        """Path Command Control Point
103
104        Gets the control point of a quadratic Bézier command. Only works on quadratic Bézier commands and fails on any other type.
105
106        Returns:
107            Graph: A graph node producing a Point2f.
108        """
109        command_parsed = input_parsers.parse_graph(self)
110        result = _internal.path_command_control_point_internal(command_parsed)
111        from .point2f import Point2f
112        return Point2f(result)
113
114    def control_point_1(self) -> point2f.Point2f:
115        """Path Command Control Point 1
116
117        Gets the first control point of a cubic Bézier command. Only works on cubic Bézier commands and fails on any other type.
118
119        Returns:
120            Graph: A graph node producing a Point2f.
121        """
122        command_parsed = input_parsers.parse_graph(self)
123        result = _internal.path_command_control_point1_internal(command_parsed)
124        from .point2f import Point2f
125        return Point2f(result)
126
127    def control_point_2(self) -> point2f.Point2f:
128        """Path Command Control Point 2
129
130        Gets the second control point of a cubic Bézier command. Only works on cubic Bézier commands and fails on any other type.
131
132        Returns:
133            Graph: A graph node producing a Point2f.
134        """
135        command_parsed = input_parsers.parse_graph(self)
136        result = _internal.path_command_control_point2_internal(command_parsed)
137        from .point2f import Point2f
138        return Point2f(result)
139
140    def coordinate(self) -> point2f.Point2f:
141        """Path Command Coordinate
142
143        Gets the coordinate of this path command's end point.
144
145        Returns:
146            Graph: A graph node producing a Point2f.
147        """
148        command_parsed = input_parsers.parse_graph(self)
149        result = _internal.path_command_coordinate_internal(command_parsed)
150        from .point2f import Point2f
151        return Point2f(result)
152
153    @staticmethod
154    def cubic_bezier_to_point(control_point_1, control_point_2, coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
155        """Path Command Cubic Bézier To
156
157        A command for a path to draw a cubic Bézier curve to a point, shaped by two control points.
158
159        Args:
160            control_point_1: Graph of Point2f
161            control_point_2: Graph of Point2f
162            coordinate: Graph of Point2f
163            time: Graph of Float
164            pressure: Graph of Float
165            azimuth_angle: Graph of Float
166            altitude_angle: Graph of Float
167
168        Returns:
169            Graph: A graph node producing a PathCommand.
170        """
171        control_point_1_parsed = input_parsers.parse_graph(control_point_1)
172        control_point_2_parsed = input_parsers.parse_graph(control_point_2)
173        coordinate_parsed = input_parsers.parse_graph(coordinate)
174        time_parsed = input_parsers.parse_float_graph(time)
175        pressure_parsed = input_parsers.parse_float_graph(pressure)
176        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
177        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
178        result = _internal.path_command_cubic_bezier_to_point_internal(control_point_1_parsed, control_point_2_parsed, coordinate_parsed, time_parsed, pressure_parsed, azimuth_angle_parsed, altitude_angle_parsed)
179        return PathCommand(result)
180
181    def is_cardinal_cubic(self) -> bool.Bool:
182        """Path Command Is Cardinal Cubic
183
184        Returns whether this path command is a Cardinal Cubic command.
185
186        Returns:
187            Graph: A graph node producing a Bool.
188        """
189        command_parsed = input_parsers.parse_graph(self)
190        result = _internal.path_command_is_cardinal_cubic_internal(command_parsed)
191        from .bool import Bool
192        return Bool(result)
193
194    def is_catmull_rom(self) -> bool.Bool:
195        """Path Command Is Catmull-Rom
196
197        Returns whether this path command is a Catmull-Rom command.
198
199        Returns:
200            Graph: A graph node producing a Bool.
201        """
202        command_parsed = input_parsers.parse_graph(self)
203        result = _internal.path_command_is_catmull_rom_internal(command_parsed)
204        from .bool import Bool
205        return Bool(result)
206
207    def is_cubic_bezier(self) -> bool.Bool:
208        """Path Command Is Cubic Bézier
209
210        Returns whether this path command is a cubic Bézier command.
211
212        Returns:
213            Graph: A graph node producing a Bool.
214        """
215        command_parsed = input_parsers.parse_graph(self)
216        result = _internal.path_command_is_cubic_bezier_internal(command_parsed)
217        from .bool import Bool
218        return Bool(result)
219
220    def is_line(self) -> bool.Bool:
221        """Path Command Is Line
222
223        Returns whether this path command is a line to command.
224
225        Returns:
226            Graph: A graph node producing a Bool.
227        """
228        command_parsed = input_parsers.parse_graph(self)
229        result = _internal.path_command_is_line_internal(command_parsed)
230        from .bool import Bool
231        return Bool(result)
232
233    def is_move(self) -> bool.Bool:
234        """Path Command Is Move
235
236        Returns whether this path command is a move to command.
237
238        Returns:
239            Graph: A graph node producing a Bool.
240        """
241        command_parsed = input_parsers.parse_graph(self)
242        result = _internal.path_command_is_move_internal(command_parsed)
243        from .bool import Bool
244        return Bool(result)
245
246    def is_quadratic_bezier(self) -> bool.Bool:
247        """Path Command Is Quadratic Bézier
248
249        Returns whether this path command is a quadratic Bézier command.
250
251        Returns:
252            Graph: A graph node producing a Bool.
253        """
254        command_parsed = input_parsers.parse_graph(self)
255        result = _internal.path_command_is_quadratic_bezier_internal(command_parsed)
256        from .bool import Bool
257        return Bool(result)
258
259    @staticmethod
260    def line_to_point(coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
261        """Path Command Line To
262
263        A command for a path to draw a line to a point.
264
265        Args:
266            coordinate: Graph of Point2f
267            time: Graph of Float
268            pressure: Graph of Float
269            azimuth_angle: Graph of Float
270            altitude_angle: Graph of Float
271
272        Returns:
273            Graph: A graph node producing a PathCommand.
274        """
275        coordinate_parsed = input_parsers.parse_graph(coordinate)
276        time_parsed = input_parsers.parse_float_graph(time)
277        pressure_parsed = input_parsers.parse_float_graph(pressure)
278        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
279        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
280        result = _internal.path_command_line_to_point_internal(coordinate_parsed, time_parsed, pressure_parsed, azimuth_angle_parsed, altitude_angle_parsed)
281        return PathCommand(result)
282
283    @staticmethod
284    def move_to_point(coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
285        """Path Command Move To
286
287        A command for a path to move to a point.
288
289        Args:
290            coordinate: Graph of Point2f
291            time: Graph of Float
292            pressure: Graph of Float
293            azimuth_angle: Graph of Float
294            altitude_angle: Graph of Float
295
296        Returns:
297            Graph: A graph node producing a PathCommand.
298        """
299        coordinate_parsed = input_parsers.parse_graph(coordinate)
300        time_parsed = input_parsers.parse_float_graph(time)
301        pressure_parsed = input_parsers.parse_float_graph(pressure)
302        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
303        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
304        result = _internal.path_command_move_to_point_internal(coordinate_parsed, time_parsed, pressure_parsed, azimuth_angle_parsed, altitude_angle_parsed)
305        return PathCommand(result)
306
307    def pressure(self) -> float.Float:
308        """Path Command Pressure
309
310        Gets the pressure of this path command's end point, from 0 to 1.
311
312        Returns:
313            Graph: A graph node producing a Float.
314        """
315        command_parsed = input_parsers.parse_graph(self)
316        result = _internal.path_command_pressure_internal(command_parsed)
317        from .float import Float
318        return Float(result)
319
320    @staticmethod
321    def quadratic_bezier_to_point(control_point, coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
322        """Path Command Quadratic Bézier To
323
324        A command for a path to draw a quadratic Bézier curve to a point, bent toward a control point.
325
326        Args:
327            control_point: Graph of Point2f
328            coordinate: Graph of Point2f
329            time: Graph of Float
330            pressure: Graph of Float
331            azimuth_angle: Graph of Float
332            altitude_angle: Graph of Float
333
334        Returns:
335            Graph: A graph node producing a PathCommand.
336        """
337        control_point_parsed = input_parsers.parse_graph(control_point)
338        coordinate_parsed = input_parsers.parse_graph(coordinate)
339        time_parsed = input_parsers.parse_float_graph(time)
340        pressure_parsed = input_parsers.parse_float_graph(pressure)
341        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
342        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
343        result = _internal.path_command_quadratic_bezier_to_point_internal(control_point_parsed, coordinate_parsed, time_parsed, pressure_parsed, azimuth_angle_parsed, altitude_angle_parsed)
344        return PathCommand(result)
345
346    def time(self) -> float.Float:
347        """Path Command Time
348
349        Gets the time of this path command's end point.
350
351        Returns:
352            Graph: A graph node producing a Float.
353        """
354        command_parsed = input_parsers.parse_graph(self)
355        result = _internal.path_command_time_internal(command_parsed)
356        from .float import Float
357        return Float(result)
358
359    def with_altitude_angle(self, altitude_angle) -> PathCommand:
360        """Path Command With Altitude Angle
361
362        Returns this path command with its end point's altitude angle replaced.
363
364        Args:
365            altitude_angle: Graph of Float
366
367        Returns:
368            Graph: A graph node producing a PathCommand.
369        """
370        command_parsed = input_parsers.parse_graph(self)
371        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
372        result = _internal.path_command_with_altitude_angle_internal(command_parsed, altitude_angle_parsed)
373        return PathCommand(result)
374
375    def with_azimuth_angle(self, azimuth_angle) -> PathCommand:
376        """Path Command With Azimuth Angle
377
378        Returns this path command with its end point's azimuth angle replaced.
379
380        Args:
381            azimuth_angle: Graph of Float
382
383        Returns:
384            Graph: A graph node producing a PathCommand.
385        """
386        command_parsed = input_parsers.parse_graph(self)
387        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
388        result = _internal.path_command_with_azimuth_angle_internal(command_parsed, azimuth_angle_parsed)
389        return PathCommand(result)
390
391    def with_control_point(self, control_point) -> PathCommand:
392        """Path Command With Control Point
393
394        Returns this quadratic Bézier command with its control point replaced. Only works on quadratic Bézier commands and fails on any other type.
395
396        Args:
397            control_point: Graph of Point2f
398
399        Returns:
400            Graph: A graph node producing a PathCommand.
401        """
402        command_parsed = input_parsers.parse_graph(self)
403        control_point_parsed = input_parsers.parse_graph(control_point)
404        result = _internal.path_command_with_control_point_internal(command_parsed, control_point_parsed)
405        return PathCommand(result)
406
407    def with_control_point_1(self, control_point_1) -> PathCommand:
408        """Path Command With Control Point 1
409
410        Returns this cubic Bézier command with its first control point replaced. Only works on cubic Bézier commands and fails on any other type.
411
412        Args:
413            control_point_1: Graph of Point2f
414
415        Returns:
416            Graph: A graph node producing a PathCommand.
417        """
418        command_parsed = input_parsers.parse_graph(self)
419        control_point_1_parsed = input_parsers.parse_graph(control_point_1)
420        result = _internal.path_command_with_control_point1_internal(command_parsed, control_point_1_parsed)
421        return PathCommand(result)
422
423    def with_control_point_2(self, control_point_2) -> PathCommand:
424        """Path Command With Control Point 2
425
426        Returns this cubic Bézier command with its second control point replaced. Only works on cubic Bézier commands and fails on any other type.
427
428        Args:
429            control_point_2: Graph of Point2f
430
431        Returns:
432            Graph: A graph node producing a PathCommand.
433        """
434        command_parsed = input_parsers.parse_graph(self)
435        control_point_2_parsed = input_parsers.parse_graph(control_point_2)
436        result = _internal.path_command_with_control_point2_internal(command_parsed, control_point_2_parsed)
437        return PathCommand(result)
438
439    def with_coordinate(self, coordinate) -> PathCommand:
440        """Path Command With Coordinate
441
442        Returns this path command with its end point's coordinate replaced.
443
444        Args:
445            coordinate: Graph of Point2f
446
447        Returns:
448            Graph: A graph node producing a PathCommand.
449        """
450        command_parsed = input_parsers.parse_graph(self)
451        coordinate_parsed = input_parsers.parse_graph(coordinate)
452        result = _internal.path_command_with_coordinate_internal(command_parsed, coordinate_parsed)
453        return PathCommand(result)
454
455    def with_pressure(self, pressure) -> PathCommand:
456        """Path Command With Pressure
457
458        Returns this path command with its end point's pressure replaced.
459
460        Args:
461            pressure: Graph of Float
462
463        Returns:
464            Graph: A graph node producing a PathCommand.
465        """
466        command_parsed = input_parsers.parse_graph(self)
467        pressure_parsed = input_parsers.parse_float_graph(pressure)
468        result = _internal.path_command_with_pressure_internal(command_parsed, pressure_parsed)
469        return PathCommand(result)
470
471    def with_time(self, time) -> PathCommand:
472        """Path Command With Time
473
474        Returns this path command with its end point's time replaced.
475
476        Args:
477            time: Graph of Float
478
479        Returns:
480            Graph: A graph node producing a PathCommand.
481        """
482        command_parsed = input_parsers.parse_graph(self)
483        time_parsed = input_parsers.parse_float_graph(time)
484        result = _internal.path_command_with_time_internal(command_parsed, time_parsed)
485        return PathCommand(result)

A command to modify a 2D path

def execute(self, context):
22    def execute(self, context):
23        return self._inner.execute(context)
def altitude_angle(self) -> Float:
25    def altitude_angle(self) -> float.Float:
26        """Path Command Altitude Angle
27
28        Gets the altitude angle of this path command's end point, in radians.
29
30        Returns:
31            Graph: A graph node producing a Float.
32        """
33        command_parsed = input_parsers.parse_graph(self)
34        result = _internal.path_command_altitude_angle_internal(command_parsed)
35        from .float import Float
36        return Float(result)

Path Command Altitude Angle

Gets the altitude angle of this path command's end point, in radians.

Returns: Graph: A graph node producing a Float.

def azimuth_angle(self) -> Float:
38    def azimuth_angle(self) -> float.Float:
39        """Path Command Azimuth Angle
40
41        Gets the azimuth angle of this path command's end point, in radians.
42
43        Returns:
44            Graph: A graph node producing a Float.
45        """
46        command_parsed = input_parsers.parse_graph(self)
47        result = _internal.path_command_azimuth_angle_internal(command_parsed)
48        from .float import Float
49        return Float(result)

Path Command Azimuth Angle

Gets the azimuth angle of this path command's end point, in radians.

Returns: Graph: A graph node producing a Float.

@staticmethod
def cardinal_cubic_to_point( coordinate, time, pressure, azimuth_angle, altitude_angle, tension) -> PathCommand:
51    @staticmethod
52    def cardinal_cubic_to_point(coordinate, time, pressure, azimuth_angle, altitude_angle, tension) -> PathCommand:
53        """Path Command Cardinal Cubic To
54
55        A command for a path to draw a Cardinal Cubic spline to a point.
56
57        Args:
58            coordinate: Graph of Point2f
59            time: Graph of Float
60            pressure: Graph of Float
61            azimuth_angle: Graph of Float
62            altitude_angle: Graph of Float
63            tension: Graph of Float
64
65        Returns:
66            Graph: A graph node producing a PathCommand.
67        """
68        coordinate_parsed = input_parsers.parse_graph(coordinate)
69        time_parsed = input_parsers.parse_float_graph(time)
70        pressure_parsed = input_parsers.parse_float_graph(pressure)
71        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
72        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
73        tension_parsed = input_parsers.parse_float_graph(tension)
74        result = _internal.path_command_cardinal_cubic_to_point_internal(coordinate_parsed, time_parsed, pressure_parsed, azimuth_angle_parsed, altitude_angle_parsed, tension_parsed)
75        return PathCommand(result)

Path Command Cardinal Cubic To

A command for a path to draw a Cardinal Cubic spline to a point.

Args: coordinate: Graph of Point2f time: Graph of Float pressure: Graph of Float azimuth_angle: Graph of Float altitude_angle: Graph of Float tension: Graph of Float

Returns: Graph: A graph node producing a PathCommand.

@staticmethod
def catmull_rom_to_point( coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
77    @staticmethod
78    def catmull_rom_to_point(coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
79        """Path Command Catmull-Rom To
80
81        A command for a path to draw a Catmull-Rom spline to a point.
82
83        Args:
84            coordinate: Graph of Point2f
85            time: Graph of Float
86            pressure: Graph of Float
87            azimuth_angle: Graph of Float
88            altitude_angle: Graph of Float
89
90        Returns:
91            Graph: A graph node producing a PathCommand.
92        """
93        coordinate_parsed = input_parsers.parse_graph(coordinate)
94        time_parsed = input_parsers.parse_float_graph(time)
95        pressure_parsed = input_parsers.parse_float_graph(pressure)
96        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
97        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
98        result = _internal.path_command_catmull_rom_to_point_internal(coordinate_parsed, time_parsed, pressure_parsed, azimuth_angle_parsed, altitude_angle_parsed)
99        return PathCommand(result)

Path Command Catmull-Rom To

A command for a path to draw a Catmull-Rom spline to a point.

Args: coordinate: Graph of Point2f time: Graph of Float pressure: Graph of Float azimuth_angle: Graph of Float altitude_angle: Graph of Float

Returns: Graph: A graph node producing a PathCommand.

def control_point(self) -> Point2f:
101    def control_point(self) -> point2f.Point2f:
102        """Path Command Control Point
103
104        Gets the control point of a quadratic Bézier command. Only works on quadratic Bézier commands and fails on any other type.
105
106        Returns:
107            Graph: A graph node producing a Point2f.
108        """
109        command_parsed = input_parsers.parse_graph(self)
110        result = _internal.path_command_control_point_internal(command_parsed)
111        from .point2f import Point2f
112        return Point2f(result)

Path Command Control Point

Gets the control point of a quadratic Bézier command. Only works on quadratic Bézier commands and fails on any other type.

Returns: Graph: A graph node producing a Point2f.

def control_point_1(self) -> Point2f:
114    def control_point_1(self) -> point2f.Point2f:
115        """Path Command Control Point 1
116
117        Gets the first control point of a cubic Bézier command. Only works on cubic Bézier commands and fails on any other type.
118
119        Returns:
120            Graph: A graph node producing a Point2f.
121        """
122        command_parsed = input_parsers.parse_graph(self)
123        result = _internal.path_command_control_point1_internal(command_parsed)
124        from .point2f import Point2f
125        return Point2f(result)

Path Command Control Point 1

Gets the first control point of a cubic Bézier command. Only works on cubic Bézier commands and fails on any other type.

Returns: Graph: A graph node producing a Point2f.

def control_point_2(self) -> Point2f:
127    def control_point_2(self) -> point2f.Point2f:
128        """Path Command Control Point 2
129
130        Gets the second control point of a cubic Bézier command. Only works on cubic Bézier commands and fails on any other type.
131
132        Returns:
133            Graph: A graph node producing a Point2f.
134        """
135        command_parsed = input_parsers.parse_graph(self)
136        result = _internal.path_command_control_point2_internal(command_parsed)
137        from .point2f import Point2f
138        return Point2f(result)

Path Command Control Point 2

Gets the second control point of a cubic Bézier command. Only works on cubic Bézier commands and fails on any other type.

Returns: Graph: A graph node producing a Point2f.

def coordinate(self) -> Point2f:
140    def coordinate(self) -> point2f.Point2f:
141        """Path Command Coordinate
142
143        Gets the coordinate of this path command's end point.
144
145        Returns:
146            Graph: A graph node producing a Point2f.
147        """
148        command_parsed = input_parsers.parse_graph(self)
149        result = _internal.path_command_coordinate_internal(command_parsed)
150        from .point2f import Point2f
151        return Point2f(result)

Path Command Coordinate

Gets the coordinate of this path command's end point.

Returns: Graph: A graph node producing a Point2f.

@staticmethod
def cubic_bezier_to_point( control_point_1, control_point_2, coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
153    @staticmethod
154    def cubic_bezier_to_point(control_point_1, control_point_2, coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
155        """Path Command Cubic Bézier To
156
157        A command for a path to draw a cubic Bézier curve to a point, shaped by two control points.
158
159        Args:
160            control_point_1: Graph of Point2f
161            control_point_2: Graph of Point2f
162            coordinate: Graph of Point2f
163            time: Graph of Float
164            pressure: Graph of Float
165            azimuth_angle: Graph of Float
166            altitude_angle: Graph of Float
167
168        Returns:
169            Graph: A graph node producing a PathCommand.
170        """
171        control_point_1_parsed = input_parsers.parse_graph(control_point_1)
172        control_point_2_parsed = input_parsers.parse_graph(control_point_2)
173        coordinate_parsed = input_parsers.parse_graph(coordinate)
174        time_parsed = input_parsers.parse_float_graph(time)
175        pressure_parsed = input_parsers.parse_float_graph(pressure)
176        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
177        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
178        result = _internal.path_command_cubic_bezier_to_point_internal(control_point_1_parsed, control_point_2_parsed, coordinate_parsed, time_parsed, pressure_parsed, azimuth_angle_parsed, altitude_angle_parsed)
179        return PathCommand(result)

Path Command Cubic Bézier To

A command for a path to draw a cubic Bézier curve to a point, shaped by two control points.

Args: control_point_1: Graph of Point2f control_point_2: Graph of Point2f coordinate: Graph of Point2f time: Graph of Float pressure: Graph of Float azimuth_angle: Graph of Float altitude_angle: Graph of Float

Returns: Graph: A graph node producing a PathCommand.

def is_cardinal_cubic(self) -> Bool:
181    def is_cardinal_cubic(self) -> bool.Bool:
182        """Path Command Is Cardinal Cubic
183
184        Returns whether this path command is a Cardinal Cubic command.
185
186        Returns:
187            Graph: A graph node producing a Bool.
188        """
189        command_parsed = input_parsers.parse_graph(self)
190        result = _internal.path_command_is_cardinal_cubic_internal(command_parsed)
191        from .bool import Bool
192        return Bool(result)

Path Command Is Cardinal Cubic

Returns whether this path command is a Cardinal Cubic command.

Returns: Graph: A graph node producing a Bool.

def is_catmull_rom(self) -> Bool:
194    def is_catmull_rom(self) -> bool.Bool:
195        """Path Command Is Catmull-Rom
196
197        Returns whether this path command is a Catmull-Rom command.
198
199        Returns:
200            Graph: A graph node producing a Bool.
201        """
202        command_parsed = input_parsers.parse_graph(self)
203        result = _internal.path_command_is_catmull_rom_internal(command_parsed)
204        from .bool import Bool
205        return Bool(result)

Path Command Is Catmull-Rom

Returns whether this path command is a Catmull-Rom command.

Returns: Graph: A graph node producing a Bool.

def is_cubic_bezier(self) -> Bool:
207    def is_cubic_bezier(self) -> bool.Bool:
208        """Path Command Is Cubic Bézier
209
210        Returns whether this path command is a cubic Bézier command.
211
212        Returns:
213            Graph: A graph node producing a Bool.
214        """
215        command_parsed = input_parsers.parse_graph(self)
216        result = _internal.path_command_is_cubic_bezier_internal(command_parsed)
217        from .bool import Bool
218        return Bool(result)

Path Command Is Cubic Bézier

Returns whether this path command is a cubic Bézier command.

Returns: Graph: A graph node producing a Bool.

def is_line(self) -> Bool:
220    def is_line(self) -> bool.Bool:
221        """Path Command Is Line
222
223        Returns whether this path command is a line to command.
224
225        Returns:
226            Graph: A graph node producing a Bool.
227        """
228        command_parsed = input_parsers.parse_graph(self)
229        result = _internal.path_command_is_line_internal(command_parsed)
230        from .bool import Bool
231        return Bool(result)

Path Command Is Line

Returns whether this path command is a line to command.

Returns: Graph: A graph node producing a Bool.

def is_move(self) -> Bool:
233    def is_move(self) -> bool.Bool:
234        """Path Command Is Move
235
236        Returns whether this path command is a move to command.
237
238        Returns:
239            Graph: A graph node producing a Bool.
240        """
241        command_parsed = input_parsers.parse_graph(self)
242        result = _internal.path_command_is_move_internal(command_parsed)
243        from .bool import Bool
244        return Bool(result)

Path Command Is Move

Returns whether this path command is a move to command.

Returns: Graph: A graph node producing a Bool.

def is_quadratic_bezier(self) -> Bool:
246    def is_quadratic_bezier(self) -> bool.Bool:
247        """Path Command Is Quadratic Bézier
248
249        Returns whether this path command is a quadratic Bézier command.
250
251        Returns:
252            Graph: A graph node producing a Bool.
253        """
254        command_parsed = input_parsers.parse_graph(self)
255        result = _internal.path_command_is_quadratic_bezier_internal(command_parsed)
256        from .bool import Bool
257        return Bool(result)

Path Command Is Quadratic Bézier

Returns whether this path command is a quadratic Bézier command.

Returns: Graph: A graph node producing a Bool.

@staticmethod
def line_to_point( coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
259    @staticmethod
260    def line_to_point(coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
261        """Path Command Line To
262
263        A command for a path to draw a line to a point.
264
265        Args:
266            coordinate: Graph of Point2f
267            time: Graph of Float
268            pressure: Graph of Float
269            azimuth_angle: Graph of Float
270            altitude_angle: Graph of Float
271
272        Returns:
273            Graph: A graph node producing a PathCommand.
274        """
275        coordinate_parsed = input_parsers.parse_graph(coordinate)
276        time_parsed = input_parsers.parse_float_graph(time)
277        pressure_parsed = input_parsers.parse_float_graph(pressure)
278        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
279        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
280        result = _internal.path_command_line_to_point_internal(coordinate_parsed, time_parsed, pressure_parsed, azimuth_angle_parsed, altitude_angle_parsed)
281        return PathCommand(result)

Path Command Line To

A command for a path to draw a line to a point.

Args: coordinate: Graph of Point2f time: Graph of Float pressure: Graph of Float azimuth_angle: Graph of Float altitude_angle: Graph of Float

Returns: Graph: A graph node producing a PathCommand.

@staticmethod
def move_to_point( coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
283    @staticmethod
284    def move_to_point(coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
285        """Path Command Move To
286
287        A command for a path to move to a point.
288
289        Args:
290            coordinate: Graph of Point2f
291            time: Graph of Float
292            pressure: Graph of Float
293            azimuth_angle: Graph of Float
294            altitude_angle: Graph of Float
295
296        Returns:
297            Graph: A graph node producing a PathCommand.
298        """
299        coordinate_parsed = input_parsers.parse_graph(coordinate)
300        time_parsed = input_parsers.parse_float_graph(time)
301        pressure_parsed = input_parsers.parse_float_graph(pressure)
302        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
303        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
304        result = _internal.path_command_move_to_point_internal(coordinate_parsed, time_parsed, pressure_parsed, azimuth_angle_parsed, altitude_angle_parsed)
305        return PathCommand(result)

Path Command Move To

A command for a path to move to a point.

Args: coordinate: Graph of Point2f time: Graph of Float pressure: Graph of Float azimuth_angle: Graph of Float altitude_angle: Graph of Float

Returns: Graph: A graph node producing a PathCommand.

def pressure(self) -> Float:
307    def pressure(self) -> float.Float:
308        """Path Command Pressure
309
310        Gets the pressure of this path command's end point, from 0 to 1.
311
312        Returns:
313            Graph: A graph node producing a Float.
314        """
315        command_parsed = input_parsers.parse_graph(self)
316        result = _internal.path_command_pressure_internal(command_parsed)
317        from .float import Float
318        return Float(result)

Path Command Pressure

Gets the pressure of this path command's end point, from 0 to 1.

Returns: Graph: A graph node producing a Float.

@staticmethod
def quadratic_bezier_to_point( control_point, coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
320    @staticmethod
321    def quadratic_bezier_to_point(control_point, coordinate, time, pressure, azimuth_angle, altitude_angle) -> PathCommand:
322        """Path Command Quadratic Bézier To
323
324        A command for a path to draw a quadratic Bézier curve to a point, bent toward a control point.
325
326        Args:
327            control_point: Graph of Point2f
328            coordinate: Graph of Point2f
329            time: Graph of Float
330            pressure: Graph of Float
331            azimuth_angle: Graph of Float
332            altitude_angle: Graph of Float
333
334        Returns:
335            Graph: A graph node producing a PathCommand.
336        """
337        control_point_parsed = input_parsers.parse_graph(control_point)
338        coordinate_parsed = input_parsers.parse_graph(coordinate)
339        time_parsed = input_parsers.parse_float_graph(time)
340        pressure_parsed = input_parsers.parse_float_graph(pressure)
341        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
342        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
343        result = _internal.path_command_quadratic_bezier_to_point_internal(control_point_parsed, coordinate_parsed, time_parsed, pressure_parsed, azimuth_angle_parsed, altitude_angle_parsed)
344        return PathCommand(result)

Path Command Quadratic Bézier To

A command for a path to draw a quadratic Bézier curve to a point, bent toward a control point.

Args: control_point: Graph of Point2f coordinate: Graph of Point2f time: Graph of Float pressure: Graph of Float azimuth_angle: Graph of Float altitude_angle: Graph of Float

Returns: Graph: A graph node producing a PathCommand.

def time(self) -> Float:
346    def time(self) -> float.Float:
347        """Path Command Time
348
349        Gets the time of this path command's end point.
350
351        Returns:
352            Graph: A graph node producing a Float.
353        """
354        command_parsed = input_parsers.parse_graph(self)
355        result = _internal.path_command_time_internal(command_parsed)
356        from .float import Float
357        return Float(result)

Path Command Time

Gets the time of this path command's end point.

Returns: Graph: A graph node producing a Float.

def with_altitude_angle(self, altitude_angle) -> PathCommand:
359    def with_altitude_angle(self, altitude_angle) -> PathCommand:
360        """Path Command With Altitude Angle
361
362        Returns this path command with its end point's altitude angle replaced.
363
364        Args:
365            altitude_angle: Graph of Float
366
367        Returns:
368            Graph: A graph node producing a PathCommand.
369        """
370        command_parsed = input_parsers.parse_graph(self)
371        altitude_angle_parsed = input_parsers.parse_float_graph(altitude_angle)
372        result = _internal.path_command_with_altitude_angle_internal(command_parsed, altitude_angle_parsed)
373        return PathCommand(result)

Path Command With Altitude Angle

Returns this path command with its end point's altitude angle replaced.

Args: altitude_angle: Graph of Float

Returns: Graph: A graph node producing a PathCommand.

def with_azimuth_angle(self, azimuth_angle) -> PathCommand:
375    def with_azimuth_angle(self, azimuth_angle) -> PathCommand:
376        """Path Command With Azimuth Angle
377
378        Returns this path command with its end point's azimuth angle replaced.
379
380        Args:
381            azimuth_angle: Graph of Float
382
383        Returns:
384            Graph: A graph node producing a PathCommand.
385        """
386        command_parsed = input_parsers.parse_graph(self)
387        azimuth_angle_parsed = input_parsers.parse_float_graph(azimuth_angle)
388        result = _internal.path_command_with_azimuth_angle_internal(command_parsed, azimuth_angle_parsed)
389        return PathCommand(result)

Path Command With Azimuth Angle

Returns this path command with its end point's azimuth angle replaced.

Args: azimuth_angle: Graph of Float

Returns: Graph: A graph node producing a PathCommand.

def with_control_point(self, control_point) -> PathCommand:
391    def with_control_point(self, control_point) -> PathCommand:
392        """Path Command With Control Point
393
394        Returns this quadratic Bézier command with its control point replaced. Only works on quadratic Bézier commands and fails on any other type.
395
396        Args:
397            control_point: Graph of Point2f
398
399        Returns:
400            Graph: A graph node producing a PathCommand.
401        """
402        command_parsed = input_parsers.parse_graph(self)
403        control_point_parsed = input_parsers.parse_graph(control_point)
404        result = _internal.path_command_with_control_point_internal(command_parsed, control_point_parsed)
405        return PathCommand(result)

Path Command With Control Point

Returns this quadratic Bézier command with its control point replaced. Only works on quadratic Bézier commands and fails on any other type.

Args: control_point: Graph of Point2f

Returns: Graph: A graph node producing a PathCommand.

def with_control_point_1(self, control_point_1) -> PathCommand:
407    def with_control_point_1(self, control_point_1) -> PathCommand:
408        """Path Command With Control Point 1
409
410        Returns this cubic Bézier command with its first control point replaced. Only works on cubic Bézier commands and fails on any other type.
411
412        Args:
413            control_point_1: Graph of Point2f
414
415        Returns:
416            Graph: A graph node producing a PathCommand.
417        """
418        command_parsed = input_parsers.parse_graph(self)
419        control_point_1_parsed = input_parsers.parse_graph(control_point_1)
420        result = _internal.path_command_with_control_point1_internal(command_parsed, control_point_1_parsed)
421        return PathCommand(result)

Path Command With Control Point 1

Returns this cubic Bézier command with its first control point replaced. Only works on cubic Bézier commands and fails on any other type.

Args: control_point_1: Graph of Point2f

Returns: Graph: A graph node producing a PathCommand.

def with_control_point_2(self, control_point_2) -> PathCommand:
423    def with_control_point_2(self, control_point_2) -> PathCommand:
424        """Path Command With Control Point 2
425
426        Returns this cubic Bézier command with its second control point replaced. Only works on cubic Bézier commands and fails on any other type.
427
428        Args:
429            control_point_2: Graph of Point2f
430
431        Returns:
432            Graph: A graph node producing a PathCommand.
433        """
434        command_parsed = input_parsers.parse_graph(self)
435        control_point_2_parsed = input_parsers.parse_graph(control_point_2)
436        result = _internal.path_command_with_control_point2_internal(command_parsed, control_point_2_parsed)
437        return PathCommand(result)

Path Command With Control Point 2

Returns this cubic Bézier command with its second control point replaced. Only works on cubic Bézier commands and fails on any other type.

Args: control_point_2: Graph of Point2f

Returns: Graph: A graph node producing a PathCommand.

def with_coordinate(self, coordinate) -> PathCommand:
439    def with_coordinate(self, coordinate) -> PathCommand:
440        """Path Command With Coordinate
441
442        Returns this path command with its end point's coordinate replaced.
443
444        Args:
445            coordinate: Graph of Point2f
446
447        Returns:
448            Graph: A graph node producing a PathCommand.
449        """
450        command_parsed = input_parsers.parse_graph(self)
451        coordinate_parsed = input_parsers.parse_graph(coordinate)
452        result = _internal.path_command_with_coordinate_internal(command_parsed, coordinate_parsed)
453        return PathCommand(result)

Path Command With Coordinate

Returns this path command with its end point's coordinate replaced.

Args: coordinate: Graph of Point2f

Returns: Graph: A graph node producing a PathCommand.

def with_pressure(self, pressure) -> PathCommand:
455    def with_pressure(self, pressure) -> PathCommand:
456        """Path Command With Pressure
457
458        Returns this path command with its end point's pressure replaced.
459
460        Args:
461            pressure: Graph of Float
462
463        Returns:
464            Graph: A graph node producing a PathCommand.
465        """
466        command_parsed = input_parsers.parse_graph(self)
467        pressure_parsed = input_parsers.parse_float_graph(pressure)
468        result = _internal.path_command_with_pressure_internal(command_parsed, pressure_parsed)
469        return PathCommand(result)

Path Command With Pressure

Returns this path command with its end point's pressure replaced.

Args: pressure: Graph of Float

Returns: Graph: A graph node producing a PathCommand.

def with_time(self, time) -> PathCommand:
471    def with_time(self, time) -> PathCommand:
472        """Path Command With Time
473
474        Returns this path command with its end point's time replaced.
475
476        Args:
477            time: Graph of Float
478
479        Returns:
480            Graph: A graph node producing a PathCommand.
481        """
482        command_parsed = input_parsers.parse_graph(self)
483        time_parsed = input_parsers.parse_float_graph(time)
484        result = _internal.path_command_with_time_internal(command_parsed, time_parsed)
485        return PathCommand(result)

Path Command With Time

Returns this path command with its end point's time replaced.

Args: time: Graph of Float

Returns: Graph: A graph node producing a PathCommand.

class PathCommandList(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
11class PathCommandList(List):
12    """List of Path Commands"""
13
14    def __init__(self, inner, resolved_type=None):
15        from .path_command import PathCommand
16        super().__init__(inner, PathCommand if resolved_type is None else resolved_type)
17
18    def execute(self, context):
19        return self._inner.execute(context)

List of Path Commands

PathCommandList(inner, resolved_type=None)
14    def __init__(self, inner, resolved_type=None):
15        from .path_command import PathCommand
16        super().__init__(inner, PathCommand if resolved_type is None else resolved_type)
class PixelEncoding(brushcue.Object):
12class PixelEncoding(Object):
13    """How pixel values are encoded (gamma/other encoded, linear straight alpha, or linear premultiplied alpha)."""
14
15    def execute(self, context):
16        return self._inner.execute(context)
17
18    @staticmethod
19    def encoded() -> PixelEncoding:
20        """Pixel Encoding Encoded
21
22        Creates a Pixel Encoding representing gamma or other non-linear encoded values.
23
24        Returns:
25            Graph: A graph node producing a PixelEncoding.
26        """
27        result = _internal.pixel_encoding_encoded_internal()
28        return PixelEncoding(result)
29
30    @staticmethod
31    def linear() -> PixelEncoding:
32        """Pixel Encoding Linear
33
34        Creates a Pixel Encoding representing linear light, straight alpha values.
35
36        Returns:
37            Graph: A graph node producing a PixelEncoding.
38        """
39        result = _internal.pixel_encoding_linear_internal()
40        return PixelEncoding(result)
41
42    @staticmethod
43    def premultiplied_alpha() -> PixelEncoding:
44        """Pixel Encoding Premultiplied Alpha
45
46        Creates a Pixel Encoding representing linear light, premultiplied alpha values.
47
48        Returns:
49            Graph: A graph node producing a PixelEncoding.
50        """
51        result = _internal.pixel_encoding_premultiplied_alpha_internal()
52        return PixelEncoding(result)

How pixel values are encoded (gamma/other encoded, linear straight alpha, or linear premultiplied alpha).

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context)
@staticmethod
def encoded() -> PixelEncoding:
18    @staticmethod
19    def encoded() -> PixelEncoding:
20        """Pixel Encoding Encoded
21
22        Creates a Pixel Encoding representing gamma or other non-linear encoded values.
23
24        Returns:
25            Graph: A graph node producing a PixelEncoding.
26        """
27        result = _internal.pixel_encoding_encoded_internal()
28        return PixelEncoding(result)

Pixel Encoding Encoded

Creates a Pixel Encoding representing gamma or other non-linear encoded values.

Returns: Graph: A graph node producing a PixelEncoding.

@staticmethod
def linear() -> PixelEncoding:
30    @staticmethod
31    def linear() -> PixelEncoding:
32        """Pixel Encoding Linear
33
34        Creates a Pixel Encoding representing linear light, straight alpha values.
35
36        Returns:
37            Graph: A graph node producing a PixelEncoding.
38        """
39        result = _internal.pixel_encoding_linear_internal()
40        return PixelEncoding(result)

Pixel Encoding Linear

Creates a Pixel Encoding representing linear light, straight alpha values.

Returns: Graph: A graph node producing a PixelEncoding.

@staticmethod
def premultiplied_alpha() -> PixelEncoding:
42    @staticmethod
43    def premultiplied_alpha() -> PixelEncoding:
44        """Pixel Encoding Premultiplied Alpha
45
46        Creates a Pixel Encoding representing linear light, premultiplied alpha values.
47
48        Returns:
49            Graph: A graph node producing a PixelEncoding.
50        """
51        result = _internal.pixel_encoding_premultiplied_alpha_internal()
52        return PixelEncoding(result)

Pixel Encoding Premultiplied Alpha

Creates a Pixel Encoding representing linear light, premultiplied alpha values.

Returns: Graph: A graph node producing a PixelEncoding.

class Point2f(brushcue.Object):
 18class Point2f(Object):
 19    """A point with an x and y as floats"""
 20
 21    def execute(self, context):
 22        return self._inner.execute(context)
 23
 24    def add_vector(self, vector) -> Point2f:
 25        """Point 2 Float Add Vector 2 Float
 26
 27        Offsets a Point 2 Float by a Vector 2 Float
 28
 29        Args:
 30            vector: Graph of Vector2f
 31
 32        Returns:
 33            Graph: A graph node producing a Point2f.
 34        """
 35        point_parsed = input_parsers.parse_graph(self)
 36        vector_parsed = input_parsers.parse_graph(vector)
 37        result = _internal.point2f_add_vector2f_internal(point_parsed, vector_parsed)
 38        return Point2f(result)
 39
 40    def distance(self, rhs) -> float.Float:
 41        """Point 2 Float Distance
 42
 43        The Euclidean distance between two Point 2 Floats.
 44
 45        Args:
 46            rhs: Graph of Point2f
 47
 48        Returns:
 49            Graph: A graph node producing a Float.
 50        """
 51        lhs_parsed = input_parsers.parse_graph(self)
 52        rhs_parsed = input_parsers.parse_graph(rhs)
 53        result = _internal.point2f_distance_internal(lhs_parsed, rhs_parsed)
 54        from .float import Float
 55        return Float(result)
 56
 57    @staticmethod
 58    def from_components(x, y) -> Point2f:
 59        """Point 2 Float from Components
 60
 61        Given an x and y creates a point
 62
 63        Args:
 64            x: Graph of Float
 65            y: Graph of Float
 66
 67        Returns:
 68            Graph: A graph node producing a Point2f.
 69        """
 70        x_parsed = input_parsers.parse_float_graph(x)
 71        y_parsed = input_parsers.parse_float_graph(y)
 72        result = _internal.point2f_from_components_internal(x_parsed, y_parsed)
 73        return Point2f(result)
 74
 75    def subtract(self, rhs) -> vector2f.Vector2f:
 76        """Point 2 Float Subtract
 77
 78        Subtracts two Point 2 Floats to produce the vector from rhs to lhs.
 79
 80        Args:
 81            rhs: Graph of Point2f
 82
 83        Returns:
 84            Graph: A graph node producing a Vector2f.
 85        """
 86        lhs_parsed = input_parsers.parse_graph(self)
 87        rhs_parsed = input_parsers.parse_graph(rhs)
 88        result = _internal.point2f_subtract_internal(lhs_parsed, rhs_parsed)
 89        from .vector2f import Vector2f
 90        return Vector2f(result)
 91
 92    def x(self) -> float.Float:
 93        """Point 2 Float get X
 94
 95        Retrieves the X component of a Point 2 Float.
 96
 97        Returns:
 98            Graph: A graph node producing a Float.
 99        """
100        point_parsed = input_parsers.parse_graph(self)
101        result = _internal.point2f_x_internal(point_parsed)
102        from .float import Float
103        return Float(result)
104
105    def y(self) -> float.Float:
106        """Point 2 Float get Y
107
108        Retrieves the Y component of a Point 2 Float.
109
110        Returns:
111            Graph: A graph node producing a Float.
112        """
113        point_parsed = input_parsers.parse_graph(self)
114        result = _internal.point2f_y_internal(point_parsed)
115        from .float import Float
116        return Float(result)

A point with an x and y as floats

def execute(self, context):
21    def execute(self, context):
22        return self._inner.execute(context)
def add_vector(self, vector) -> Point2f:
24    def add_vector(self, vector) -> Point2f:
25        """Point 2 Float Add Vector 2 Float
26
27        Offsets a Point 2 Float by a Vector 2 Float
28
29        Args:
30            vector: Graph of Vector2f
31
32        Returns:
33            Graph: A graph node producing a Point2f.
34        """
35        point_parsed = input_parsers.parse_graph(self)
36        vector_parsed = input_parsers.parse_graph(vector)
37        result = _internal.point2f_add_vector2f_internal(point_parsed, vector_parsed)
38        return Point2f(result)

Point 2 Float Add Vector 2 Float

Offsets a Point 2 Float by a Vector 2 Float

Args: vector: Graph of Vector2f

Returns: Graph: A graph node producing a Point2f.

def distance(self, rhs) -> Float:
40    def distance(self, rhs) -> float.Float:
41        """Point 2 Float Distance
42
43        The Euclidean distance between two Point 2 Floats.
44
45        Args:
46            rhs: Graph of Point2f
47
48        Returns:
49            Graph: A graph node producing a Float.
50        """
51        lhs_parsed = input_parsers.parse_graph(self)
52        rhs_parsed = input_parsers.parse_graph(rhs)
53        result = _internal.point2f_distance_internal(lhs_parsed, rhs_parsed)
54        from .float import Float
55        return Float(result)

Point 2 Float Distance

The Euclidean distance between two Point 2 Floats.

Args: rhs: Graph of Point2f

Returns: Graph: A graph node producing a Float.

@staticmethod
def from_components(x, y) -> Point2f:
57    @staticmethod
58    def from_components(x, y) -> Point2f:
59        """Point 2 Float from Components
60
61        Given an x and y creates a point
62
63        Args:
64            x: Graph of Float
65            y: Graph of Float
66
67        Returns:
68            Graph: A graph node producing a Point2f.
69        """
70        x_parsed = input_parsers.parse_float_graph(x)
71        y_parsed = input_parsers.parse_float_graph(y)
72        result = _internal.point2f_from_components_internal(x_parsed, y_parsed)
73        return Point2f(result)

Point 2 Float from Components

Given an x and y creates a point

Args: x: Graph of Float y: Graph of Float

Returns: Graph: A graph node producing a Point2f.

def subtract(self, rhs) -> Vector2f:
75    def subtract(self, rhs) -> vector2f.Vector2f:
76        """Point 2 Float Subtract
77
78        Subtracts two Point 2 Floats to produce the vector from rhs to lhs.
79
80        Args:
81            rhs: Graph of Point2f
82
83        Returns:
84            Graph: A graph node producing a Vector2f.
85        """
86        lhs_parsed = input_parsers.parse_graph(self)
87        rhs_parsed = input_parsers.parse_graph(rhs)
88        result = _internal.point2f_subtract_internal(lhs_parsed, rhs_parsed)
89        from .vector2f import Vector2f
90        return Vector2f(result)

Point 2 Float Subtract

Subtracts two Point 2 Floats to produce the vector from rhs to lhs.

Args: rhs: Graph of Point2f

Returns: Graph: A graph node producing a Vector2f.

def x(self) -> Float:
 92    def x(self) -> float.Float:
 93        """Point 2 Float get X
 94
 95        Retrieves the X component of a Point 2 Float.
 96
 97        Returns:
 98            Graph: A graph node producing a Float.
 99        """
100        point_parsed = input_parsers.parse_graph(self)
101        result = _internal.point2f_x_internal(point_parsed)
102        from .float import Float
103        return Float(result)

Point 2 Float get X

Retrieves the X component of a Point 2 Float.

Returns: Graph: A graph node producing a Float.

def y(self) -> Float:
105    def y(self) -> float.Float:
106        """Point 2 Float get Y
107
108        Retrieves the Y component of a Point 2 Float.
109
110        Returns:
111            Graph: A graph node producing a Float.
112        """
113        point_parsed = input_parsers.parse_graph(self)
114        result = _internal.point2f_y_internal(point_parsed)
115        from .float import Float
116        return Float(result)

Point 2 Float get Y

Retrieves the Y component of a Point 2 Float.

Returns: Graph: A graph node producing a Float.

class Point2fList(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
11class Point2fList(List):
12    """List of Point 2 Floats"""
13
14    def __init__(self, inner, resolved_type=None):
15        from .point2f import Point2f
16        super().__init__(inner, Point2f if resolved_type is None else resolved_type)
17
18    def execute(self, context):
19        return self._inner.execute(context)

List of Point 2 Floats

Point2fList(inner, resolved_type=None)
14    def __init__(self, inner, resolved_type=None):
15        from .point2f import Point2f
16        super().__init__(inner, Point2f if resolved_type is None else resolved_type)
class Point2i(brushcue.Object):
17class Point2i(Object):
18    """A point with an x and y as ints"""
19
20    def execute(self, context):
21        return self._inner.execute(context)
22
23    def distance(self, rhs) -> float.Float:
24        """Point 2 Int Distance
25
26        The Euclidean distance between two Point 2 Ints, returned as a Float.
27
28        Args:
29            rhs: Graph of Point2i
30
31        Returns:
32            Graph: A graph node producing a Float.
33        """
34        lhs_parsed = input_parsers.parse_graph(self)
35        rhs_parsed = input_parsers.parse_graph(rhs)
36        result = _internal.point2i_distance_internal(lhs_parsed, rhs_parsed)
37        from .float import Float
38        return Float(result)
39
40    @staticmethod
41    def from_components(x, y) -> Point2i:
42        """Point 2 Int from Components
43
44        Given an x and y creates a point
45
46        Args:
47            x: Graph of Int
48            y: Graph of Int
49
50        Returns:
51            Graph: A graph node producing a Point2i.
52        """
53        x_parsed = input_parsers.parse_int_graph(x)
54        y_parsed = input_parsers.parse_int_graph(y)
55        result = _internal.point2i_from_components_internal(x_parsed, y_parsed)
56        return Point2i(result)

A point with an x and y as ints

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context)
def distance(self, rhs) -> Float:
23    def distance(self, rhs) -> float.Float:
24        """Point 2 Int Distance
25
26        The Euclidean distance between two Point 2 Ints, returned as a Float.
27
28        Args:
29            rhs: Graph of Point2i
30
31        Returns:
32            Graph: A graph node producing a Float.
33        """
34        lhs_parsed = input_parsers.parse_graph(self)
35        rhs_parsed = input_parsers.parse_graph(rhs)
36        result = _internal.point2i_distance_internal(lhs_parsed, rhs_parsed)
37        from .float import Float
38        return Float(result)

Point 2 Int Distance

The Euclidean distance between two Point 2 Ints, returned as a Float.

Args: rhs: Graph of Point2i

Returns: Graph: A graph node producing a Float.

@staticmethod
def from_components(x, y) -> Point2i:
40    @staticmethod
41    def from_components(x, y) -> Point2i:
42        """Point 2 Int from Components
43
44        Given an x and y creates a point
45
46        Args:
47            x: Graph of Int
48            y: Graph of Int
49
50        Returns:
51            Graph: A graph node producing a Point2i.
52        """
53        x_parsed = input_parsers.parse_int_graph(x)
54        y_parsed = input_parsers.parse_int_graph(y)
55        result = _internal.point2i_from_components_internal(x_parsed, y_parsed)
56        return Point2i(result)

Point 2 Int from Components

Given an x and y creates a point

Args: x: Graph of Int y: Graph of Int

Returns: Graph: A graph node producing a Point2i.

class Point2iList(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
11class Point2iList(List):
12    """List of Point 2 Ints"""
13
14    def __init__(self, inner, resolved_type=None):
15        from .point2i import Point2i
16        super().__init__(inner, Point2i if resolved_type is None else resolved_type)
17
18    def execute(self, context):
19        return self._inner.execute(context)

List of Point 2 Ints

Point2iList(inner, resolved_type=None)
14    def __init__(self, inner, resolved_type=None):
15        from .point2i import Point2i
16        super().__init__(inner, Point2i if resolved_type is None else resolved_type)
class ProfiledColor(brushcue.Object):
 21class ProfiledColor(Object):
 22    """A color with an associated color representation."""
 23
 24    def execute(self, context):
 25        return self._inner.execute(context)
 26
 27    @staticmethod
 28    def blackbody(kelvin) -> ProfiledColor:
 29        """Profiled Color Blackbody
 30
 31        Creates a profiled color that is the color of a blackbody emitter at a given kelvin.
 32
 33        Args:
 34            kelvin: Graph of Float
 35
 36        Returns:
 37            Graph: A graph node producing a ProfiledColor.
 38        """
 39        kelvin_parsed = input_parsers.parse_float_graph(kelvin)
 40        result = _internal.profiled_color_blackbody_internal(kelvin_parsed)
 41        return ProfiledColor(result)
 42
 43    def brightness_adjust(self, offset) -> ProfiledColor:
 44        """Profiled Color Brightness Adjust
 45
 46        Adjusts a profiled color's lightness in OkLab.
 47
 48        Args:
 49            offset: Graph of Float
 50
 51        Returns:
 52            Graph: A graph node producing a ProfiledColor.
 53        """
 54        profiled_color_parsed = input_parsers.parse_graph(self)
 55        offset_parsed = input_parsers.parse_float_graph(offset)
 56        result = _internal.profiled_color_brightness_adjust_internal(profiled_color_parsed, offset_parsed)
 57        return ProfiledColor(result)
 58
 59    def chroma_offset(self, offset) -> ProfiledColor:
 60        """Profiled Color Chroma Offset
 61
 62        Applies an offset to the a and b chroma components of a profiled color in OkLab.
 63
 64        Args:
 65            offset: Graph of Vector2f
 66
 67        Returns:
 68            Graph: A graph node producing a ProfiledColor.
 69        """
 70        profiled_color_parsed = input_parsers.parse_graph(self)
 71        offset_parsed = input_parsers.parse_graph(offset)
 72        result = _internal.profiled_color_chroma_offset_internal(profiled_color_parsed, offset_parsed)
 73        return ProfiledColor(result)
 74
 75    def exposure_adjust(self, steps) -> ProfiledColor:
 76        """Profiled Color Exposure Adjust
 77
 78        Updates a profiled color's exposure by multiplying linear RGB values by 2^steps.
 79
 80        Args:
 81            steps: Graph of Float
 82
 83        Returns:
 84            Graph: A graph node producing a ProfiledColor.
 85        """
 86        profiled_color_parsed = input_parsers.parse_graph(self)
 87        steps_parsed = input_parsers.parse_float_graph(steps)
 88        result = _internal.profiled_color_exposure_adjust_internal(profiled_color_parsed, steps_parsed)
 89        return ProfiledColor(result)
 90
 91    @staticmethod
 92    def new_lmsa(lmsa) -> ProfiledColor:
 93        """Profiled Color from LMS with Alpha
 94
 95        Creates a profiled color from LMS channels and alpha.
 96
 97        Args:
 98            lmsa: Graph of LMSA
 99
100        Returns:
101            Graph: A graph node producing a ProfiledColor.
102        """
103        lmsa_parsed = input_parsers.parse_graph(lmsa)
104        result = _internal.profiled_color_from_l_m_s_a_internal(lmsa_parsed)
105        return ProfiledColor(result)
106
107    @staticmethod
108    def from_ok_lab_a(ok_lab_a) -> ProfiledColor:
109        """Profiled Color from OkLab with Alpha
110
111        Creates a profiled color from OkLab channels and alpha.
112
113        Args:
114            ok_lab_a: Graph of OkLabA
115
116        Returns:
117            Graph: A graph node producing a ProfiledColor.
118        """
119        ok_lab_a_parsed = input_parsers.parse_graph(ok_lab_a)
120        result = _internal.profiled_color_from_ok_lab_a_internal(ok_lab_a_parsed)
121        return ProfiledColor(result)
122
123    @staticmethod
124    def from_ok_lch_a(ok_lch_a) -> ProfiledColor:
125        """Profiled Color from OkLch with Alpha
126
127        Creates a profiled color from OkLch channels and alpha. Hue is in radians.
128
129        Args:
130            ok_lch_a: Graph of OkLchA
131
132        Returns:
133            Graph: A graph node producing a ProfiledColor.
134        """
135        ok_lch_a_parsed = input_parsers.parse_graph(ok_lch_a)
136        result = _internal.profiled_color_from_ok_lch_a_internal(ok_lch_a_parsed)
137        return ProfiledColor(result)
138
139    @staticmethod
140    def from_rgba_aces_cg(rgba) -> ProfiledColor:
141        """Profiled Color from RGBA ACEScg
142
143        Creates a profiled color from linear ACEScg RGBA channels.
144
145        Args:
146            rgba: Graph of RGBAColor
147
148        Returns:
149            Graph: A graph node producing a ProfiledColor.
150        """
151        rgba_parsed = input_parsers.parse_graph(rgba)
152        result = _internal.profiled_color_from_rgba_aces_cg_internal(rgba_parsed)
153        return ProfiledColor(result)
154
155    @staticmethod
156    def from_rgba_p3(rgba) -> ProfiledColor:
157        """Profiled Color from RGBA P3
158
159        Creates a profiled color from encoded Display P3 RGBA channels.
160
161        Args:
162            rgba: Graph of RGBAColor
163
164        Returns:
165            Graph: A graph node producing a ProfiledColor.
166        """
167        rgba_parsed = input_parsers.parse_graph(rgba)
168        result = _internal.profiled_color_from_rgba_p3_internal(rgba_parsed)
169        return ProfiledColor(result)
170
171    @staticmethod
172    def from_rgba_srgb(rgba) -> ProfiledColor:
173        """Profiled Color from RGBA sRGB
174
175        Creates a profiled color from encoded sRGB RGBA channels.
176
177        Args:
178            rgba: Graph of RGBAColor
179
180        Returns:
181            Graph: A graph node producing a ProfiledColor.
182        """
183        rgba_parsed = input_parsers.parse_graph(rgba)
184        result = _internal.profiled_color_from_rgba_srgb_internal(rgba_parsed)
185        return ProfiledColor(result)
186
187    @staticmethod
188    def from_rgba_srgb_linear(rgba) -> ProfiledColor:
189        """Profiled Color from RGBA linear sRGB
190
191        Creates a profiled color from linear sRGB RGBA channels.
192
193        Args:
194            rgba: Graph of RGBAColor
195
196        Returns:
197            Graph: A graph node producing a ProfiledColor.
198        """
199        rgba_parsed = input_parsers.parse_graph(rgba)
200        result = _internal.profiled_color_from_rgba_srgb_linear_internal(rgba_parsed)
201        return ProfiledColor(result)
202
203    @staticmethod
204    def from_srgb_hex(hex) -> ProfiledColor:
205        """Profiled Color from sRGB Hex
206
207        Creates a profiled color from an encoded sRGB hex string (#RGB, #RGBA, #RRGGBB, or #RRGGBBAA).
208
209        Args:
210            hex: Graph of String
211
212        Returns:
213            Graph: A graph node producing a ProfiledColor.
214        """
215        hex_parsed = input_parsers.parse_string_graph(hex)
216        result = _internal.profiled_color_from_srgb_hex_internal(hex_parsed)
217        return ProfiledColor(result)
218
219    @staticmethod
220    def from_wavelength_nm(wavelength_nm) -> ProfiledColor:
221        """Profiled Color From Wavelength (nm)
222
223        Creates a profiled color from a monochromatic wavelength in nanometres.
224
225        Args:
226            wavelength_nm: Graph of Float
227
228        Returns:
229            Graph: A graph node producing a ProfiledColor.
230        """
231        wavelength_nm_parsed = input_parsers.parse_float_graph(wavelength_nm)
232        result = _internal.profiled_color_from_wavelength_nm_internal(wavelength_nm_parsed)
233        return ProfiledColor(result)
234
235    @staticmethod
236    def from_xyz_a(xyza) -> ProfiledColor:
237        """Profiled Color from XYZ with Alpha
238
239        Creates a profiled color from XYZ channels and alpha.
240
241        Args:
242            xyza: Graph of XYZA
243
244        Returns:
245            Graph: A graph node producing a ProfiledColor.
246        """
247        xyza_parsed = input_parsers.parse_graph(xyza)
248        result = _internal.profiled_color_from_xyz_a_internal(xyza_parsed)
249        return ProfiledColor(result)
250
251    def grayscale(self) -> ProfiledColor:
252        """Profiled Color Grayscale
253
254        Removes chroma from a profiled color.
255
256        Returns:
257            Graph: A graph node producing a ProfiledColor.
258        """
259        profiled_color_parsed = input_parsers.parse_graph(self)
260        result = _internal.profiled_color_grayscale_internal(profiled_color_parsed)
261        return ProfiledColor(result)
262
263    def lightness_curve(self, l_curve) -> ProfiledColor:
264        """Profiled Color Lightness Curve
265
266        Applies a curve to the L component of a profiled color in OkLab.
267
268        Args:
269            l_curve: Graph of Curve
270
271        Returns:
272            Graph: A graph node producing a ProfiledColor.
273        """
274        profiled_color_parsed = input_parsers.parse_graph(self)
275        l_curve_parsed = input_parsers.parse_graph(l_curve)
276        result = _internal.profiled_color_lightness_curve_internal(profiled_color_parsed, l_curve_parsed)
277        return ProfiledColor(result)
278
279    def saturation_adjust(self, scale) -> ProfiledColor:
280        """Profiled Color Saturation Adjust
281
282        Scales the chroma components of a profiled color in OkLab.
283
284        Args:
285            scale: Graph of Float
286
287        Returns:
288            Graph: A graph node producing a ProfiledColor.
289        """
290        profiled_color_parsed = input_parsers.parse_graph(self)
291        scale_parsed = input_parsers.parse_float_graph(scale)
292        result = _internal.profiled_color_saturation_adjust_internal(profiled_color_parsed, scale_parsed)
293        return ProfiledColor(result)
294
295    def target_white(self, target_white) -> ProfiledColor:
296        """Profiled Color Target White
297
298        Adapts a profiled color to the specified XYZ white point.
299
300        Args:
301            target_white: Graph of XYZ
302
303        Returns:
304            Graph: A graph node producing a ProfiledColor.
305        """
306        profiled_color_parsed = input_parsers.parse_graph(self)
307        target_white_parsed = input_parsers.parse_graph(target_white)
308        result = _internal.profiled_color_target_white_internal(profiled_color_parsed, target_white_parsed)
309        return ProfiledColor(result)
310
311    def to_lmsa(self) -> l_m_s_a.LMSA:
312        """Profiled Color to LMS with Alpha
313
314        Converts a profiled color to LMS channels with alpha.
315
316        Returns:
317            Graph: A graph node producing a LMSA.
318        """
319        profiled_color_parsed = input_parsers.parse_graph(self)
320        result = _internal.profiled_color_to_l_m_s_a_internal(profiled_color_parsed)
321        from .l_m_s_a import LMSA
322        return LMSA(result)
323
324    def to_ok_lab_a(self) -> ok_lab_a.OkLabA:
325        """Profiled Color to OkLab with Alpha
326
327        Converts a profiled color to OkLab channels with alpha.
328
329        Returns:
330            Graph: A graph node producing a OkLabA.
331        """
332        profiled_color_parsed = input_parsers.parse_graph(self)
333        result = _internal.profiled_color_to_ok_lab_a_internal(profiled_color_parsed)
334        from .ok_lab_a import OkLabA
335        return OkLabA(result)
336
337    def to_oklcha(self) -> ok_lch_a.OkLchA:
338        """Profiled Color to OkLch with Alpha
339
340        Converts a profiled color to OkLch channels with alpha.
341
342        Returns:
343            Graph: A graph node producing a OkLchA.
344        """
345        profiled_color_parsed = input_parsers.parse_graph(self)
346        result = _internal.profiled_color_to_ok_lch_a_internal(profiled_color_parsed)
347        from .ok_lch_a import OkLchA
348        return OkLchA(result)
349
350    def to_rgb_encoded_with_color_profile(self, color_profile) -> r_g_b_a_color.RGBAColor:
351        """Profiled Color to Encoded RGB with Color Profile
352
353        Converts a profiled color to encoded RGB channels using the specified RGB color profile.
354
355        Args:
356            color_profile: Graph of ColorProfile
357
358        Returns:
359            Graph: A graph node producing a RGBAColor.
360        """
361        profiled_color_parsed = input_parsers.parse_graph(self)
362        color_profile_parsed = input_parsers.parse_graph(color_profile)
363        result = _internal.profiled_color_to_rgb_encoded_with_color_profile_internal(profiled_color_parsed, color_profile_parsed)
364        from .r_g_b_a_color import RGBAColor
365        return RGBAColor(result)
366
367    def to_rgb_linear_with_color_profile(self, color_profile) -> r_g_b_a_color.RGBAColor:
368        """Profiled Color to Linear RGB with Color Profile
369
370        Converts a profiled color to linear RGB channels using the specified RGB color profile.
371
372        Args:
373            color_profile: Graph of ColorProfile
374
375        Returns:
376            Graph: A graph node producing a RGBAColor.
377        """
378        profiled_color_parsed = input_parsers.parse_graph(self)
379        color_profile_parsed = input_parsers.parse_graph(color_profile)
380        result = _internal.profiled_color_to_rgb_linear_with_color_profile_internal(profiled_color_parsed, color_profile_parsed)
381        from .r_g_b_a_color import RGBAColor
382        return RGBAColor(result)
383
384    def to_xyz_a(self) -> x_y_z_a.XYZA:
385        """Profiled Color to XYZ with Alpha
386
387        Converts a profiled color to XYZ channels with alpha.
388
389        Returns:
390            Graph: A graph node producing a XYZA.
391        """
392        profiled_color_parsed = input_parsers.parse_graph(self)
393        result = _internal.profiled_color_to_xyz_a_internal(profiled_color_parsed)
394        from .x_y_z_a import XYZA
395        return XYZA(result)

A color with an associated color representation.

def execute(self, context):
24    def execute(self, context):
25        return self._inner.execute(context)
@staticmethod
def blackbody(kelvin) -> ProfiledColor:
27    @staticmethod
28    def blackbody(kelvin) -> ProfiledColor:
29        """Profiled Color Blackbody
30
31        Creates a profiled color that is the color of a blackbody emitter at a given kelvin.
32
33        Args:
34            kelvin: Graph of Float
35
36        Returns:
37            Graph: A graph node producing a ProfiledColor.
38        """
39        kelvin_parsed = input_parsers.parse_float_graph(kelvin)
40        result = _internal.profiled_color_blackbody_internal(kelvin_parsed)
41        return ProfiledColor(result)

Profiled Color Blackbody

Creates a profiled color that is the color of a blackbody emitter at a given kelvin.

Args: kelvin: Graph of Float

Returns: Graph: A graph node producing a ProfiledColor.

def brightness_adjust(self, offset) -> ProfiledColor:
43    def brightness_adjust(self, offset) -> ProfiledColor:
44        """Profiled Color Brightness Adjust
45
46        Adjusts a profiled color's lightness in OkLab.
47
48        Args:
49            offset: Graph of Float
50
51        Returns:
52            Graph: A graph node producing a ProfiledColor.
53        """
54        profiled_color_parsed = input_parsers.parse_graph(self)
55        offset_parsed = input_parsers.parse_float_graph(offset)
56        result = _internal.profiled_color_brightness_adjust_internal(profiled_color_parsed, offset_parsed)
57        return ProfiledColor(result)

Profiled Color Brightness Adjust

Adjusts a profiled color's lightness in OkLab.

Args: offset: Graph of Float

Returns: Graph: A graph node producing a ProfiledColor.

def chroma_offset(self, offset) -> ProfiledColor:
59    def chroma_offset(self, offset) -> ProfiledColor:
60        """Profiled Color Chroma Offset
61
62        Applies an offset to the a and b chroma components of a profiled color in OkLab.
63
64        Args:
65            offset: Graph of Vector2f
66
67        Returns:
68            Graph: A graph node producing a ProfiledColor.
69        """
70        profiled_color_parsed = input_parsers.parse_graph(self)
71        offset_parsed = input_parsers.parse_graph(offset)
72        result = _internal.profiled_color_chroma_offset_internal(profiled_color_parsed, offset_parsed)
73        return ProfiledColor(result)

Profiled Color Chroma Offset

Applies an offset to the a and b chroma components of a profiled color in OkLab.

Args: offset: Graph of Vector2f

Returns: Graph: A graph node producing a ProfiledColor.

def exposure_adjust(self, steps) -> ProfiledColor:
75    def exposure_adjust(self, steps) -> ProfiledColor:
76        """Profiled Color Exposure Adjust
77
78        Updates a profiled color's exposure by multiplying linear RGB values by 2^steps.
79
80        Args:
81            steps: Graph of Float
82
83        Returns:
84            Graph: A graph node producing a ProfiledColor.
85        """
86        profiled_color_parsed = input_parsers.parse_graph(self)
87        steps_parsed = input_parsers.parse_float_graph(steps)
88        result = _internal.profiled_color_exposure_adjust_internal(profiled_color_parsed, steps_parsed)
89        return ProfiledColor(result)

Profiled Color Exposure Adjust

Updates a profiled color's exposure by multiplying linear RGB values by 2^steps.

Args: steps: Graph of Float

Returns: Graph: A graph node producing a ProfiledColor.

@staticmethod
def new_lmsa(lmsa) -> ProfiledColor:
 91    @staticmethod
 92    def new_lmsa(lmsa) -> ProfiledColor:
 93        """Profiled Color from LMS with Alpha
 94
 95        Creates a profiled color from LMS channels and alpha.
 96
 97        Args:
 98            lmsa: Graph of LMSA
 99
100        Returns:
101            Graph: A graph node producing a ProfiledColor.
102        """
103        lmsa_parsed = input_parsers.parse_graph(lmsa)
104        result = _internal.profiled_color_from_l_m_s_a_internal(lmsa_parsed)
105        return ProfiledColor(result)

Profiled Color from LMS with Alpha

Creates a profiled color from LMS channels and alpha.

Args: lmsa: Graph of LMSA

Returns: Graph: A graph node producing a ProfiledColor.

@staticmethod
def from_ok_lab_a(ok_lab_a) -> ProfiledColor:
107    @staticmethod
108    def from_ok_lab_a(ok_lab_a) -> ProfiledColor:
109        """Profiled Color from OkLab with Alpha
110
111        Creates a profiled color from OkLab channels and alpha.
112
113        Args:
114            ok_lab_a: Graph of OkLabA
115
116        Returns:
117            Graph: A graph node producing a ProfiledColor.
118        """
119        ok_lab_a_parsed = input_parsers.parse_graph(ok_lab_a)
120        result = _internal.profiled_color_from_ok_lab_a_internal(ok_lab_a_parsed)
121        return ProfiledColor(result)

Profiled Color from OkLab with Alpha

Creates a profiled color from OkLab channels and alpha.

Args: ok_lab_a: Graph of OkLabA

Returns: Graph: A graph node producing a ProfiledColor.

@staticmethod
def from_ok_lch_a(ok_lch_a) -> ProfiledColor:
123    @staticmethod
124    def from_ok_lch_a(ok_lch_a) -> ProfiledColor:
125        """Profiled Color from OkLch with Alpha
126
127        Creates a profiled color from OkLch channels and alpha. Hue is in radians.
128
129        Args:
130            ok_lch_a: Graph of OkLchA
131
132        Returns:
133            Graph: A graph node producing a ProfiledColor.
134        """
135        ok_lch_a_parsed = input_parsers.parse_graph(ok_lch_a)
136        result = _internal.profiled_color_from_ok_lch_a_internal(ok_lch_a_parsed)
137        return ProfiledColor(result)

Profiled Color from OkLch with Alpha

Creates a profiled color from OkLch channels and alpha. Hue is in radians.

Args: ok_lch_a: Graph of OkLchA

Returns: Graph: A graph node producing a ProfiledColor.

@staticmethod
def from_rgba_aces_cg(rgba) -> ProfiledColor:
139    @staticmethod
140    def from_rgba_aces_cg(rgba) -> ProfiledColor:
141        """Profiled Color from RGBA ACEScg
142
143        Creates a profiled color from linear ACEScg RGBA channels.
144
145        Args:
146            rgba: Graph of RGBAColor
147
148        Returns:
149            Graph: A graph node producing a ProfiledColor.
150        """
151        rgba_parsed = input_parsers.parse_graph(rgba)
152        result = _internal.profiled_color_from_rgba_aces_cg_internal(rgba_parsed)
153        return ProfiledColor(result)

Profiled Color from RGBA ACEScg

Creates a profiled color from linear ACEScg RGBA channels.

Args: rgba: Graph of RGBAColor

Returns: Graph: A graph node producing a ProfiledColor.

@staticmethod
def from_rgba_p3(rgba) -> ProfiledColor:
155    @staticmethod
156    def from_rgba_p3(rgba) -> ProfiledColor:
157        """Profiled Color from RGBA P3
158
159        Creates a profiled color from encoded Display P3 RGBA channels.
160
161        Args:
162            rgba: Graph of RGBAColor
163
164        Returns:
165            Graph: A graph node producing a ProfiledColor.
166        """
167        rgba_parsed = input_parsers.parse_graph(rgba)
168        result = _internal.profiled_color_from_rgba_p3_internal(rgba_parsed)
169        return ProfiledColor(result)

Profiled Color from RGBA P3

Creates a profiled color from encoded Display P3 RGBA channels.

Args: rgba: Graph of RGBAColor

Returns: Graph: A graph node producing a ProfiledColor.

@staticmethod
def from_rgba_srgb(rgba) -> ProfiledColor:
171    @staticmethod
172    def from_rgba_srgb(rgba) -> ProfiledColor:
173        """Profiled Color from RGBA sRGB
174
175        Creates a profiled color from encoded sRGB RGBA channels.
176
177        Args:
178            rgba: Graph of RGBAColor
179
180        Returns:
181            Graph: A graph node producing a ProfiledColor.
182        """
183        rgba_parsed = input_parsers.parse_graph(rgba)
184        result = _internal.profiled_color_from_rgba_srgb_internal(rgba_parsed)
185        return ProfiledColor(result)

Profiled Color from RGBA sRGB

Creates a profiled color from encoded sRGB RGBA channels.

Args: rgba: Graph of RGBAColor

Returns: Graph: A graph node producing a ProfiledColor.

@staticmethod
def from_rgba_srgb_linear(rgba) -> ProfiledColor:
187    @staticmethod
188    def from_rgba_srgb_linear(rgba) -> ProfiledColor:
189        """Profiled Color from RGBA linear sRGB
190
191        Creates a profiled color from linear sRGB RGBA channels.
192
193        Args:
194            rgba: Graph of RGBAColor
195
196        Returns:
197            Graph: A graph node producing a ProfiledColor.
198        """
199        rgba_parsed = input_parsers.parse_graph(rgba)
200        result = _internal.profiled_color_from_rgba_srgb_linear_internal(rgba_parsed)
201        return ProfiledColor(result)

Profiled Color from RGBA linear sRGB

Creates a profiled color from linear sRGB RGBA channels.

Args: rgba: Graph of RGBAColor

Returns: Graph: A graph node producing a ProfiledColor.

@staticmethod
def from_srgb_hex(hex) -> ProfiledColor:
203    @staticmethod
204    def from_srgb_hex(hex) -> ProfiledColor:
205        """Profiled Color from sRGB Hex
206
207        Creates a profiled color from an encoded sRGB hex string (#RGB, #RGBA, #RRGGBB, or #RRGGBBAA).
208
209        Args:
210            hex: Graph of String
211
212        Returns:
213            Graph: A graph node producing a ProfiledColor.
214        """
215        hex_parsed = input_parsers.parse_string_graph(hex)
216        result = _internal.profiled_color_from_srgb_hex_internal(hex_parsed)
217        return ProfiledColor(result)

Profiled Color from sRGB Hex

Creates a profiled color from an encoded sRGB hex string (#RGB, #RGBA, #RRGGBB, or #RRGGBBAA).

Args: hex: Graph of String

Returns: Graph: A graph node producing a ProfiledColor.

@staticmethod
def from_wavelength_nm(wavelength_nm) -> ProfiledColor:
219    @staticmethod
220    def from_wavelength_nm(wavelength_nm) -> ProfiledColor:
221        """Profiled Color From Wavelength (nm)
222
223        Creates a profiled color from a monochromatic wavelength in nanometres.
224
225        Args:
226            wavelength_nm: Graph of Float
227
228        Returns:
229            Graph: A graph node producing a ProfiledColor.
230        """
231        wavelength_nm_parsed = input_parsers.parse_float_graph(wavelength_nm)
232        result = _internal.profiled_color_from_wavelength_nm_internal(wavelength_nm_parsed)
233        return ProfiledColor(result)

Profiled Color From Wavelength (nm)

Creates a profiled color from a monochromatic wavelength in nanometres.

Args: wavelength_nm: Graph of Float

Returns: Graph: A graph node producing a ProfiledColor.

@staticmethod
def from_xyz_a(xyza) -> ProfiledColor:
235    @staticmethod
236    def from_xyz_a(xyza) -> ProfiledColor:
237        """Profiled Color from XYZ with Alpha
238
239        Creates a profiled color from XYZ channels and alpha.
240
241        Args:
242            xyza: Graph of XYZA
243
244        Returns:
245            Graph: A graph node producing a ProfiledColor.
246        """
247        xyza_parsed = input_parsers.parse_graph(xyza)
248        result = _internal.profiled_color_from_xyz_a_internal(xyza_parsed)
249        return ProfiledColor(result)

Profiled Color from XYZ with Alpha

Creates a profiled color from XYZ channels and alpha.

Args: xyza: Graph of XYZA

Returns: Graph: A graph node producing a ProfiledColor.

def grayscale(self) -> ProfiledColor:
251    def grayscale(self) -> ProfiledColor:
252        """Profiled Color Grayscale
253
254        Removes chroma from a profiled color.
255
256        Returns:
257            Graph: A graph node producing a ProfiledColor.
258        """
259        profiled_color_parsed = input_parsers.parse_graph(self)
260        result = _internal.profiled_color_grayscale_internal(profiled_color_parsed)
261        return ProfiledColor(result)

Profiled Color Grayscale

Removes chroma from a profiled color.

Returns: Graph: A graph node producing a ProfiledColor.

def lightness_curve(self, l_curve) -> ProfiledColor:
263    def lightness_curve(self, l_curve) -> ProfiledColor:
264        """Profiled Color Lightness Curve
265
266        Applies a curve to the L component of a profiled color in OkLab.
267
268        Args:
269            l_curve: Graph of Curve
270
271        Returns:
272            Graph: A graph node producing a ProfiledColor.
273        """
274        profiled_color_parsed = input_parsers.parse_graph(self)
275        l_curve_parsed = input_parsers.parse_graph(l_curve)
276        result = _internal.profiled_color_lightness_curve_internal(profiled_color_parsed, l_curve_parsed)
277        return ProfiledColor(result)

Profiled Color Lightness Curve

Applies a curve to the L component of a profiled color in OkLab.

Args: l_curve: Graph of Curve

Returns: Graph: A graph node producing a ProfiledColor.

def saturation_adjust(self, scale) -> ProfiledColor:
279    def saturation_adjust(self, scale) -> ProfiledColor:
280        """Profiled Color Saturation Adjust
281
282        Scales the chroma components of a profiled color in OkLab.
283
284        Args:
285            scale: Graph of Float
286
287        Returns:
288            Graph: A graph node producing a ProfiledColor.
289        """
290        profiled_color_parsed = input_parsers.parse_graph(self)
291        scale_parsed = input_parsers.parse_float_graph(scale)
292        result = _internal.profiled_color_saturation_adjust_internal(profiled_color_parsed, scale_parsed)
293        return ProfiledColor(result)

Profiled Color Saturation Adjust

Scales the chroma components of a profiled color in OkLab.

Args: scale: Graph of Float

Returns: Graph: A graph node producing a ProfiledColor.

def target_white(self, target_white) -> ProfiledColor:
295    def target_white(self, target_white) -> ProfiledColor:
296        """Profiled Color Target White
297
298        Adapts a profiled color to the specified XYZ white point.
299
300        Args:
301            target_white: Graph of XYZ
302
303        Returns:
304            Graph: A graph node producing a ProfiledColor.
305        """
306        profiled_color_parsed = input_parsers.parse_graph(self)
307        target_white_parsed = input_parsers.parse_graph(target_white)
308        result = _internal.profiled_color_target_white_internal(profiled_color_parsed, target_white_parsed)
309        return ProfiledColor(result)

Profiled Color Target White

Adapts a profiled color to the specified XYZ white point.

Args: target_white: Graph of XYZ

Returns: Graph: A graph node producing a ProfiledColor.

def to_lmsa(self) -> LMSA:
311    def to_lmsa(self) -> l_m_s_a.LMSA:
312        """Profiled Color to LMS with Alpha
313
314        Converts a profiled color to LMS channels with alpha.
315
316        Returns:
317            Graph: A graph node producing a LMSA.
318        """
319        profiled_color_parsed = input_parsers.parse_graph(self)
320        result = _internal.profiled_color_to_l_m_s_a_internal(profiled_color_parsed)
321        from .l_m_s_a import LMSA
322        return LMSA(result)

Profiled Color to LMS with Alpha

Converts a profiled color to LMS channels with alpha.

Returns: Graph: A graph node producing a LMSA.

def to_ok_lab_a(self) -> OkLabA:
324    def to_ok_lab_a(self) -> ok_lab_a.OkLabA:
325        """Profiled Color to OkLab with Alpha
326
327        Converts a profiled color to OkLab channels with alpha.
328
329        Returns:
330            Graph: A graph node producing a OkLabA.
331        """
332        profiled_color_parsed = input_parsers.parse_graph(self)
333        result = _internal.profiled_color_to_ok_lab_a_internal(profiled_color_parsed)
334        from .ok_lab_a import OkLabA
335        return OkLabA(result)

Profiled Color to OkLab with Alpha

Converts a profiled color to OkLab channels with alpha.

Returns: Graph: A graph node producing a OkLabA.

def to_oklcha(self) -> OkLchA:
337    def to_oklcha(self) -> ok_lch_a.OkLchA:
338        """Profiled Color to OkLch with Alpha
339
340        Converts a profiled color to OkLch channels with alpha.
341
342        Returns:
343            Graph: A graph node producing a OkLchA.
344        """
345        profiled_color_parsed = input_parsers.parse_graph(self)
346        result = _internal.profiled_color_to_ok_lch_a_internal(profiled_color_parsed)
347        from .ok_lch_a import OkLchA
348        return OkLchA(result)

Profiled Color to OkLch with Alpha

Converts a profiled color to OkLch channels with alpha.

Returns: Graph: A graph node producing a OkLchA.

def to_rgb_encoded_with_color_profile(self, color_profile) -> RGBAColor:
350    def to_rgb_encoded_with_color_profile(self, color_profile) -> r_g_b_a_color.RGBAColor:
351        """Profiled Color to Encoded RGB with Color Profile
352
353        Converts a profiled color to encoded RGB channels using the specified RGB color profile.
354
355        Args:
356            color_profile: Graph of ColorProfile
357
358        Returns:
359            Graph: A graph node producing a RGBAColor.
360        """
361        profiled_color_parsed = input_parsers.parse_graph(self)
362        color_profile_parsed = input_parsers.parse_graph(color_profile)
363        result = _internal.profiled_color_to_rgb_encoded_with_color_profile_internal(profiled_color_parsed, color_profile_parsed)
364        from .r_g_b_a_color import RGBAColor
365        return RGBAColor(result)

Profiled Color to Encoded RGB with Color Profile

Converts a profiled color to encoded RGB channels using the specified RGB color profile.

Args: color_profile: Graph of ColorProfile

Returns: Graph: A graph node producing a RGBAColor.

def to_rgb_linear_with_color_profile(self, color_profile) -> RGBAColor:
367    def to_rgb_linear_with_color_profile(self, color_profile) -> r_g_b_a_color.RGBAColor:
368        """Profiled Color to Linear RGB with Color Profile
369
370        Converts a profiled color to linear RGB channels using the specified RGB color profile.
371
372        Args:
373            color_profile: Graph of ColorProfile
374
375        Returns:
376            Graph: A graph node producing a RGBAColor.
377        """
378        profiled_color_parsed = input_parsers.parse_graph(self)
379        color_profile_parsed = input_parsers.parse_graph(color_profile)
380        result = _internal.profiled_color_to_rgb_linear_with_color_profile_internal(profiled_color_parsed, color_profile_parsed)
381        from .r_g_b_a_color import RGBAColor
382        return RGBAColor(result)

Profiled Color to Linear RGB with Color Profile

Converts a profiled color to linear RGB channels using the specified RGB color profile.

Args: color_profile: Graph of ColorProfile

Returns: Graph: A graph node producing a RGBAColor.

def to_xyz_a(self) -> XYZA:
384    def to_xyz_a(self) -> x_y_z_a.XYZA:
385        """Profiled Color to XYZ with Alpha
386
387        Converts a profiled color to XYZ channels with alpha.
388
389        Returns:
390            Graph: A graph node producing a XYZA.
391        """
392        profiled_color_parsed = input_parsers.parse_graph(self)
393        result = _internal.profiled_color_to_xyz_a_internal(profiled_color_parsed)
394        from .x_y_z_a import XYZA
395        return XYZA(result)

Profiled Color to XYZ with Alpha

Converts a profiled color to XYZ channels with alpha.

Returns: Graph: A graph node producing a XYZA.

class ProfiledColorList(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
11class ProfiledColorList(List):
12    """List of Profiled Colors"""
13
14    def __init__(self, inner, resolved_type=None):
15        from .profiled_color import ProfiledColor
16        super().__init__(inner, ProfiledColor if resolved_type is None else resolved_type)
17
18    def execute(self, context):
19        return self._inner.execute(context)

List of Profiled Colors

ProfiledColorList(inner, resolved_type=None)
14    def __init__(self, inner, resolved_type=None):
15        from .profiled_color import ProfiledColor
16        super().__init__(inner, ProfiledColor if resolved_type is None else resolved_type)
class RGBAColor(brushcue.Object):
12class RGBAColor(Object):
13    """A color with a red, green, blue, and alpha component"""
14
15    def execute(self, context):
16        return self._inner.execute(context).as_rgba_color()
17
18    @staticmethod
19    def from_components(r, g, b, a) -> RGBAColor:
20        """RGBA Color from Components
21
22        Given the r, g, b and a creates the color
23
24        Args:
25            r: Graph of Float
26            g: Graph of Float
27            b: Graph of Float
28            a: Graph of Float
29
30        Returns:
31            Graph: A graph node producing a RGBAColor.
32        """
33        r_parsed = input_parsers.parse_float_graph(r)
34        g_parsed = input_parsers.parse_float_graph(g)
35        b_parsed = input_parsers.parse_float_graph(b)
36        a_parsed = input_parsers.parse_float_graph(a)
37        result = _internal.r_g_b_a_color_from_components_internal(r_parsed, g_parsed, b_parsed, a_parsed)
38        return RGBAColor(result)

A color with a red, green, blue, and alpha component

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context).as_rgba_color()
@staticmethod
def from_components(r, g, b, a) -> RGBAColor:
18    @staticmethod
19    def from_components(r, g, b, a) -> RGBAColor:
20        """RGBA Color from Components
21
22        Given the r, g, b and a creates the color
23
24        Args:
25            r: Graph of Float
26            g: Graph of Float
27            b: Graph of Float
28            a: Graph of Float
29
30        Returns:
31            Graph: A graph node producing a RGBAColor.
32        """
33        r_parsed = input_parsers.parse_float_graph(r)
34        g_parsed = input_parsers.parse_float_graph(g)
35        b_parsed = input_parsers.parse_float_graph(b)
36        a_parsed = input_parsers.parse_float_graph(a)
37        result = _internal.r_g_b_a_color_from_components_internal(r_parsed, g_parsed, b_parsed, a_parsed)
38        return RGBAColor(result)

RGBA Color from Components

Given the r, g, b and a creates the color

Args: r: Graph of Float g: Graph of Float b: Graph of Float a: Graph of Float

Returns: Graph: A graph node producing a RGBAColor.

class RGBColor(brushcue.Object):
12class RGBColor(Object):
13    """A color with a red, green and blue component"""
14
15    def execute(self, context):
16        return self._inner.execute(context)
17
18    @staticmethod
19    def from_components(r, g, b) -> RGBColor:
20        """RGB Color from Components
21
22        Given the r, g and b creates the color
23
24        Args:
25            r: Graph of Float
26            g: Graph of Float
27            b: Graph of Float
28
29        Returns:
30            Graph: A graph node producing a RGBColor.
31        """
32        r_parsed = input_parsers.parse_float_graph(r)
33        g_parsed = input_parsers.parse_float_graph(g)
34        b_parsed = input_parsers.parse_float_graph(b)
35        result = _internal.r_g_b_color_from_components_internal(r_parsed, g_parsed, b_parsed)
36        return RGBColor(result)

A color with a red, green and blue component

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context)
@staticmethod
def from_components(r, g, b) -> RGBColor:
18    @staticmethod
19    def from_components(r, g, b) -> RGBColor:
20        """RGB Color from Components
21
22        Given the r, g and b creates the color
23
24        Args:
25            r: Graph of Float
26            g: Graph of Float
27            b: Graph of Float
28
29        Returns:
30            Graph: A graph node producing a RGBColor.
31        """
32        r_parsed = input_parsers.parse_float_graph(r)
33        g_parsed = input_parsers.parse_float_graph(g)
34        b_parsed = input_parsers.parse_float_graph(b)
35        result = _internal.r_g_b_color_from_components_internal(r_parsed, g_parsed, b_parsed)
36        return RGBColor(result)

RGB Color from Components

Given the r, g and b creates the color

Args: r: Graph of Float g: Graph of Float b: Graph of Float

Returns: Graph: A graph node producing a RGBColor.

class RenderStyle(brushcue.Object):
12class RenderStyle(Object):
13    """Combining a fill and brush into a render style to create a 2D object."""
14
15    def execute(self, context):
16        return self._inner.execute(context)
17
18    @staticmethod
19    def brush_and_fill(brush, fill) -> RenderStyle:
20        """Render Style Brush and Fill
21
22        Creates a render style that will have a brush and a fill.
23
24        Args:
25            brush: Graph of Brush
26            fill: Graph of Fill
27
28        Returns:
29            Graph: A graph node producing a RenderStyle.
30        """
31        brush_parsed = input_parsers.parse_graph(brush)
32        fill_parsed = input_parsers.parse_graph(fill)
33        result = _internal.render_style_brush_and_fill_internal(brush_parsed, fill_parsed)
34        return RenderStyle(result)
35
36    @staticmethod
37    def brush_only(brush) -> RenderStyle:
38        """Render Style Brush Only
39
40        Creates a render style that will only have a brush.
41
42        Args:
43            brush: Graph of Brush
44
45        Returns:
46            Graph: A graph node producing a RenderStyle.
47        """
48        brush_parsed = input_parsers.parse_graph(brush)
49        result = _internal.render_style_brush_only_internal(brush_parsed)
50        return RenderStyle(result)
51
52    @staticmethod
53    def fill_only(fill) -> RenderStyle:
54        """Render Style Fill Only
55
56        Creates a render style that will only have a fill.
57
58        Args:
59            fill: Graph of Fill
60
61        Returns:
62            Graph: A graph node producing a RenderStyle.
63        """
64        fill_parsed = input_parsers.parse_graph(fill)
65        result = _internal.render_style_fill_only_internal(fill_parsed)
66        return RenderStyle(result)
67
68    def set_eraser(self) -> RenderStyle:
69        """Render Style Set Eraser
70
71        Sets the render style to an eraser.
72
73        Returns:
74            Graph: A graph node producing a RenderStyle.
75        """
76        render_style_parsed = input_parsers.parse_graph(self)
77        result = _internal.render_style_set_eraser_internal(render_style_parsed)
78        return RenderStyle(result)

Combining a fill and brush into a render style to create a 2D object.

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context)
@staticmethod
def brush_and_fill(brush, fill) -> RenderStyle:
18    @staticmethod
19    def brush_and_fill(brush, fill) -> RenderStyle:
20        """Render Style Brush and Fill
21
22        Creates a render style that will have a brush and a fill.
23
24        Args:
25            brush: Graph of Brush
26            fill: Graph of Fill
27
28        Returns:
29            Graph: A graph node producing a RenderStyle.
30        """
31        brush_parsed = input_parsers.parse_graph(brush)
32        fill_parsed = input_parsers.parse_graph(fill)
33        result = _internal.render_style_brush_and_fill_internal(brush_parsed, fill_parsed)
34        return RenderStyle(result)

Render Style Brush and Fill

Creates a render style that will have a brush and a fill.

Args: brush: Graph of Brush fill: Graph of Fill

Returns: Graph: A graph node producing a RenderStyle.

@staticmethod
def brush_only(brush) -> RenderStyle:
36    @staticmethod
37    def brush_only(brush) -> RenderStyle:
38        """Render Style Brush Only
39
40        Creates a render style that will only have a brush.
41
42        Args:
43            brush: Graph of Brush
44
45        Returns:
46            Graph: A graph node producing a RenderStyle.
47        """
48        brush_parsed = input_parsers.parse_graph(brush)
49        result = _internal.render_style_brush_only_internal(brush_parsed)
50        return RenderStyle(result)

Render Style Brush Only

Creates a render style that will only have a brush.

Args: brush: Graph of Brush

Returns: Graph: A graph node producing a RenderStyle.

@staticmethod
def fill_only(fill) -> RenderStyle:
52    @staticmethod
53    def fill_only(fill) -> RenderStyle:
54        """Render Style Fill Only
55
56        Creates a render style that will only have a fill.
57
58        Args:
59            fill: Graph of Fill
60
61        Returns:
62            Graph: A graph node producing a RenderStyle.
63        """
64        fill_parsed = input_parsers.parse_graph(fill)
65        result = _internal.render_style_fill_only_internal(fill_parsed)
66        return RenderStyle(result)

Render Style Fill Only

Creates a render style that will only have a fill.

Args: fill: Graph of Fill

Returns: Graph: A graph node producing a RenderStyle.

def set_eraser(self) -> RenderStyle:
68    def set_eraser(self) -> RenderStyle:
69        """Render Style Set Eraser
70
71        Sets the render style to an eraser.
72
73        Returns:
74            Graph: A graph node producing a RenderStyle.
75        """
76        render_style_parsed = input_parsers.parse_graph(self)
77        result = _internal.render_style_set_eraser_internal(render_style_parsed)
78        return RenderStyle(result)

Render Style Set Eraser

Sets the render style to an eraser.

Returns: Graph: A graph node producing a RenderStyle.

class Sequence(brushcue.Object):
 19class Sequence(Object):
 20    """A sequence with a bunch of operations to render a movie"""
 21
 22    def execute(self, context):
 23        return self._inner.execute(context).as_sequence()
 24
 25    def adjust_speed(self, factor) -> Sequence:
 26        """Sequence Adjust Speed
 27
 28        Adjusts the speed of a sequence by a speed factor.
 29
 30        Args:
 31            factor: Graph of Float
 32
 33        Returns:
 34            Graph: A graph node producing a Sequence.
 35        """
 36        sequence_parsed = input_parsers.parse_graph(self)
 37        factor_parsed = input_parsers.parse_float_graph(factor)
 38        result = _internal.sequence_adjust_speed_internal(sequence_parsed, factor_parsed)
 39        return Sequence(result)
 40
 41    def composition_at_time(self, time) -> composition.Composition:
 42        """Sequence Composition at Time
 43
 44        Extracts an composition from a sequence at a particular time
 45
 46        Args:
 47            time: Graph of Float
 48
 49        Returns:
 50            Graph: A graph node producing a Composition.
 51        """
 52        sequence_parsed = input_parsers.parse_graph(self)
 53        time_parsed = input_parsers.parse_float_graph(time)
 54        result = _internal.sequence_composition_at_time_internal(sequence_parsed, time_parsed)
 55        from .composition import Composition
 56        return Composition(result)
 57
 58    def concatenate(self, sequence_2) -> Sequence:
 59        """Sequence Concatenate
 60
 61        Given two sequences, combines them into one by playing the first one and then the second one.
 62
 63        Args:
 64            sequence_2: Graph of Sequence
 65
 66        Returns:
 67            Graph: A graph node producing a Sequence.
 68        """
 69        sequence_1_parsed = input_parsers.parse_graph(self)
 70        sequence_2_parsed = input_parsers.parse_graph(sequence_2)
 71        result = _internal.sequence_concatenate_internal(sequence_1_parsed, sequence_2_parsed)
 72        return Sequence(result)
 73
 74    def duration(self) -> float.Float:
 75        """Sequence Duration
 76
 77        Gets the duration from a sequence
 78
 79        Returns:
 80            Graph: A graph node producing a Float.
 81        """
 82        sequence_parsed = input_parsers.parse_graph(self)
 83        result = _internal.sequence_duration_internal(sequence_parsed)
 84        from .float import Float
 85        return Float(result)
 86
 87    @staticmethod
 88    def from_composition_and_duration(composition, duration) -> Sequence:
 89        """Sequence from Composition and Duration
 90
 91        Give a Composition and a Duration. Returns a Sequence.
 92
 93        Args:
 94            composition: Graph of Composition
 95            duration: Graph of Float
 96
 97        Returns:
 98            Graph: A graph node producing a Sequence.
 99        """
100        composition_parsed = input_parsers.parse_graph(composition)
101        duration_parsed = input_parsers.parse_float_graph(duration)
102        result = _internal.sequence_from_composition_and_duration_internal(composition_parsed, duration_parsed)
103        return Sequence(result)
104
105    @staticmethod
106    def from_url(url) -> Sequence:
107        """Sequence from URL
108
109        Creates a sequence from URL
110
111        Args:
112            url: Graph of String
113
114        Returns:
115            Graph: A graph node producing a Sequence.
116        """
117        url_parsed = input_parsers.parse_string_graph(url)
118        result = _internal.sequence_from_u_r_l_internal(url_parsed)
119        return Sequence(result)
120
121    @staticmethod
122    def graph(duration, fn) -> Sequence:
123        """Sequence Graph
124
125        Creates a sequence that runs the graph to get the duration and the frame for each time.
126
127        Args:
128            duration: Graph of Float
129            fn: The function associated with this node.
130
131        Returns:
132            Graph: A graph node producing a Sequence.
133        """
134        duration_parsed = input_parsers.parse_float_graph(duration)
135        if not hasattr(fn, "__brushcue_make_graph__"):
136            raise TypeError("fn must be annotated with @brushcue_fn")
137        dispatched_graphs = fn.__brushcue_make_graph__([
138            _internal.TypeDefinition.from_name("Float")
139            ])
140        result = _internal.sequence_graph_internal(duration_parsed, *dispatched_graphs
141            )
142
143        return Sequence(result)
144
145    def reverse(self) -> Sequence:
146        """Sequence Reverse
147
148        Given a sequence. Reverses it.
149
150        Returns:
151            Graph: A graph node producing a Sequence.
152        """
153        sequence_parsed = input_parsers.parse_graph(self)
154        result = _internal.sequence_reverse_internal(sequence_parsed)
155        return Sequence(result)
156
157    def to_mp4(self, frame_rate) -> bytes.Bytes:
158        """Sequence To MP4
159
160        Given a sequence. Converts it to MP4 return a local file to where that MP4 is stored.
161
162        Args:
163            frame_rate: Graph of Int
164
165        Returns:
166            Graph: A graph node producing a Bytes.
167        """
168        sequence_parsed = input_parsers.parse_graph(self)
169        frame_rate_parsed = input_parsers.parse_int_graph(frame_rate)
170        result = _internal.sequence_to_mp4_internal(sequence_parsed, frame_rate_parsed)
171        from .bytes import Bytes
172        return Bytes(result)
173
174    def trim_back(self, amount) -> Sequence:
175        """Sequence Trim Back
176
177        Given a sequence. Trims from the back.
178
179        Args:
180            amount: Graph of Float
181
182        Returns:
183            Graph: A graph node producing a Sequence.
184        """
185        sequence_parsed = input_parsers.parse_graph(self)
186        amount_parsed = input_parsers.parse_float_graph(amount)
187        result = _internal.sequence_trim_back_internal(sequence_parsed, amount_parsed)
188        return Sequence(result)
189
190    def trim_front(self, amount) -> Sequence:
191        """Sequence Trim Front
192
193        Given a sequence. Trims from the front.
194
195        Args:
196            amount: Graph of Float
197
198        Returns:
199            Graph: A graph node producing a Sequence.
200        """
201        sequence_parsed = input_parsers.parse_graph(self)
202        amount_parsed = input_parsers.parse_float_graph(amount)
203        result = _internal.sequence_trim_front_internal(sequence_parsed, amount_parsed)
204        return Sequence(result)

A sequence with a bunch of operations to render a movie

def execute(self, context):
22    def execute(self, context):
23        return self._inner.execute(context).as_sequence()
def adjust_speed(self, factor) -> Sequence:
25    def adjust_speed(self, factor) -> Sequence:
26        """Sequence Adjust Speed
27
28        Adjusts the speed of a sequence by a speed factor.
29
30        Args:
31            factor: Graph of Float
32
33        Returns:
34            Graph: A graph node producing a Sequence.
35        """
36        sequence_parsed = input_parsers.parse_graph(self)
37        factor_parsed = input_parsers.parse_float_graph(factor)
38        result = _internal.sequence_adjust_speed_internal(sequence_parsed, factor_parsed)
39        return Sequence(result)

Sequence Adjust Speed

Adjusts the speed of a sequence by a speed factor.

Args: factor: Graph of Float

Returns: Graph: A graph node producing a Sequence.

def composition_at_time(self, time) -> Composition:
41    def composition_at_time(self, time) -> composition.Composition:
42        """Sequence Composition at Time
43
44        Extracts an composition from a sequence at a particular time
45
46        Args:
47            time: Graph of Float
48
49        Returns:
50            Graph: A graph node producing a Composition.
51        """
52        sequence_parsed = input_parsers.parse_graph(self)
53        time_parsed = input_parsers.parse_float_graph(time)
54        result = _internal.sequence_composition_at_time_internal(sequence_parsed, time_parsed)
55        from .composition import Composition
56        return Composition(result)

Sequence Composition at Time

Extracts an composition from a sequence at a particular time

Args: time: Graph of Float

Returns: Graph: A graph node producing a Composition.

def concatenate(self, sequence_2) -> Sequence:
58    def concatenate(self, sequence_2) -> Sequence:
59        """Sequence Concatenate
60
61        Given two sequences, combines them into one by playing the first one and then the second one.
62
63        Args:
64            sequence_2: Graph of Sequence
65
66        Returns:
67            Graph: A graph node producing a Sequence.
68        """
69        sequence_1_parsed = input_parsers.parse_graph(self)
70        sequence_2_parsed = input_parsers.parse_graph(sequence_2)
71        result = _internal.sequence_concatenate_internal(sequence_1_parsed, sequence_2_parsed)
72        return Sequence(result)

Sequence Concatenate

Given two sequences, combines them into one by playing the first one and then the second one.

Args: sequence_2: Graph of Sequence

Returns: Graph: A graph node producing a Sequence.

def duration(self) -> Float:
74    def duration(self) -> float.Float:
75        """Sequence Duration
76
77        Gets the duration from a sequence
78
79        Returns:
80            Graph: A graph node producing a Float.
81        """
82        sequence_parsed = input_parsers.parse_graph(self)
83        result = _internal.sequence_duration_internal(sequence_parsed)
84        from .float import Float
85        return Float(result)

Sequence Duration

Gets the duration from a sequence

Returns: Graph: A graph node producing a Float.

@staticmethod
def from_composition_and_duration(composition, duration) -> Sequence:
 87    @staticmethod
 88    def from_composition_and_duration(composition, duration) -> Sequence:
 89        """Sequence from Composition and Duration
 90
 91        Give a Composition and a Duration. Returns a Sequence.
 92
 93        Args:
 94            composition: Graph of Composition
 95            duration: Graph of Float
 96
 97        Returns:
 98            Graph: A graph node producing a Sequence.
 99        """
100        composition_parsed = input_parsers.parse_graph(composition)
101        duration_parsed = input_parsers.parse_float_graph(duration)
102        result = _internal.sequence_from_composition_and_duration_internal(composition_parsed, duration_parsed)
103        return Sequence(result)

Sequence from Composition and Duration

Give a Composition and a Duration. Returns a Sequence.

Args: composition: Graph of Composition duration: Graph of Float

Returns: Graph: A graph node producing a Sequence.

@staticmethod
def from_url(url) -> Sequence:
105    @staticmethod
106    def from_url(url) -> Sequence:
107        """Sequence from URL
108
109        Creates a sequence from URL
110
111        Args:
112            url: Graph of String
113
114        Returns:
115            Graph: A graph node producing a Sequence.
116        """
117        url_parsed = input_parsers.parse_string_graph(url)
118        result = _internal.sequence_from_u_r_l_internal(url_parsed)
119        return Sequence(result)

Sequence from URL

Creates a sequence from URL

Args: url: Graph of String

Returns: Graph: A graph node producing a Sequence.

@staticmethod
def graph(duration, fn) -> Sequence:
121    @staticmethod
122    def graph(duration, fn) -> Sequence:
123        """Sequence Graph
124
125        Creates a sequence that runs the graph to get the duration and the frame for each time.
126
127        Args:
128            duration: Graph of Float
129            fn: The function associated with this node.
130
131        Returns:
132            Graph: A graph node producing a Sequence.
133        """
134        duration_parsed = input_parsers.parse_float_graph(duration)
135        if not hasattr(fn, "__brushcue_make_graph__"):
136            raise TypeError("fn must be annotated with @brushcue_fn")
137        dispatched_graphs = fn.__brushcue_make_graph__([
138            _internal.TypeDefinition.from_name("Float")
139            ])
140        result = _internal.sequence_graph_internal(duration_parsed, *dispatched_graphs
141            )
142
143        return Sequence(result)

Sequence Graph

Creates a sequence that runs the graph to get the duration and the frame for each time.

Args: duration: Graph of Float fn: The function associated with this node.

Returns: Graph: A graph node producing a Sequence.

def reverse(self) -> Sequence:
145    def reverse(self) -> Sequence:
146        """Sequence Reverse
147
148        Given a sequence. Reverses it.
149
150        Returns:
151            Graph: A graph node producing a Sequence.
152        """
153        sequence_parsed = input_parsers.parse_graph(self)
154        result = _internal.sequence_reverse_internal(sequence_parsed)
155        return Sequence(result)

Sequence Reverse

Given a sequence. Reverses it.

Returns: Graph: A graph node producing a Sequence.

def to_mp4(self, frame_rate) -> Bytes:
157    def to_mp4(self, frame_rate) -> bytes.Bytes:
158        """Sequence To MP4
159
160        Given a sequence. Converts it to MP4 return a local file to where that MP4 is stored.
161
162        Args:
163            frame_rate: Graph of Int
164
165        Returns:
166            Graph: A graph node producing a Bytes.
167        """
168        sequence_parsed = input_parsers.parse_graph(self)
169        frame_rate_parsed = input_parsers.parse_int_graph(frame_rate)
170        result = _internal.sequence_to_mp4_internal(sequence_parsed, frame_rate_parsed)
171        from .bytes import Bytes
172        return Bytes(result)

Sequence To MP4

Given a sequence. Converts it to MP4 return a local file to where that MP4 is stored.

Args: frame_rate: Graph of Int

Returns: Graph: A graph node producing a Bytes.

def trim_back(self, amount) -> Sequence:
174    def trim_back(self, amount) -> Sequence:
175        """Sequence Trim Back
176
177        Given a sequence. Trims from the back.
178
179        Args:
180            amount: Graph of Float
181
182        Returns:
183            Graph: A graph node producing a Sequence.
184        """
185        sequence_parsed = input_parsers.parse_graph(self)
186        amount_parsed = input_parsers.parse_float_graph(amount)
187        result = _internal.sequence_trim_back_internal(sequence_parsed, amount_parsed)
188        return Sequence(result)

Sequence Trim Back

Given a sequence. Trims from the back.

Args: amount: Graph of Float

Returns: Graph: A graph node producing a Sequence.

def trim_front(self, amount) -> Sequence:
190    def trim_front(self, amount) -> Sequence:
191        """Sequence Trim Front
192
193        Given a sequence. Trims from the front.
194
195        Args:
196            amount: Graph of Float
197
198        Returns:
199            Graph: A graph node producing a Sequence.
200        """
201        sequence_parsed = input_parsers.parse_graph(self)
202        amount_parsed = input_parsers.parse_float_graph(amount)
203        result = _internal.sequence_trim_front_internal(sequence_parsed, amount_parsed)
204        return Sequence(result)

Sequence Trim Front

Given a sequence. Trims from the front.

Args: amount: Graph of Float

Returns: Graph: A graph node producing a Sequence.

class String(brushcue.Object):
18class String(Object):
19    """a string"""
20
21    def execute(self, context):
22        return self._inner.execute(context).as_string()
23
24    def to_character(self) -> character.Character:
25        """String to Character
26
27        Converts a string containing exactly one character to a character.
28
29        Returns:
30            Graph: A graph node producing a Character.
31        """
32        string_parsed = input_parsers.parse_string_graph(self)
33        result = _internal.string_to_character_internal(string_parsed)
34        from .character import Character
35        return Character(result)
36
37    def to_character_list(self) -> character_list.CharacterList:
38        """String to Character List
39
40        Splits a string into a list of its characters.
41
42        Returns:
43            Graph: A graph node producing a CharacterList.
44        """
45        string_parsed = input_parsers.parse_string_graph(self)
46        result = _internal.string_to_character_list_internal(string_parsed)
47        from .character_list import CharacterList
48        return CharacterList(result)

a string

def execute(self, context):
21    def execute(self, context):
22        return self._inner.execute(context).as_string()
def to_character(self) -> Character:
24    def to_character(self) -> character.Character:
25        """String to Character
26
27        Converts a string containing exactly one character to a character.
28
29        Returns:
30            Graph: A graph node producing a Character.
31        """
32        string_parsed = input_parsers.parse_string_graph(self)
33        result = _internal.string_to_character_internal(string_parsed)
34        from .character import Character
35        return Character(result)

String to Character

Converts a string containing exactly one character to a character.

Returns: Graph: A graph node producing a Character.

def to_character_list(self) -> CharacterList:
37    def to_character_list(self) -> character_list.CharacterList:
38        """String to Character List
39
40        Splits a string into a list of its characters.
41
42        Returns:
43            Graph: A graph node producing a CharacterList.
44        """
45        string_parsed = input_parsers.parse_string_graph(self)
46        result = _internal.string_to_character_list_internal(string_parsed)
47        from .character_list import CharacterList
48        return CharacterList(result)

String to Character List

Splits a string into a list of its characters.

Returns: Graph: A graph node producing a CharacterList.

class StringList(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
11class StringList(List):
12    """List of Strings"""
13
14    def __init__(self, inner, resolved_type=None):
15        from .string import String
16        super().__init__(inner, String if resolved_type is None else resolved_type)
17
18    def execute(self, context):
19        return self._inner.execute(context)

List of Strings

StringList(inner, resolved_type=None)
14    def __init__(self, inner, resolved_type=None):
15        from .string import String
16        super().__init__(inner, String if resolved_type is None else resolved_type)
class StyledCharacter(brushcue.Object):
12class StyledCharacter(Object):
13    """a character with style"""
14
15    def execute(self, context):
16        return self._inner.execute(context)
17
18    @staticmethod
19    def new(character, font, size, render_style) -> StyledCharacter:
20        """Styled Character New
21
22        Creates a new styled character
23
24        Args:
25            character: Graph of Character
26            font: Graph of Font
27            size: Graph of Float
28            render_style: Graph of RenderStyle
29
30        Returns:
31            Graph: A graph node producing a StyledCharacter.
32        """
33        character_parsed = input_parsers.parse_graph(character)
34        font_parsed = input_parsers.parse_graph(font)
35        size_parsed = input_parsers.parse_float_graph(size)
36        render_style_parsed = input_parsers.parse_graph(render_style)
37        result = _internal.styled_character_new_internal(character_parsed, font_parsed, size_parsed, render_style_parsed)
38        return StyledCharacter(result)

a character with style

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context)
@staticmethod
def new( character, font, size, render_style) -> StyledCharacter:
18    @staticmethod
19    def new(character, font, size, render_style) -> StyledCharacter:
20        """Styled Character New
21
22        Creates a new styled character
23
24        Args:
25            character: Graph of Character
26            font: Graph of Font
27            size: Graph of Float
28            render_style: Graph of RenderStyle
29
30        Returns:
31            Graph: A graph node producing a StyledCharacter.
32        """
33        character_parsed = input_parsers.parse_graph(character)
34        font_parsed = input_parsers.parse_graph(font)
35        size_parsed = input_parsers.parse_float_graph(size)
36        render_style_parsed = input_parsers.parse_graph(render_style)
37        result = _internal.styled_character_new_internal(character_parsed, font_parsed, size_parsed, render_style_parsed)
38        return StyledCharacter(result)

Styled Character New

Creates a new styled character

Args: character: Graph of Character font: Graph of Font size: Graph of Float render_style: Graph of RenderStyle

Returns: Graph: A graph node producing a StyledCharacter.

class StyledCharacterList(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
11class StyledCharacterList(List):
12    """List of Styled Characters"""
13
14    def __init__(self, inner, resolved_type=None):
15        from .styled_character import StyledCharacter
16        super().__init__(inner, StyledCharacter if resolved_type is None else resolved_type)
17
18    def execute(self, context):
19        return self._inner.execute(context)

List of Styled Characters

StyledCharacterList(inner, resolved_type=None)
14    def __init__(self, inner, resolved_type=None):
15        from .styled_character import StyledCharacter
16        super().__init__(inner, StyledCharacter if resolved_type is None else resolved_type)
class StyledString(brushcue.Object):
17class StyledString(Object):
18    """a string with style"""
19
20    def execute(self, context):
21        return self._inner.execute(context)
22
23    @staticmethod
24    def styled_string_from_characters_fixed(styled_character_list, bounds) -> StyledString:
25        """Styled String from Characters (Fixed)
26
27        Returns a styled string from a list of styled characters that wraps to and is placed within fixed bounds
28
29        Args:
30            styled_character_list: Graph of StyledCharacterList
31            bounds: Graph of Bounds2f
32
33        Returns:
34            Graph: A graph node producing a StyledString.
35        """
36        styled_character_list_parsed = input_parsers.parse_graph(styled_character_list)
37        bounds_parsed = input_parsers.parse_graph(bounds)
38        result = _internal.styled_string_from_characters_fixed_internal(styled_character_list_parsed, bounds_parsed)
39        return StyledString(result)
40
41    @staticmethod
42    def styled_string_from_characters_free(styled_character_list, origin) -> StyledString:
43        """Styled String from Characters (Free)
44
45        Returns a styled string from a list of styled characters that is not wrapped and starts at the origin
46
47        Args:
48            styled_character_list: Graph of StyledCharacterList
49            origin: Graph of Point2f
50
51        Returns:
52            Graph: A graph node producing a StyledString.
53        """
54        styled_character_list_parsed = input_parsers.parse_graph(styled_character_list)
55        origin_parsed = input_parsers.parse_graph(origin)
56        result = _internal.styled_string_from_characters_free_internal(styled_character_list_parsed, origin_parsed)
57        return StyledString(result)
58
59    @staticmethod
60    def styled_string_from_characters_max_width(styled_character_list, origin, max_width) -> StyledString:
61        """Styled String from Characters (Max Width)
62
63        Returns a styled string from a list of styled characters that wraps at a maximum width and starts at the origin
64
65        Args:
66            styled_character_list: Graph of StyledCharacterList
67            origin: Graph of Point2f
68            max_width: Graph of Float
69
70        Returns:
71            Graph: A graph node producing a StyledString.
72        """
73        styled_character_list_parsed = input_parsers.parse_graph(styled_character_list)
74        origin_parsed = input_parsers.parse_graph(origin)
75        max_width_parsed = input_parsers.parse_float_graph(max_width)
76        result = _internal.styled_string_from_characters_max_width_internal(styled_character_list_parsed, origin_parsed, max_width_parsed)
77        return StyledString(result)
78
79    def styled_string_to_characters(self) -> styled_character_list.StyledCharacterList:
80        """Styled String to Characters
81
82        Returns a list of styled characters for a styled string
83
84        Returns:
85            Graph: A graph node producing a StyledCharacterList.
86        """
87        styled_string_parsed = input_parsers.parse_graph(self)
88        result = _internal.styled_string_to_characters_internal(styled_string_parsed)
89        from .styled_character_list import StyledCharacterList
90        return StyledCharacterList(result)

a string with style

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context)
@staticmethod
def styled_string_from_characters_fixed(styled_character_list, bounds) -> StyledString:
23    @staticmethod
24    def styled_string_from_characters_fixed(styled_character_list, bounds) -> StyledString:
25        """Styled String from Characters (Fixed)
26
27        Returns a styled string from a list of styled characters that wraps to and is placed within fixed bounds
28
29        Args:
30            styled_character_list: Graph of StyledCharacterList
31            bounds: Graph of Bounds2f
32
33        Returns:
34            Graph: A graph node producing a StyledString.
35        """
36        styled_character_list_parsed = input_parsers.parse_graph(styled_character_list)
37        bounds_parsed = input_parsers.parse_graph(bounds)
38        result = _internal.styled_string_from_characters_fixed_internal(styled_character_list_parsed, bounds_parsed)
39        return StyledString(result)

Styled String from Characters (Fixed)

Returns a styled string from a list of styled characters that wraps to and is placed within fixed bounds

Args: styled_character_list: Graph of StyledCharacterList bounds: Graph of Bounds2f

Returns: Graph: A graph node producing a StyledString.

@staticmethod
def styled_string_from_characters_free(styled_character_list, origin) -> StyledString:
41    @staticmethod
42    def styled_string_from_characters_free(styled_character_list, origin) -> StyledString:
43        """Styled String from Characters (Free)
44
45        Returns a styled string from a list of styled characters that is not wrapped and starts at the origin
46
47        Args:
48            styled_character_list: Graph of StyledCharacterList
49            origin: Graph of Point2f
50
51        Returns:
52            Graph: A graph node producing a StyledString.
53        """
54        styled_character_list_parsed = input_parsers.parse_graph(styled_character_list)
55        origin_parsed = input_parsers.parse_graph(origin)
56        result = _internal.styled_string_from_characters_free_internal(styled_character_list_parsed, origin_parsed)
57        return StyledString(result)

Styled String from Characters (Free)

Returns a styled string from a list of styled characters that is not wrapped and starts at the origin

Args: styled_character_list: Graph of StyledCharacterList origin: Graph of Point2f

Returns: Graph: A graph node producing a StyledString.

@staticmethod
def styled_string_from_characters_max_width( styled_character_list, origin, max_width) -> StyledString:
59    @staticmethod
60    def styled_string_from_characters_max_width(styled_character_list, origin, max_width) -> StyledString:
61        """Styled String from Characters (Max Width)
62
63        Returns a styled string from a list of styled characters that wraps at a maximum width and starts at the origin
64
65        Args:
66            styled_character_list: Graph of StyledCharacterList
67            origin: Graph of Point2f
68            max_width: Graph of Float
69
70        Returns:
71            Graph: A graph node producing a StyledString.
72        """
73        styled_character_list_parsed = input_parsers.parse_graph(styled_character_list)
74        origin_parsed = input_parsers.parse_graph(origin)
75        max_width_parsed = input_parsers.parse_float_graph(max_width)
76        result = _internal.styled_string_from_characters_max_width_internal(styled_character_list_parsed, origin_parsed, max_width_parsed)
77        return StyledString(result)

Styled String from Characters (Max Width)

Returns a styled string from a list of styled characters that wraps at a maximum width and starts at the origin

Args: styled_character_list: Graph of StyledCharacterList origin: Graph of Point2f max_width: Graph of Float

Returns: Graph: A graph node producing a StyledString.

def styled_string_to_characters(self) -> StyledCharacterList:
79    def styled_string_to_characters(self) -> styled_character_list.StyledCharacterList:
80        """Styled String to Characters
81
82        Returns a list of styled characters for a styled string
83
84        Returns:
85            Graph: A graph node producing a StyledCharacterList.
86        """
87        styled_string_parsed = input_parsers.parse_graph(self)
88        result = _internal.styled_string_to_characters_internal(styled_string_parsed)
89        from .styled_character_list import StyledCharacterList
90        return StyledCharacterList(result)

Styled String to Characters

Returns a list of styled characters for a styled string

Returns: Graph: A graph node producing a StyledCharacterList.

class Transform2(brushcue.Object):
12class Transform2(Object):
13    """A 2D Transformation"""
14
15    def execute(self, context):
16        return self._inner.execute(context)
17
18    @staticmethod
19    def identity() -> Transform2:
20        """Transform 2D Identity
21
22        Creates a 2D transform that is the identity transform.
23
24        Returns:
25            Graph: A graph node producing a Transform2.
26        """
27        result = _internal.transform2_identity_internal()
28        return Transform2(result)
29
30    def rotate(self, angle) -> Transform2:
31        """Transform 2D Rotate
32
33        Applies a rotation to a 2D transform. Rotation is in radians.
34
35        Args:
36            angle: Graph of Float
37
38        Returns:
39            Graph: A graph node producing a Transform2.
40        """
41        transform_parsed = input_parsers.parse_graph(self)
42        angle_parsed = input_parsers.parse_float_graph(angle)
43        result = _internal.transform2_rotate_internal(transform_parsed, angle_parsed)
44        return Transform2(result)
45
46    def scale(self, scale) -> Transform2:
47        """Transform 2D Scale
48
49        Applies a scale to a 2D transform.
50
51        Args:
52            scale: Graph of Vector2f
53
54        Returns:
55            Graph: A graph node producing a Transform2.
56        """
57        transform_parsed = input_parsers.parse_graph(self)
58        scale_parsed = input_parsers.parse_graph(scale)
59        result = _internal.transform2_scale_internal(transform_parsed, scale_parsed)
60        return Transform2(result)
61
62    def translation(self, translation) -> Transform2:
63        """Transform 2D Translation
64
65        Applies a translation to a 2D transform.
66
67        Args:
68            translation: Graph of Vector2f
69
70        Returns:
71            Graph: A graph node producing a Transform2.
72        """
73        transform_parsed = input_parsers.parse_graph(self)
74        translation_parsed = input_parsers.parse_graph(translation)
75        result = _internal.transform2_translation_internal(transform_parsed, translation_parsed)
76        return Transform2(result)

A 2D Transformation

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context)
@staticmethod
def identity() -> Transform2:
18    @staticmethod
19    def identity() -> Transform2:
20        """Transform 2D Identity
21
22        Creates a 2D transform that is the identity transform.
23
24        Returns:
25            Graph: A graph node producing a Transform2.
26        """
27        result = _internal.transform2_identity_internal()
28        return Transform2(result)

Transform 2D Identity

Creates a 2D transform that is the identity transform.

Returns: Graph: A graph node producing a Transform2.

def rotate(self, angle) -> Transform2:
30    def rotate(self, angle) -> Transform2:
31        """Transform 2D Rotate
32
33        Applies a rotation to a 2D transform. Rotation is in radians.
34
35        Args:
36            angle: Graph of Float
37
38        Returns:
39            Graph: A graph node producing a Transform2.
40        """
41        transform_parsed = input_parsers.parse_graph(self)
42        angle_parsed = input_parsers.parse_float_graph(angle)
43        result = _internal.transform2_rotate_internal(transform_parsed, angle_parsed)
44        return Transform2(result)

Transform 2D Rotate

Applies a rotation to a 2D transform. Rotation is in radians.

Args: angle: Graph of Float

Returns: Graph: A graph node producing a Transform2.

def scale(self, scale) -> Transform2:
46    def scale(self, scale) -> Transform2:
47        """Transform 2D Scale
48
49        Applies a scale to a 2D transform.
50
51        Args:
52            scale: Graph of Vector2f
53
54        Returns:
55            Graph: A graph node producing a Transform2.
56        """
57        transform_parsed = input_parsers.parse_graph(self)
58        scale_parsed = input_parsers.parse_graph(scale)
59        result = _internal.transform2_scale_internal(transform_parsed, scale_parsed)
60        return Transform2(result)

Transform 2D Scale

Applies a scale to a 2D transform.

Args: scale: Graph of Vector2f

Returns: Graph: A graph node producing a Transform2.

def translation(self, translation) -> Transform2:
62    def translation(self, translation) -> Transform2:
63        """Transform 2D Translation
64
65        Applies a translation to a 2D transform.
66
67        Args:
68            translation: Graph of Vector2f
69
70        Returns:
71            Graph: A graph node producing a Transform2.
72        """
73        transform_parsed = input_parsers.parse_graph(self)
74        translation_parsed = input_parsers.parse_graph(translation)
75        result = _internal.transform2_translation_internal(transform_parsed, translation_parsed)
76        return Transform2(result)

Transform 2D Translation

Applies a translation to a 2D transform.

Args: translation: Graph of Vector2f

Returns: Graph: A graph node producing a Transform2.

class Transform2List(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
11class Transform2List(List):
12    """List of Transform 2Ds"""
13
14    def __init__(self, inner, resolved_type=None):
15        from .transform2 import Transform2
16        super().__init__(inner, Transform2 if resolved_type is None else resolved_type)
17
18    def execute(self, context):
19        return self._inner.execute(context)

List of Transform 2Ds

Transform2List(inner, resolved_type=None)
14    def __init__(self, inner, resolved_type=None):
15        from .transform2 import Transform2
16        super().__init__(inner, Transform2 if resolved_type is None else resolved_type)
class Vector2f(brushcue.Object):
 17class Vector2f(Object):
 18    """A vector with two elements of Floats"""
 19
 20    def execute(self, context):
 21        return self._inner.execute(context).as_vector2f()
 22
 23    def add(self, rhs) -> Vector2f:
 24        """Vector 2 Float Add
 25
 26        Add two Vector 2s of Floats
 27
 28        Args:
 29            rhs: Graph of Vector2f
 30
 31        Returns:
 32            Graph: A graph node producing a Vector2f.
 33        """
 34        lhs_parsed = input_parsers.parse_graph(self)
 35        rhs_parsed = input_parsers.parse_graph(rhs)
 36        result = _internal.vector2f_add_internal(lhs_parsed, rhs_parsed)
 37        return Vector2f(result)
 38
 39    @staticmethod
 40    def from_components(x, y) -> Vector2f:
 41        """Vector 2 Float from Components
 42
 43        Given an x and y creates a vector.
 44
 45        Args:
 46            x: Graph of Float
 47            y: Graph of Float
 48
 49        Returns:
 50            Graph: A graph node producing a Vector2f.
 51        """
 52        x_parsed = input_parsers.parse_float_graph(x)
 53        y_parsed = input_parsers.parse_float_graph(y)
 54        result = _internal.vector2f_from_components_internal(x_parsed, y_parsed)
 55        return Vector2f(result)
 56
 57    def normalize(self) -> Vector2f:
 58        """Vector 2 Float Normalize
 59
 60        Normalizes a Vector. Converting it's length to 1.
 61
 62        Returns:
 63            Graph: A graph node producing a Vector2f.
 64        """
 65        vector_parsed = input_parsers.parse_graph(self)
 66        result = _internal.vector2f_normalize_internal(vector_parsed)
 67        return Vector2f(result)
 68
 69    def scalar_multiply(self, scalar) -> Vector2f:
 70        """Vector 2 Float Scalar Multiply
 71
 72        Multiplies each element of the Vector as a scalar
 73
 74        Args:
 75            scalar: Graph of Float
 76
 77        Returns:
 78            Graph: A graph node producing a Vector2f.
 79        """
 80        vector_parsed = input_parsers.parse_graph(self)
 81        scalar_parsed = input_parsers.parse_float_graph(scalar)
 82        result = _internal.vector2f_scalar_multiply_internal(vector_parsed, scalar_parsed)
 83        return Vector2f(result)
 84
 85    def x(self) -> float.Float:
 86        """Vector 2 Float get X
 87
 88        Retrieves the X component of a Vector 2 Float.
 89
 90        Returns:
 91            Graph: A graph node producing a Float.
 92        """
 93        vector_parsed = input_parsers.parse_graph(self)
 94        result = _internal.vector2f_x_internal(vector_parsed)
 95        from .float import Float
 96        return Float(result)
 97
 98    def y(self) -> float.Float:
 99        """Vector 2 Float get Y
100
101        Retrieves the Y component of a Vector 2 Float.
102
103        Returns:
104            Graph: A graph node producing a Float.
105        """
106        vector_parsed = input_parsers.parse_graph(self)
107        result = _internal.vector2f_y_internal(vector_parsed)
108        from .float import Float
109        return Float(result)

A vector with two elements of Floats

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context).as_vector2f()
def add(self, rhs) -> Vector2f:
23    def add(self, rhs) -> Vector2f:
24        """Vector 2 Float Add
25
26        Add two Vector 2s of Floats
27
28        Args:
29            rhs: Graph of Vector2f
30
31        Returns:
32            Graph: A graph node producing a Vector2f.
33        """
34        lhs_parsed = input_parsers.parse_graph(self)
35        rhs_parsed = input_parsers.parse_graph(rhs)
36        result = _internal.vector2f_add_internal(lhs_parsed, rhs_parsed)
37        return Vector2f(result)

Vector 2 Float Add

Add two Vector 2s of Floats

Args: rhs: Graph of Vector2f

Returns: Graph: A graph node producing a Vector2f.

@staticmethod
def from_components(x, y) -> Vector2f:
39    @staticmethod
40    def from_components(x, y) -> Vector2f:
41        """Vector 2 Float from Components
42
43        Given an x and y creates a vector.
44
45        Args:
46            x: Graph of Float
47            y: Graph of Float
48
49        Returns:
50            Graph: A graph node producing a Vector2f.
51        """
52        x_parsed = input_parsers.parse_float_graph(x)
53        y_parsed = input_parsers.parse_float_graph(y)
54        result = _internal.vector2f_from_components_internal(x_parsed, y_parsed)
55        return Vector2f(result)

Vector 2 Float from Components

Given an x and y creates a vector.

Args: x: Graph of Float y: Graph of Float

Returns: Graph: A graph node producing a Vector2f.

def normalize(self) -> Vector2f:
57    def normalize(self) -> Vector2f:
58        """Vector 2 Float Normalize
59
60        Normalizes a Vector. Converting it's length to 1.
61
62        Returns:
63            Graph: A graph node producing a Vector2f.
64        """
65        vector_parsed = input_parsers.parse_graph(self)
66        result = _internal.vector2f_normalize_internal(vector_parsed)
67        return Vector2f(result)

Vector 2 Float Normalize

Normalizes a Vector. Converting it's length to 1.

Returns: Graph: A graph node producing a Vector2f.

def scalar_multiply(self, scalar) -> Vector2f:
69    def scalar_multiply(self, scalar) -> Vector2f:
70        """Vector 2 Float Scalar Multiply
71
72        Multiplies each element of the Vector as a scalar
73
74        Args:
75            scalar: Graph of Float
76
77        Returns:
78            Graph: A graph node producing a Vector2f.
79        """
80        vector_parsed = input_parsers.parse_graph(self)
81        scalar_parsed = input_parsers.parse_float_graph(scalar)
82        result = _internal.vector2f_scalar_multiply_internal(vector_parsed, scalar_parsed)
83        return Vector2f(result)

Vector 2 Float Scalar Multiply

Multiplies each element of the Vector as a scalar

Args: scalar: Graph of Float

Returns: Graph: A graph node producing a Vector2f.

def x(self) -> Float:
85    def x(self) -> float.Float:
86        """Vector 2 Float get X
87
88        Retrieves the X component of a Vector 2 Float.
89
90        Returns:
91            Graph: A graph node producing a Float.
92        """
93        vector_parsed = input_parsers.parse_graph(self)
94        result = _internal.vector2f_x_internal(vector_parsed)
95        from .float import Float
96        return Float(result)

Vector 2 Float get X

Retrieves the X component of a Vector 2 Float.

Returns: Graph: A graph node producing a Float.

def y(self) -> Float:
 98    def y(self) -> float.Float:
 99        """Vector 2 Float get Y
100
101        Retrieves the Y component of a Vector 2 Float.
102
103        Returns:
104            Graph: A graph node producing a Float.
105        """
106        vector_parsed = input_parsers.parse_graph(self)
107        result = _internal.vector2f_y_internal(vector_parsed)
108        from .float import Float
109        return Float(result)

Vector 2 Float get Y

Retrieves the Y component of a Vector 2 Float.

Returns: Graph: A graph node producing a Float.

class Vector2i(brushcue.Object):
 18class Vector2i(Object):
 19    """A vector with two elements of Ints"""
 20
 21    def execute(self, context):
 22        return self._inner.execute(context).as_vector2i()
 23
 24    def vector2int_to_vector2float(self) -> vector2f.Vector2f:
 25        """Vector 2 Int to Vector 2 Float
 26
 27        Given a Vector 2 Int. Creates a Vector 2 Float.
 28
 29        Returns:
 30            Graph: A graph node producing a Vector2f.
 31        """
 32        vector_parsed = input_parsers.parse_graph(self)
 33        result = _internal.vector2_int_to_vector2_float_internal(vector_parsed)
 34        from .vector2f import Vector2f
 35        return Vector2f(result)
 36
 37    def add(self, rhs) -> Vector2i:
 38        """Vector 2 Int Add
 39
 40        Add two Vector 2s of Ints
 41
 42        Args:
 43            rhs: Graph of Vector2i
 44
 45        Returns:
 46            Graph: A graph node producing a Vector2i.
 47        """
 48        lhs_parsed = input_parsers.parse_graph(self)
 49        rhs_parsed = input_parsers.parse_graph(rhs)
 50        result = _internal.vector2i_add_internal(lhs_parsed, rhs_parsed)
 51        return Vector2i(result)
 52
 53    @staticmethod
 54    def from_components(x, y) -> Vector2i:
 55        """Vector 2 Int from Components
 56
 57        Given an x and y creates a vector.
 58
 59        Args:
 60            x: Graph of Int
 61            y: Graph of Int
 62
 63        Returns:
 64            Graph: A graph node producing a Vector2i.
 65        """
 66        x_parsed = input_parsers.parse_int_graph(x)
 67        y_parsed = input_parsers.parse_int_graph(y)
 68        result = _internal.vector2i_from_components_internal(x_parsed, y_parsed)
 69        return Vector2i(result)
 70
 71    def to_vector2f(self) -> vector2f.Vector2f:
 72        """Vector 2 Int to Vector 2 Float
 73
 74        Given a Vector 2 Int. Creates a Vector 2 Float.
 75
 76        Returns:
 77            Graph: A graph node producing a Vector2f.
 78        """
 79        vector_parsed = input_parsers.parse_graph(self)
 80        result = _internal.vector2i_to_vector2f_internal(vector_parsed)
 81        from .vector2f import Vector2f
 82        return Vector2f(result)
 83
 84    def x(self) -> int.Int:
 85        """Vector 2 Int get X
 86
 87        Retrieves the X component of a Vector 2 Int.
 88
 89        Returns:
 90            Graph: A graph node producing a Int.
 91        """
 92        vector_parsed = input_parsers.parse_graph(self)
 93        result = _internal.vector2i_x_internal(vector_parsed)
 94        from .int import Int
 95        return Int(result)
 96
 97    def y(self) -> int.Int:
 98        """Vector 2 Int get Y
 99
100        Retrieves the Y component of a Vector 2 Int.
101
102        Returns:
103            Graph: A graph node producing a Int.
104        """
105        vector_parsed = input_parsers.parse_graph(self)
106        result = _internal.vector2i_y_internal(vector_parsed)
107        from .int import Int
108        return Int(result)

A vector with two elements of Ints

def execute(self, context):
21    def execute(self, context):
22        return self._inner.execute(context).as_vector2i()
def vector2int_to_vector2float(self) -> Vector2f:
24    def vector2int_to_vector2float(self) -> vector2f.Vector2f:
25        """Vector 2 Int to Vector 2 Float
26
27        Given a Vector 2 Int. Creates a Vector 2 Float.
28
29        Returns:
30            Graph: A graph node producing a Vector2f.
31        """
32        vector_parsed = input_parsers.parse_graph(self)
33        result = _internal.vector2_int_to_vector2_float_internal(vector_parsed)
34        from .vector2f import Vector2f
35        return Vector2f(result)

Vector 2 Int to Vector 2 Float

Given a Vector 2 Int. Creates a Vector 2 Float.

Returns: Graph: A graph node producing a Vector2f.

def add(self, rhs) -> Vector2i:
37    def add(self, rhs) -> Vector2i:
38        """Vector 2 Int Add
39
40        Add two Vector 2s of Ints
41
42        Args:
43            rhs: Graph of Vector2i
44
45        Returns:
46            Graph: A graph node producing a Vector2i.
47        """
48        lhs_parsed = input_parsers.parse_graph(self)
49        rhs_parsed = input_parsers.parse_graph(rhs)
50        result = _internal.vector2i_add_internal(lhs_parsed, rhs_parsed)
51        return Vector2i(result)

Vector 2 Int Add

Add two Vector 2s of Ints

Args: rhs: Graph of Vector2i

Returns: Graph: A graph node producing a Vector2i.

@staticmethod
def from_components(x, y) -> Vector2i:
53    @staticmethod
54    def from_components(x, y) -> Vector2i:
55        """Vector 2 Int from Components
56
57        Given an x and y creates a vector.
58
59        Args:
60            x: Graph of Int
61            y: Graph of Int
62
63        Returns:
64            Graph: A graph node producing a Vector2i.
65        """
66        x_parsed = input_parsers.parse_int_graph(x)
67        y_parsed = input_parsers.parse_int_graph(y)
68        result = _internal.vector2i_from_components_internal(x_parsed, y_parsed)
69        return Vector2i(result)

Vector 2 Int from Components

Given an x and y creates a vector.

Args: x: Graph of Int y: Graph of Int

Returns: Graph: A graph node producing a Vector2i.

def to_vector2f(self) -> Vector2f:
71    def to_vector2f(self) -> vector2f.Vector2f:
72        """Vector 2 Int to Vector 2 Float
73
74        Given a Vector 2 Int. Creates a Vector 2 Float.
75
76        Returns:
77            Graph: A graph node producing a Vector2f.
78        """
79        vector_parsed = input_parsers.parse_graph(self)
80        result = _internal.vector2i_to_vector2f_internal(vector_parsed)
81        from .vector2f import Vector2f
82        return Vector2f(result)

Vector 2 Int to Vector 2 Float

Given a Vector 2 Int. Creates a Vector 2 Float.

Returns: Graph: A graph node producing a Vector2f.

def x(self) -> Int:
84    def x(self) -> int.Int:
85        """Vector 2 Int get X
86
87        Retrieves the X component of a Vector 2 Int.
88
89        Returns:
90            Graph: A graph node producing a Int.
91        """
92        vector_parsed = input_parsers.parse_graph(self)
93        result = _internal.vector2i_x_internal(vector_parsed)
94        from .int import Int
95        return Int(result)

Vector 2 Int get X

Retrieves the X component of a Vector 2 Int.

Returns: Graph: A graph node producing a Int.

def y(self) -> Int:
 97    def y(self) -> int.Int:
 98        """Vector 2 Int get Y
 99
100        Retrieves the Y component of a Vector 2 Int.
101
102        Returns:
103            Graph: A graph node producing a Int.
104        """
105        vector_parsed = input_parsers.parse_graph(self)
106        result = _internal.vector2i_y_internal(vector_parsed)
107        from .int import Int
108        return Int(result)

Vector 2 Int get Y

Retrieves the Y component of a Vector 2 Int.

Returns: Graph: A graph node producing a Int.

class Vector3f(brushcue.Object):
 17class Vector3f(Object):
 18    """A vector with three elements of Float"""
 19
 20    def execute(self, context):
 21        return self._inner.execute(context).as_vector3f()
 22
 23    def add(self, rhs) -> Vector3f:
 24        """Vector 3 Float Add
 25
 26        Add two Vector 3s of Floats
 27
 28        Args:
 29            rhs: Graph of Vector3f
 30
 31        Returns:
 32            Graph: A graph node producing a Vector3f.
 33        """
 34        lhs_parsed = input_parsers.parse_graph(self)
 35        rhs_parsed = input_parsers.parse_graph(rhs)
 36        result = _internal.vector3f_add_internal(lhs_parsed, rhs_parsed)
 37        return Vector3f(result)
 38
 39    @staticmethod
 40    def from_components(x, y, z) -> Vector3f:
 41        """Vector 3 Float from Components
 42
 43        Given an x, y and z creates a vector floats.
 44
 45        Args:
 46            x: Graph of Float
 47            y: Graph of Float
 48            z: Graph of Float
 49
 50        Returns:
 51            Graph: A graph node producing a Vector3f.
 52        """
 53        x_parsed = input_parsers.parse_float_graph(x)
 54        y_parsed = input_parsers.parse_float_graph(y)
 55        z_parsed = input_parsers.parse_float_graph(z)
 56        result = _internal.vector3f_from_components_internal(x_parsed, y_parsed, z_parsed)
 57        return Vector3f(result)
 58
 59    def normalize(self) -> Vector3f:
 60        """Vector 3 Normalize
 61
 62        Normalizes a Vector 3 Float. Converting it's length to 1.
 63
 64        Returns:
 65            Graph: A graph node producing a Vector3f.
 66        """
 67        vector_parsed = input_parsers.parse_graph(self)
 68        result = _internal.vector3f_normalize_internal(vector_parsed)
 69        return Vector3f(result)
 70
 71    def x(self) -> float.Float:
 72        """Vector 3D Float X
 73
 74        Gets the value in the x component for the provided vector
 75
 76        Returns:
 77            Graph: A graph node producing a Float.
 78        """
 79        vector_parsed = input_parsers.parse_graph(self)
 80        result = _internal.vector3f_x_internal(vector_parsed)
 81        from .float import Float
 82        return Float(result)
 83
 84    def y(self) -> float.Float:
 85        """Vector 3D Y Float
 86
 87        Gets the value in the y component for the provided vector
 88
 89        Returns:
 90            Graph: A graph node producing a Float.
 91        """
 92        vector_parsed = input_parsers.parse_graph(self)
 93        result = _internal.vector3f_y_internal(vector_parsed)
 94        from .float import Float
 95        return Float(result)
 96
 97    def z(self) -> float.Float:
 98        """Vector 3D Float Z
 99
100        Gets the value in the z component for the provided vector
101
102        Returns:
103            Graph: A graph node producing a Float.
104        """
105        vector_parsed = input_parsers.parse_graph(self)
106        result = _internal.vector3f_z_internal(vector_parsed)
107        from .float import Float
108        return Float(result)

A vector with three elements of Float

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context).as_vector3f()
def add(self, rhs) -> Vector3f:
23    def add(self, rhs) -> Vector3f:
24        """Vector 3 Float Add
25
26        Add two Vector 3s of Floats
27
28        Args:
29            rhs: Graph of Vector3f
30
31        Returns:
32            Graph: A graph node producing a Vector3f.
33        """
34        lhs_parsed = input_parsers.parse_graph(self)
35        rhs_parsed = input_parsers.parse_graph(rhs)
36        result = _internal.vector3f_add_internal(lhs_parsed, rhs_parsed)
37        return Vector3f(result)

Vector 3 Float Add

Add two Vector 3s of Floats

Args: rhs: Graph of Vector3f

Returns: Graph: A graph node producing a Vector3f.

@staticmethod
def from_components(x, y, z) -> Vector3f:
39    @staticmethod
40    def from_components(x, y, z) -> Vector3f:
41        """Vector 3 Float from Components
42
43        Given an x, y and z creates a vector floats.
44
45        Args:
46            x: Graph of Float
47            y: Graph of Float
48            z: Graph of Float
49
50        Returns:
51            Graph: A graph node producing a Vector3f.
52        """
53        x_parsed = input_parsers.parse_float_graph(x)
54        y_parsed = input_parsers.parse_float_graph(y)
55        z_parsed = input_parsers.parse_float_graph(z)
56        result = _internal.vector3f_from_components_internal(x_parsed, y_parsed, z_parsed)
57        return Vector3f(result)

Vector 3 Float from Components

Given an x, y and z creates a vector floats.

Args: x: Graph of Float y: Graph of Float z: Graph of Float

Returns: Graph: A graph node producing a Vector3f.

def normalize(self) -> Vector3f:
59    def normalize(self) -> Vector3f:
60        """Vector 3 Normalize
61
62        Normalizes a Vector 3 Float. Converting it's length to 1.
63
64        Returns:
65            Graph: A graph node producing a Vector3f.
66        """
67        vector_parsed = input_parsers.parse_graph(self)
68        result = _internal.vector3f_normalize_internal(vector_parsed)
69        return Vector3f(result)

Vector 3 Normalize

Normalizes a Vector 3 Float. Converting it's length to 1.

Returns: Graph: A graph node producing a Vector3f.

def x(self) -> Float:
71    def x(self) -> float.Float:
72        """Vector 3D Float X
73
74        Gets the value in the x component for the provided vector
75
76        Returns:
77            Graph: A graph node producing a Float.
78        """
79        vector_parsed = input_parsers.parse_graph(self)
80        result = _internal.vector3f_x_internal(vector_parsed)
81        from .float import Float
82        return Float(result)

Vector 3D Float X

Gets the value in the x component for the provided vector

Returns: Graph: A graph node producing a Float.

def y(self) -> Float:
84    def y(self) -> float.Float:
85        """Vector 3D Y Float
86
87        Gets the value in the y component for the provided vector
88
89        Returns:
90            Graph: A graph node producing a Float.
91        """
92        vector_parsed = input_parsers.parse_graph(self)
93        result = _internal.vector3f_y_internal(vector_parsed)
94        from .float import Float
95        return Float(result)

Vector 3D Y Float

Gets the value in the y component for the provided vector

Returns: Graph: A graph node producing a Float.

def z(self) -> Float:
 97    def z(self) -> float.Float:
 98        """Vector 3D Float Z
 99
100        Gets the value in the z component for the provided vector
101
102        Returns:
103            Graph: A graph node producing a Float.
104        """
105        vector_parsed = input_parsers.parse_graph(self)
106        result = _internal.vector3f_z_internal(vector_parsed)
107        from .float import Float
108        return Float(result)

Vector 3D Float Z

Gets the value in the z component for the provided vector

Returns: Graph: A graph node producing a Float.

class Void(brushcue.Object):
11class Void(Object):
12    """The absence of a value"""
13
14    def execute(self, context):
15        return self._inner.execute(context)

The absence of a value

def execute(self, context):
14    def execute(self, context):
15        return self._inner.execute(context)
class XYZ(brushcue.Object):
12class XYZ(Object):
13    """A color in the CIE XYZ color space."""
14
15    def execute(self, context):
16        return self._inner.execute(context)
17
18    @staticmethod
19    def whitepoint_from_kelvin(kelvin) -> XYZ:
20        """XYZ White Point from Kelvin
21
22        The white point of a light at the given color temperature in Kelvin, with a luminance (Y) of 1. 5003K is D50, the profile connection white point.
23
24        Args:
25            kelvin: Graph of Float
26
27        Returns:
28            Graph: A graph node producing a XYZ.
29        """
30        kelvin_parsed = input_parsers.parse_float_graph(kelvin)
31        result = _internal.x_y_z_whitepoint_from_kelvin_internal(kelvin_parsed)
32        return XYZ(result)

A color in the CIE XYZ color space.

def execute(self, context):
15    def execute(self, context):
16        return self._inner.execute(context)
@staticmethod
def whitepoint_from_kelvin(kelvin) -> XYZ:
18    @staticmethod
19    def whitepoint_from_kelvin(kelvin) -> XYZ:
20        """XYZ White Point from Kelvin
21
22        The white point of a light at the given color temperature in Kelvin, with a luminance (Y) of 1. 5003K is D50, the profile connection white point.
23
24        Args:
25            kelvin: Graph of Float
26
27        Returns:
28            Graph: A graph node producing a XYZ.
29        """
30        kelvin_parsed = input_parsers.parse_float_graph(kelvin)
31        result = _internal.x_y_z_whitepoint_from_kelvin_internal(kelvin_parsed)
32        return XYZ(result)

XYZ White Point from Kelvin

The white point of a light at the given color temperature in Kelvin, with a luminance (Y) of 1. 5003K is D50, the profile connection white point.

Args: kelvin: Graph of Float

Returns: Graph: A graph node producing a XYZ.

class XYZA(brushcue.Object):
17class XYZA(Object):
18    """A CIE XYZ color with an alpha component."""
19
20    def execute(self, context):
21        return self._inner.execute(context)
22
23    def alpha(self) -> float.Float:
24        """XYZ Color Alpha
25
26        Gets the alpha component of an XYZ color with alpha.
27
28        Returns:
29            Graph: A graph node producing a Float.
30        """
31        xyza_parsed = input_parsers.parse_graph(self)
32        result = _internal.x_y_z_a_alpha_internal(xyza_parsed)
33        from .float import Float
34        return Float(result)
35
36    @staticmethod
37    def from_components(x, y, z, alpha) -> XYZA:
38        """XYZ Color with Alpha from Components
39
40        Creates an XYZ color with alpha from its components.
41
42        Args:
43            x: Graph of Float
44            y: Graph of Float
45            z: Graph of Float
46            alpha: Graph of Float
47
48        Returns:
49            Graph: A graph node producing a XYZA.
50        """
51        x_parsed = input_parsers.parse_float_graph(x)
52        y_parsed = input_parsers.parse_float_graph(y)
53        z_parsed = input_parsers.parse_float_graph(z)
54        alpha_parsed = input_parsers.parse_float_graph(alpha)
55        result = _internal.x_y_z_a_from_components_internal(x_parsed, y_parsed, z_parsed, alpha_parsed)
56        return XYZA(result)
57
58    def x(self) -> float.Float:
59        """XYZ Color X
60
61        Gets the X tristimulus value of an XYZ color with alpha.
62
63        Returns:
64            Graph: A graph node producing a Float.
65        """
66        xyza_parsed = input_parsers.parse_graph(self)
67        result = _internal.x_y_z_a_x_internal(xyza_parsed)
68        from .float import Float
69        return Float(result)
70
71    def y(self) -> float.Float:
72        """XYZ Color Y
73
74        Gets the Y tristimulus value of an XYZ color with alpha.
75
76        Returns:
77            Graph: A graph node producing a Float.
78        """
79        xyza_parsed = input_parsers.parse_graph(self)
80        result = _internal.x_y_z_a_y_internal(xyza_parsed)
81        from .float import Float
82        return Float(result)
83
84    def z(self) -> float.Float:
85        """XYZ Color Z
86
87        Gets the Z tristimulus value of an XYZ color with alpha.
88
89        Returns:
90            Graph: A graph node producing a Float.
91        """
92        xyza_parsed = input_parsers.parse_graph(self)
93        result = _internal.x_y_z_a_z_internal(xyza_parsed)
94        from .float import Float
95        return Float(result)

A CIE XYZ color with an alpha component.

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context)
def alpha(self) -> Float:
23    def alpha(self) -> float.Float:
24        """XYZ Color Alpha
25
26        Gets the alpha component of an XYZ color with alpha.
27
28        Returns:
29            Graph: A graph node producing a Float.
30        """
31        xyza_parsed = input_parsers.parse_graph(self)
32        result = _internal.x_y_z_a_alpha_internal(xyza_parsed)
33        from .float import Float
34        return Float(result)

XYZ Color Alpha

Gets the alpha component of an XYZ color with alpha.

Returns: Graph: A graph node producing a Float.

@staticmethod
def from_components(x, y, z, alpha) -> XYZA:
36    @staticmethod
37    def from_components(x, y, z, alpha) -> XYZA:
38        """XYZ Color with Alpha from Components
39
40        Creates an XYZ color with alpha from its components.
41
42        Args:
43            x: Graph of Float
44            y: Graph of Float
45            z: Graph of Float
46            alpha: Graph of Float
47
48        Returns:
49            Graph: A graph node producing a XYZA.
50        """
51        x_parsed = input_parsers.parse_float_graph(x)
52        y_parsed = input_parsers.parse_float_graph(y)
53        z_parsed = input_parsers.parse_float_graph(z)
54        alpha_parsed = input_parsers.parse_float_graph(alpha)
55        result = _internal.x_y_z_a_from_components_internal(x_parsed, y_parsed, z_parsed, alpha_parsed)
56        return XYZA(result)

XYZ Color with Alpha from Components

Creates an XYZ color with alpha from its components.

Args: x: Graph of Float y: Graph of Float z: Graph of Float alpha: Graph of Float

Returns: Graph: A graph node producing a XYZA.

def x(self) -> Float:
58    def x(self) -> float.Float:
59        """XYZ Color X
60
61        Gets the X tristimulus value of an XYZ color with alpha.
62
63        Returns:
64            Graph: A graph node producing a Float.
65        """
66        xyza_parsed = input_parsers.parse_graph(self)
67        result = _internal.x_y_z_a_x_internal(xyza_parsed)
68        from .float import Float
69        return Float(result)

XYZ Color X

Gets the X tristimulus value of an XYZ color with alpha.

Returns: Graph: A graph node producing a Float.

def y(self) -> Float:
71    def y(self) -> float.Float:
72        """XYZ Color Y
73
74        Gets the Y tristimulus value of an XYZ color with alpha.
75
76        Returns:
77            Graph: A graph node producing a Float.
78        """
79        xyza_parsed = input_parsers.parse_graph(self)
80        result = _internal.x_y_z_a_y_internal(xyza_parsed)
81        from .float import Float
82        return Float(result)

XYZ Color Y

Gets the Y tristimulus value of an XYZ color with alpha.

Returns: Graph: A graph node producing a Float.

def z(self) -> Float:
84    def z(self) -> float.Float:
85        """XYZ Color Z
86
87        Gets the Z tristimulus value of an XYZ color with alpha.
88
89        Returns:
90            Graph: A graph node producing a Float.
91        """
92        xyza_parsed = input_parsers.parse_graph(self)
93        result = _internal.x_y_z_a_z_internal(xyza_parsed)
94        from .float import Float
95        return Float(result)

XYZ Color Z

Gets the Z tristimulus value of an XYZ color with alpha.

Returns: Graph: A graph node producing a Float.

class AnyGraph(brushcue._graph._GraphWrapper):
19class AnyGraph(_GraphWrapper):
20    """The common base for every typed graph value"""
21
22    def execute(self, context):
23        return self._inner.execute(context)
24
25    @staticmethod
26    def if_(condition, fn) -> _IfOutputT:
27        """If
28
29        Selects one of two equally typed graph branches.
30
31        Args:
32            condition: Graph of Bool
33            fn: The function associated with this node.
34
35        Returns:
36            Graph: A graph node producing a Any.
37        """
38        condition_parsed = input_parsers.parse_bool_graph(condition)
39        if not hasattr(fn, "__brushcue_make_graph__"):
40            raise TypeError("fn must be annotated with @brushcue_fn")
41        dispatched_graphs = fn.__brushcue_make_graph__([
42            _internal.TypeDefinition.from_name("Any")
43            ])
44        input_parsers.ensure_same_graph_type(
45            then,
46            otherwise
47            )
48        result = _internal.if_internal(condition_parsed, *dispatched_graphs
49            )
50
51        return input_parsers.resolve_output_graph(
52            result,
53            fn.__brushcue_output_graph__,
54            "Any",
55        )

The common base for every typed graph value

def execute(self, context):
22    def execute(self, context):
23        return self._inner.execute(context)
@staticmethod
def if_(condition, fn) -> ~_IfOutputT:
25    @staticmethod
26    def if_(condition, fn) -> _IfOutputT:
27        """If
28
29        Selects one of two equally typed graph branches.
30
31        Args:
32            condition: Graph of Bool
33            fn: The function associated with this node.
34
35        Returns:
36            Graph: A graph node producing a Any.
37        """
38        condition_parsed = input_parsers.parse_bool_graph(condition)
39        if not hasattr(fn, "__brushcue_make_graph__"):
40            raise TypeError("fn must be annotated with @brushcue_fn")
41        dispatched_graphs = fn.__brushcue_make_graph__([
42            _internal.TypeDefinition.from_name("Any")
43            ])
44        input_parsers.ensure_same_graph_type(
45            then,
46            otherwise
47            )
48        result = _internal.if_internal(condition_parsed, *dispatched_graphs
49            )
50
51        return input_parsers.resolve_output_graph(
52            result,
53            fn.__brushcue_output_graph__,
54            "Any",
55        )

If

Selects one of two equally typed graph branches.

Args: condition: Graph of Bool fn: The function associated with this node.

Returns: Graph: A graph node producing a Any.

class List(brushcue.AnyGraph, typing.Generic[~_ListItemT]):
 22class List(AnyGraph, Generic[_ListItemT]):
 23    """A generic list in the graph"""
 24
 25    def execute(self, context):
 26        return self._inner.execute(context)
 27
 28    def append(self, element) -> List[_ListItemT]:
 29        """List Append
 30
 31        Appends an element to a list
 32
 33        Args:
 34            element: Graph of Object
 35
 36        Returns:
 37            Graph: A graph node producing a List.
 38        """
 39        list_parsed = input_parsers.parse_graph(self)
 40        element_parsed = input_parsers.parse_graph(element)
 41        result = _internal.list_append_internal(list_parsed, element_parsed)
 42        return input_parsers.resolve_output_graph(
 43            result,
 44            self,
 45            "List",
 46        )
 47
 48    def filter(self, fn) -> List[_ListItemT]:
 49        """List Filter
 50
 51        Keeps the elements of a list for which a function returns true
 52
 53        Args:
 54            fn: The function associated with this node.
 55
 56        Returns:
 57            Graph: A graph node producing a List.
 58        """
 59        list_parsed = input_parsers.parse_graph(self)
 60        if not hasattr(fn, "__brushcue_make_graph__"):
 61            raise TypeError("fn must be annotated with @brushcue_fn")
 62        dispatched_graphs = fn.__brushcue_make_graph__([
 63            _internal.TypeDefinition.from_name(self._resolved_type.__name__)
 64            ])
 65        result = _internal.list_filter_internal(list_parsed, *dispatched_graphs
 66            )
 67
 68        return input_parsers.resolve_output_graph(
 69            result,
 70            self,
 71            "List",
 72        )
 73
 74    def first(self) -> _ListItemT:
 75        """List First
 76
 77        Returns the first element of a list
 78
 79        Returns:
 80            Graph: A graph node producing a Object.
 81        """
 82        list_parsed = input_parsers.parse_graph(self)
 83        result = _internal.list_first_internal(list_parsed)
 84        return input_parsers.resolve_output_graph(
 85            result,
 86            self,
 87            "Object",
 88        )
 89
 90    def fold(self, initial_accumulator: _ListFoldOutputT, fn) -> _ListFoldOutputT:
 91        """List Fold
 92
 93        Folds the elements of a list into an accumulator
 94
 95        Args:
 96            initial_accumulator: Graph of Object
 97            fn: The function associated with this node.
 98
 99        Returns:
100            Graph: A graph node producing a Object.
101        """
102        list_parsed = input_parsers.parse_graph(self)
103        initial_accumulator_parsed = input_parsers.parse_graph(initial_accumulator)
104        if not hasattr(fn, "__brushcue_make_graph__"):
105            raise TypeError("fn must be annotated with @brushcue_fn")
106        dispatched_graphs = fn.__brushcue_make_graph__([
107            _internal.TypeDefinition.from_name("Object"),
108            _internal.TypeDefinition.from_name(self._resolved_type.__name__)
109            ])
110        result = _internal.list_fold_internal(list_parsed, initial_accumulator_parsed, *dispatched_graphs
111            )
112
113        return input_parsers.resolve_output_graph(
114            result,
115            initial_accumulator,
116            "Object",
117        )
118
119    def get(self, index) -> _ListItemT:
120        """List Get
121
122        Fetches the element of the list at a given index.
123
124        Args:
125            index: Graph of Int
126
127        Returns:
128            Graph: A graph node producing a Object.
129        """
130        list_parsed = input_parsers.parse_graph(self)
131        index_parsed = input_parsers.parse_int_graph(index)
132        result = _internal.list_get_internal(list_parsed, index_parsed)
133        return input_parsers.resolve_output_graph(
134            result,
135            self,
136            "Object",
137        )
138
139    def length(self) -> int.Int:
140        """List Length
141
142        Returns the number of elements in a list.
143
144        Returns:
145            Graph: A graph node producing a Int.
146        """
147        list_parsed = input_parsers.parse_graph(self)
148        result = _internal.list_length_internal(list_parsed)
149        from .int import Int
150        return Int(result)
151
152    def map(self, fn) -> List[_ListMapOutputT]:
153        """List Map
154
155        Applies a function to every element of a list
156
157        Args:
158            fn: The function associated with this node.
159
160        Returns:
161            Graph: A graph node producing a List.
162        """
163        list_parsed = input_parsers.parse_graph(self)
164        if not hasattr(fn, "__brushcue_make_graph__"):
165            raise TypeError("fn must be annotated with @brushcue_fn")
166        dispatched_graphs = fn.__brushcue_make_graph__([
167            _internal.TypeDefinition.from_name(self._resolved_type.__name__)
168            ])
169        result = _internal.list_map_internal(list_parsed, *dispatched_graphs
170            )
171
172        return input_parsers.resolve_output_graph(
173            result,
174            fn.__brushcue_output_graph__,
175            "List",
176        )

A generic list in the graph

def append(self, element) -> List[~_ListItemT]:
28    def append(self, element) -> List[_ListItemT]:
29        """List Append
30
31        Appends an element to a list
32
33        Args:
34            element: Graph of Object
35
36        Returns:
37            Graph: A graph node producing a List.
38        """
39        list_parsed = input_parsers.parse_graph(self)
40        element_parsed = input_parsers.parse_graph(element)
41        result = _internal.list_append_internal(list_parsed, element_parsed)
42        return input_parsers.resolve_output_graph(
43            result,
44            self,
45            "List",
46        )

List Append

Appends an element to a list

Args: element: Graph of Object

Returns: Graph: A graph node producing a List.

def filter(self, fn) -> List[~_ListItemT]:
48    def filter(self, fn) -> List[_ListItemT]:
49        """List Filter
50
51        Keeps the elements of a list for which a function returns true
52
53        Args:
54            fn: The function associated with this node.
55
56        Returns:
57            Graph: A graph node producing a List.
58        """
59        list_parsed = input_parsers.parse_graph(self)
60        if not hasattr(fn, "__brushcue_make_graph__"):
61            raise TypeError("fn must be annotated with @brushcue_fn")
62        dispatched_graphs = fn.__brushcue_make_graph__([
63            _internal.TypeDefinition.from_name(self._resolved_type.__name__)
64            ])
65        result = _internal.list_filter_internal(list_parsed, *dispatched_graphs
66            )
67
68        return input_parsers.resolve_output_graph(
69            result,
70            self,
71            "List",
72        )

List Filter

Keeps the elements of a list for which a function returns true

Args: fn: The function associated with this node.

Returns: Graph: A graph node producing a List.

def first(self) -> ~_ListItemT:
74    def first(self) -> _ListItemT:
75        """List First
76
77        Returns the first element of a list
78
79        Returns:
80            Graph: A graph node producing a Object.
81        """
82        list_parsed = input_parsers.parse_graph(self)
83        result = _internal.list_first_internal(list_parsed)
84        return input_parsers.resolve_output_graph(
85            result,
86            self,
87            "Object",
88        )

List First

Returns the first element of a list

Returns: Graph: A graph node producing a Object.

def fold(self, initial_accumulator: ~_ListFoldOutputT, fn) -> ~_ListFoldOutputT:
 90    def fold(self, initial_accumulator: _ListFoldOutputT, fn) -> _ListFoldOutputT:
 91        """List Fold
 92
 93        Folds the elements of a list into an accumulator
 94
 95        Args:
 96            initial_accumulator: Graph of Object
 97            fn: The function associated with this node.
 98
 99        Returns:
100            Graph: A graph node producing a Object.
101        """
102        list_parsed = input_parsers.parse_graph(self)
103        initial_accumulator_parsed = input_parsers.parse_graph(initial_accumulator)
104        if not hasattr(fn, "__brushcue_make_graph__"):
105            raise TypeError("fn must be annotated with @brushcue_fn")
106        dispatched_graphs = fn.__brushcue_make_graph__([
107            _internal.TypeDefinition.from_name("Object"),
108            _internal.TypeDefinition.from_name(self._resolved_type.__name__)
109            ])
110        result = _internal.list_fold_internal(list_parsed, initial_accumulator_parsed, *dispatched_graphs
111            )
112
113        return input_parsers.resolve_output_graph(
114            result,
115            initial_accumulator,
116            "Object",
117        )

List Fold

Folds the elements of a list into an accumulator

Args: initial_accumulator: Graph of Object fn: The function associated with this node.

Returns: Graph: A graph node producing a Object.

def get(self, index) -> ~_ListItemT:
119    def get(self, index) -> _ListItemT:
120        """List Get
121
122        Fetches the element of the list at a given index.
123
124        Args:
125            index: Graph of Int
126
127        Returns:
128            Graph: A graph node producing a Object.
129        """
130        list_parsed = input_parsers.parse_graph(self)
131        index_parsed = input_parsers.parse_int_graph(index)
132        result = _internal.list_get_internal(list_parsed, index_parsed)
133        return input_parsers.resolve_output_graph(
134            result,
135            self,
136            "Object",
137        )

List Get

Fetches the element of the list at a given index.

Args: index: Graph of Int

Returns: Graph: A graph node producing a Object.

def length(self) -> Int:
139    def length(self) -> int.Int:
140        """List Length
141
142        Returns the number of elements in a list.
143
144        Returns:
145            Graph: A graph node producing a Int.
146        """
147        list_parsed = input_parsers.parse_graph(self)
148        result = _internal.list_length_internal(list_parsed)
149        from .int import Int
150        return Int(result)

List Length

Returns the number of elements in a list.

Returns: Graph: A graph node producing a Int.

def map(self, fn) -> List[~_ListMapOutputT]:
152    def map(self, fn) -> List[_ListMapOutputT]:
153        """List Map
154
155        Applies a function to every element of a list
156
157        Args:
158            fn: The function associated with this node.
159
160        Returns:
161            Graph: A graph node producing a List.
162        """
163        list_parsed = input_parsers.parse_graph(self)
164        if not hasattr(fn, "__brushcue_make_graph__"):
165            raise TypeError("fn must be annotated with @brushcue_fn")
166        dispatched_graphs = fn.__brushcue_make_graph__([
167            _internal.TypeDefinition.from_name(self._resolved_type.__name__)
168            ])
169        result = _internal.list_map_internal(list_parsed, *dispatched_graphs
170            )
171
172        return input_parsers.resolve_output_graph(
173            result,
174            fn.__brushcue_output_graph__,
175            "List",
176        )

List Map

Applies a function to every element of a list

Args: fn: The function associated with this node.

Returns: Graph: A graph node producing a List.

class Object(brushcue.AnyGraph):
17class Object(AnyGraph):
18    """An object whose concrete graph type is determined by context"""
19
20    def execute(self, context):
21        return self._inner.execute(context)
22
23    @staticmethod
24    def input(output_type: _internal.TypeDefinition) -> AnyGraph:
25        """Create a dispatched input with an explicit graph output type."""
26        result = _internal.input_internal(output_type)
27        return input_parsers.wrap_graph_for_type_definition(result, output_type)
28
29    def to_list(self) -> list.List:
30        """Object to List
31
32        Converts an object to a list
33
34        Returns:
35            Graph: A graph node producing a List.
36        """
37        object_parsed = input_parsers.parse_graph(self)
38        result = _internal.object_to_list_internal(object_parsed)
39        return input_parsers.resolve_output_graph(
40            result,
41            self,
42            "List",
43        )

An object whose concrete graph type is determined by context

def execute(self, context):
20    def execute(self, context):
21        return self._inner.execute(context)
@staticmethod
def input(output_type: TypeDefinition) -> AnyGraph:
23    @staticmethod
24    def input(output_type: _internal.TypeDefinition) -> AnyGraph:
25        """Create a dispatched input with an explicit graph output type."""
26        result = _internal.input_internal(output_type)
27        return input_parsers.wrap_graph_for_type_definition(result, output_type)

Create a dispatched input with an explicit graph output type.

def to_list(self) -> List:
29    def to_list(self) -> list.List:
30        """Object to List
31
32        Converts an object to a list
33
34        Returns:
35            Graph: A graph node producing a List.
36        """
37        object_parsed = input_parsers.parse_graph(self)
38        result = _internal.object_to_list_internal(object_parsed)
39        return input_parsers.resolve_output_graph(
40            result,
41            self,
42            "List",
43        )

Object to List

Converts an object to a list

Returns: Graph: A graph node producing a List.