brushcue

Brushcue — Python bindings for the Matisse graph computation system.

Every function in this module returns a Graph node. Nodes are composable: pass the return value of one function as an argument to another to build a computation graph. Nothing is evaluated until you call Graph.execute().

Installation

pip install brushcue

Quickstart

import brushcue

ctx = brushcue.Context()
handle = brushcue.Handle()

a = brushcue.int_constant(3)
b = brushcue.int_constant(4)
result = brushcue.int_add(a, b)

value = result.execute(ctx, handle)
print(value.as_int())  # 7

Core Types

  • Context — GPU/async execution context. Create one per process.
  • Graph — A node in the computation graph.
  • Handle — Cancellation and status token for Graph.execute().
  • Project — A collection of graphs that can be serialized/deserialized.
  • Type — The result of executing a graph node.
   1# (c) Dito Technologies LLC. Auto-generated. Do not modify directly.
   2# hash: 548e83804f9f953d6b5dd52427338d8e72bcdc796bee49e841aea59011be26c1
   3# generated from templates/py_brushcue_init.jinja
   4
   5"""
   6Brushcue — Python bindings for the Matisse graph computation system.
   7
   8Every function in this module returns a :class:`Graph` node. Nodes are
   9composable: pass the return value of one function as an argument to another
  10to build a computation graph.  Nothing is evaluated until you call
  11:meth:`Graph.execute`.
  12
  13## Installation
  14
  15```bash
  16pip install brushcue
  17```
  18
  19## Quickstart
  20
  21```python
  22import brushcue
  23
  24ctx = brushcue.Context()
  25handle = brushcue.Handle()
  26
  27a = brushcue.int_constant(3)
  28b = brushcue.int_constant(4)
  29result = brushcue.int_add(a, b)
  30
  31value = result.execute(ctx, handle)
  32print(value.as_int())  # 7
  33```
  34
  35## Core Types
  36
  37- :class:`Context` — GPU/async execution context. Create one per process.
  38- :class:`Graph` — A node in the computation graph.
  39- :class:`Handle` — Cancellation and status token for :meth:`Graph.execute`.
  40- :class:`Project` — A collection of graphs that can be serialized/deserialized.
  41- :class:`Type` — The result of executing a graph node.
  42"""
  43
  44from ._py import *  # noqa: F401, F403
  45from .input_parsers import *
  46
  47
  48def int_constant(value: int) -> Graph:
  49    return int_constant_internal(value)
  50
  51def float_constant(value) -> Graph:
  52    return float_constant_internal(float(value))
  53
  54def string_constant(value: str) -> Graph:
  55    return string_constant_internal(value)
  56
  57def bool_constant(value: bool) -> Graph:
  58    return bool_constant_internal(value)
  59
  60
  61def abs(number) -> Graph:
  62    """Absolute Value
  63
  64    Returns the absolute value of a float
  65
  66    Args:
  67        number: Graph of Float
  68        
  69
  70    Returns:
  71        Graph: A graph node producing a Float.
  72    """
  73    number_parsed = parse_float_graph(number)
  74    return abs_internal(number_parsed)
  75
  76def and_(bool1, bool2) -> Graph:
  77    """And
  78
  79    Returns true if both inputs are true.
  80
  81    Args:
  82        the first bool: Graph of Bool
  83        The second bool: Graph of Bool
  84        
  85
  86    Returns:
  87        Graph: A graph node producing a Bool.
  88    """
  89    bool1_parsed = parse_bool_graph(bool1)
  90    bool2_parsed = parse_bool_graph(bool2)
  91    return and_internal(bool1_parsed, bool2_parsed)
  92
  93def bool_add_to_dictionary(dictionary, key, value) -> Graph:
  94    """Bool Add To Dictionary
  95
  96    Adds a Bool to a Dictionary
  97
  98    Args:
  99        dictionary: Graph of Dictionary
 100        key: Graph of String
 101        value: Graph of Bool
 102        
 103
 104    Returns:
 105        Graph: A graph node producing a Dictionary.
 106    """
 107    dictionary_parsed = parse_graph(dictionary)
 108    key_parsed = parse_string_graph(key)
 109    value_parsed = parse_bool_graph(value)
 110    return bool_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)
 111
 112def bool_if(bool, input_1, input_2) -> Graph:
 113    """Bool If
 114
 115    If the boolean is true returns input 1, otherwise input 2. Type: Bool
 116
 117    Args:
 118        bool: Graph of Bool
 119        input 1: Graph of Bool
 120        input 2: Graph of Bool
 121        
 122
 123    Returns:
 124        Graph: A graph node producing a Bool.
 125    """
 126    bool_parsed = parse_bool_graph(bool)
 127    input_1_parsed = parse_bool_graph(input_1)
 128    input_2_parsed = parse_bool_graph(input_2)
 129    return bool_if_internal(bool_parsed, input_1_parsed, input_2_parsed)
 130
 131def bounds2f_from_x_y_width_height(x, y, width, height) -> Graph:
 132    """Bounds 2D Float from X, Y, Width & Height
 133
 134    Creates the bounds of a 2D float region from its X, Y, Width and Height.
 135
 136    Args:
 137        x: Graph of Float
 138        y: Graph of Float
 139        width: Graph of Float
 140        height: Graph of Float
 141        
 142
 143    Returns:
 144        Graph: A graph node producing a Bounds2f.
 145    """
 146    x_parsed = parse_float_graph(x)
 147    y_parsed = parse_float_graph(y)
 148    width_parsed = parse_float_graph(width)
 149    height_parsed = parse_float_graph(height)
 150    return bounds2f_from_x_y_width_height_internal(x_parsed, y_parsed, width_parsed, height_parsed)
 151
 152def bounds2i_from_x_y_width_height(x, y, width, height) -> Graph:
 153    """Bounds 2D Int from X, Y, Width & Height
 154
 155    Creates the bounds of a 2D array from its X, Y, Width and Height.
 156
 157    Args:
 158        x: Graph of Int
 159        y: Graph of Int
 160        width: Graph of Int
 161        height: Graph of Int
 162        
 163
 164    Returns:
 165        Graph: A graph node producing a Bounds2i.
 166    """
 167    x_parsed = parse_int_graph(x)
 168    y_parsed = parse_int_graph(y)
 169    width_parsed = parse_int_graph(width)
 170    height_parsed = parse_int_graph(height)
 171    return bounds2i_from_x_y_width_height_internal(x_parsed, y_parsed, width_parsed, height_parsed)
 172
 173def brush_solid(color, radius) -> Graph:
 174    """Brush Solid
 175
 176    Creates a brush with a color and radius. Will stroke with the solid color.
 177
 178    Args:
 179        color: Graph of RGBAColor
 180        radius: Graph of Float
 181        
 182
 183    Returns:
 184        Graph: A graph node producing a Brush.
 185    """
 186    color_parsed = parse_graph(color)
 187    radius_parsed = parse_float_graph(radius)
 188    return brush_solid_internal(color_parsed, radius_parsed)
 189
 190def byte_list_from_u_r_l(url) -> Graph:
 191    """Byte List from URL
 192
 193    Given a URL. Performs a GET request and downloads the result as bytes
 194
 195    Args:
 196        url: Graph of String
 197        
 198
 199    Returns:
 200        Graph: A graph node producing a ByteList.
 201    """
 202    url_parsed = parse_string_graph(url)
 203    return byte_list_from_u_r_l_internal(url_parsed)
 204
 205def color_profile_b_t709() -> Graph:
 206    """Color Profile BT.709
 207
 208    Creates a BT.709 Color Profile
 209
 210    Returns:
 211        Graph: A graph node producing a ColorProfile.
 212    """
 213    return color_profile_b_t709_internal()
 214
 215def color_profile_ok_lab_a() -> Graph:
 216    """Color Profile OkLabA
 217
 218    Creates an OkLabA color profile. OkLab with also an alpha component.
 219
 220    Returns:
 221        Graph: A graph node producing a ColorProfile.
 222    """
 223    return color_profile_ok_lab_a_internal()
 224
 225def color_profile_p3() -> Graph:
 226    """Color Profile P3
 227
 228    Creates a P3 Color Profile
 229
 230    Returns:
 231        Graph: A graph node producing a ColorProfile.
 232    """
 233    return color_profile_p3_internal()
 234
 235def color_profile_p_n_g_s_r_g_b() -> Graph:
 236    """Color Profile PNG sRGB
 237
 238    Creates a color profile that is the same one as PNG sRGB.
 239
 240    Returns:
 241        Graph: A graph node producing a ColorProfile.
 242    """
 243    return color_profile_p_n_g_s_r_g_b_internal()
 244
 245def color_profile_s_r_g_b() -> Graph:
 246    """Color Profile sRGB
 247
 248    Creates an sRGB Color Profile
 249
 250    Returns:
 251        Graph: A graph node producing a ColorProfile.
 252    """
 253    return color_profile_s_r_g_b_internal()
 254
 255def composition_absolute_value(image) -> Graph:
 256    """Composition Absolute Value
 257
 258    Takes the absolute value of all the pixels in the image.
 259
 260    Args:
 261        image: Graph of Composition
 262        
 263
 264    Returns:
 265        Graph: A graph node producing a Composition.
 266    """
 267    image_parsed = parse_graph(image)
 268    return composition_absolute_value_internal(image_parsed)
 269
 270def composition_bilinear_interpolation(composition, size) -> Graph:
 271    """Composition Scale Bilinear Interpolation
 272
 273    Uses the bilinear interpolation algorithm to scale an image recipe
 274
 275    Args:
 276        composition: Graph of Composition
 277        size: Graph of Vector2i
 278        
 279
 280    Returns:
 281        Graph: A graph node producing a Composition.
 282    """
 283    composition_parsed = parse_graph(composition)
 284    size_parsed = parse_graph(size)
 285    return composition_bilinear_interpolation_internal(composition_parsed, size_parsed)
 286
 287def composition_blend_add(foreground, background, foreground_transform) -> Graph:
 288    """Composition Blend Add
 289
 290    Adds the foreground and background images together using additive blending.
 291
 292    Args:
 293        foreground: Graph of Composition
 294        background: Graph of Composition
 295        foreground transform: Graph of Transform2
 296        
 297
 298    Returns:
 299        Graph: A graph node producing a Composition.
 300    """
 301    foreground_parsed = parse_graph(foreground)
 302    background_parsed = parse_graph(background)
 303    foreground_transform_parsed = parse_graph(foreground_transform)
 304    return composition_blend_add_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 305
 306def composition_blend_add_with_ok_lab(foreground, background, foreground_transform) -> Graph:
 307    """Composition Blend Add with OkLab
 308
 309    Adds the foreground and background images together using additive blending in OkLab color space.
 310
 311    Args:
 312        foreground: Graph of Composition
 313        background: Graph of Composition
 314        foreground transform: Graph of Transform2
 315        
 316
 317    Returns:
 318        Graph: A graph node producing a Composition.
 319    """
 320    foreground_parsed = parse_graph(foreground)
 321    background_parsed = parse_graph(background)
 322    foreground_transform_parsed = parse_graph(foreground_transform)
 323    return composition_blend_add_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 324
 325def composition_blend_alpha(foreground, background, foreground_transform) -> Graph:
 326    """Composition Blend Alpha
 327
 328    Blends between the foreground and background using the alpha component of the foreground. 1 is foreground. 0 is background.
 329
 330    Args:
 331        foreground: Graph of Composition
 332        background: Graph of Composition
 333        foreground transform: Graph of Transform2
 334        
 335
 336    Returns:
 337        Graph: A graph node producing a Composition.
 338    """
 339    foreground_parsed = parse_graph(foreground)
 340    background_parsed = parse_graph(background)
 341    foreground_transform_parsed = parse_graph(foreground_transform)
 342    return composition_blend_alpha_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 343
 344def composition_blend_alpha_with_ok_lab(foreground, background, foreground_transform) -> Graph:
 345    """Composition Blend Alpha with OkLab
 346
 347    Blends between the foreground and background using the alpha component of the foreground in OkLab color space. 1 is foreground. 0 is background.
 348
 349    Args:
 350        foreground: Graph of Composition
 351        background: Graph of Composition
 352        foreground transform: Graph of Transform2
 353        
 354
 355    Returns:
 356        Graph: A graph node producing a Composition.
 357    """
 358    foreground_parsed = parse_graph(foreground)
 359    background_parsed = parse_graph(background)
 360    foreground_transform_parsed = parse_graph(foreground_transform)
 361    return composition_blend_alpha_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 362
 363def composition_blend_divide(foreground, background, foreground_transform) -> Graph:
 364    """Composition Blend Divide
 365
 366    Divides the background image by the foreground image using division blending.
 367
 368    Args:
 369        foreground: Graph of Composition
 370        background: Graph of Composition
 371        foreground transform: Graph of Transform2
 372        
 373
 374    Returns:
 375        Graph: A graph node producing a Composition.
 376    """
 377    foreground_parsed = parse_graph(foreground)
 378    background_parsed = parse_graph(background)
 379    foreground_transform_parsed = parse_graph(foreground_transform)
 380    return composition_blend_divide_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 381
 382def composition_blend_divide_with_ok_lab(foreground, background, foreground_transform) -> Graph:
 383    """Composition Blend Divide with OkLab
 384
 385    Divides the background image by the foreground image using division blending in OkLab color space.
 386
 387    Args:
 388        foreground: Graph of Composition
 389        background: Graph of Composition
 390        foreground transform: Graph of Transform2
 391        
 392
 393    Returns:
 394        Graph: A graph node producing a Composition.
 395    """
 396    foreground_parsed = parse_graph(foreground)
 397    background_parsed = parse_graph(background)
 398    foreground_transform_parsed = parse_graph(foreground_transform)
 399    return composition_blend_divide_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 400
 401def composition_blend_max(foreground, background, foreground_transform) -> Graph:
 402    """Composition Blend Max
 403
 404    Blends the foreground and background images using maximum value blending.
 405
 406    Args:
 407        foreground: Graph of Composition
 408        background: Graph of Composition
 409        foreground transform: Graph of Transform2
 410        
 411
 412    Returns:
 413        Graph: A graph node producing a Composition.
 414    """
 415    foreground_parsed = parse_graph(foreground)
 416    background_parsed = parse_graph(background)
 417    foreground_transform_parsed = parse_graph(foreground_transform)
 418    return composition_blend_max_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 419
 420def composition_blend_max_with_ok_lab(foreground, background, foreground_transform) -> Graph:
 421    """Composition Blend Max with OkLab
 422
 423    Blends the foreground and background images using maximum value blending in OkLab color space.
 424
 425    Args:
 426        foreground: Graph of Composition
 427        background: Graph of Composition
 428        foreground transform: Graph of Transform2
 429        
 430
 431    Returns:
 432        Graph: A graph node producing a Composition.
 433    """
 434    foreground_parsed = parse_graph(foreground)
 435    background_parsed = parse_graph(background)
 436    foreground_transform_parsed = parse_graph(foreground_transform)
 437    return composition_blend_max_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 438
 439def composition_blend_min(foreground, background, foreground_transform) -> Graph:
 440    """Composition Blend Min
 441
 442    Blends the foreground and background images using minimum blending, taking the minimum value for each pixel.
 443
 444    Args:
 445        foreground: Graph of Composition
 446        background: Graph of Composition
 447        foreground transform: Graph of Transform2
 448        
 449
 450    Returns:
 451        Graph: A graph node producing a Composition.
 452    """
 453    foreground_parsed = parse_graph(foreground)
 454    background_parsed = parse_graph(background)
 455    foreground_transform_parsed = parse_graph(foreground_transform)
 456    return composition_blend_min_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 457
 458def composition_blend_min_with_ok_lab(foreground, background, foreground_transform) -> Graph:
 459    """Composition Blend Min with OkLab
 460
 461    Blends the foreground and background images using minimum blending in OkLab color space, taking the minimum value for each pixel.
 462
 463    Args:
 464        foreground: Graph of Composition
 465        background: Graph of Composition
 466        foreground transform: Graph of Transform2
 467        
 468
 469    Returns:
 470        Graph: A graph node producing a Composition.
 471    """
 472    foreground_parsed = parse_graph(foreground)
 473    background_parsed = parse_graph(background)
 474    foreground_transform_parsed = parse_graph(foreground_transform)
 475    return composition_blend_min_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 476
 477def composition_blend_multiply(foreground, background, foreground_transform) -> Graph:
 478    """Composition Blend Multiply
 479
 480    Multiplies the foreground and background images together using multiply blending.
 481
 482    Args:
 483        foreground: Graph of Composition
 484        background: Graph of Composition
 485        foreground transform: Graph of Transform2
 486        
 487
 488    Returns:
 489        Graph: A graph node producing a Composition.
 490    """
 491    foreground_parsed = parse_graph(foreground)
 492    background_parsed = parse_graph(background)
 493    foreground_transform_parsed = parse_graph(foreground_transform)
 494    return composition_blend_multiply_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 495
 496def composition_blend_multiply_with_ok_lab(foreground, background, foreground_transform) -> Graph:
 497    """Composition Blend Multiply with OkLab
 498
 499    Multiplies the foreground and background images together using multiply blending in OkLab color space.
 500
 501    Args:
 502        foreground: Graph of Composition
 503        background: Graph of Composition
 504        foreground transform: Graph of Transform2
 505        
 506
 507    Returns:
 508        Graph: A graph node producing a Composition.
 509    """
 510    foreground_parsed = parse_graph(foreground)
 511    background_parsed = parse_graph(background)
 512    foreground_transform_parsed = parse_graph(foreground_transform)
 513    return composition_blend_multiply_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 514
 515def composition_blend_subtract(foreground, background, foreground_transform) -> Graph:
 516    """Composition Blend Subtract
 517
 518    Subtracts the foreground image from the background image using subtractive blending.
 519
 520    Args:
 521        foreground: Graph of Composition
 522        background: Graph of Composition
 523        foreground transform: Graph of Transform2
 524        
 525
 526    Returns:
 527        Graph: A graph node producing a Composition.
 528    """
 529    foreground_parsed = parse_graph(foreground)
 530    background_parsed = parse_graph(background)
 531    foreground_transform_parsed = parse_graph(foreground_transform)
 532    return composition_blend_subtract_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 533
 534def composition_blend_subtract_with_ok_lab(foreground, background, foreground_transform) -> Graph:
 535    """Composition Blend Subtract with OkLab
 536
 537    Subtracts the foreground image from the background image using subtractive blending in OkLab color space.
 538
 539    Args:
 540        foreground: Graph of Composition
 541        background: Graph of Composition
 542        foreground transform: Graph of Transform2
 543        
 544
 545    Returns:
 546        Graph: A graph node producing a Composition.
 547    """
 548    foreground_parsed = parse_graph(foreground)
 549    background_parsed = parse_graph(background)
 550    foreground_transform_parsed = parse_graph(foreground_transform)
 551    return composition_blend_subtract_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)
 552
 553def composition_blend_with_mask(foreground, background, mask) -> Graph:
 554    """Composition Blend with Mask
 555
 556    Given a mask. Blends between the foreground and background using the r component of the mask. 1 is foreground. 0 is background.
 557
 558    Args:
 559        foreground: Graph of Composition
 560        background: Graph of Composition
 561        mask: Graph of Composition
 562        
 563
 564    Returns:
 565        Graph: A graph node producing a Composition.
 566    """
 567    foreground_parsed = parse_graph(foreground)
 568    background_parsed = parse_graph(background)
 569    mask_parsed = parse_graph(mask)
 570    return composition_blend_with_mask_internal(foreground_parsed, background_parsed, mask_parsed)
 571
 572def composition_box_blur(composition, dimension) -> Graph:
 573    """Composition Box Blur
 574
 575    Applies a box blur to an image. Dimension is the size. 1 corresponding to 3x3, 2 5x5 and so on.
 576
 577    Args:
 578        composition: Graph of Composition
 579        dimension: Graph of Int
 580        
 581
 582    Returns:
 583        Graph: A graph node producing a Composition.
 584    """
 585    composition_parsed = parse_graph(composition)
 586    dimension_parsed = parse_int_graph(dimension)
 587    return composition_box_blur_internal(composition_parsed, dimension_parsed)
 588
 589def composition_box_blur_with_ok_lab(composition, dimension) -> Graph:
 590    """Composition Box Blur with OkLab
 591
 592    Applies a box blur to an image in OkLab color space. Dimension is the size. 1 corresponding to 3x3, 2 5x5 and so on.
 593
 594    Args:
 595        composition: Graph of Composition
 596        dimension: Graph of Int
 597        
 598
 599    Returns:
 600        Graph: A graph node producing a Composition.
 601    """
 602    composition_parsed = parse_graph(composition)
 603    dimension_parsed = parse_int_graph(dimension)
 604    return composition_box_blur_with_ok_lab_internal(composition_parsed, dimension_parsed)
 605
 606def composition_brightness_adjust(composition, scale) -> Graph:
 607    """Composition Brightness Adjust
 608
 609    Adjusts the brightness of an image by a given factor. Internally, works by modifying the L component of OkLab by multiplying it by the scale.
 610
 611    Args:
 612        composition: Graph of Composition
 613        scale: Graph of Float
 614        
 615
 616    Returns:
 617        Graph: A graph node producing a Composition.
 618    """
 619    composition_parsed = parse_graph(composition)
 620    scale_parsed = parse_float_graph(scale)
 621    return composition_brightness_adjust_internal(composition_parsed, scale_parsed)
 622
 623def composition_chroma_offset(composition, offset) -> Graph:
 624    """Composition Chroma Offset
 625
 626    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.
 627
 628    Args:
 629        composition: Graph of Composition
 630        offset: Graph of Vector2f
 631        
 632
 633    Returns:
 634        Graph: A graph node producing a Composition.
 635    """
 636    composition_parsed = parse_graph(composition)
 637    offset_parsed = parse_graph(offset)
 638    return composition_chroma_offset_internal(composition_parsed, offset_parsed)
 639
 640def composition_color_convert(composition, color_profile) -> Graph:
 641    """Composition Color Convert
 642
 643    Converts a Composition from one color space to another.
 644
 645    Args:
 646        composition: Graph of Composition
 647        color profile: Graph of ColorProfile
 648        
 649
 650    Returns:
 651        Graph: A graph node producing a Composition.
 652    """
 653    composition_parsed = parse_graph(composition)
 654    color_profile_parsed = parse_graph(color_profile)
 655    return composition_color_convert_internal(composition_parsed, color_profile_parsed)
 656
 657def composition_color_invert(composition) -> Graph:
 658    """Composition Color Invert
 659
 660    Applies a color invert operation to a Composition. Taking 1 and subtracting each RGB operation against it.
 661
 662    Args:
 663        composition: Graph of Composition
 664        
 665
 666    Returns:
 667        Graph: A graph node producing a Composition.
 668    """
 669    composition_parsed = parse_graph(composition)
 670    return composition_color_invert_internal(composition_parsed)
 671
 672def composition_color_profile(composition) -> Graph:
 673    """Composition Color Profile
 674
 675    Gets the color profile associated with a Composition
 676
 677    Args:
 678        composition: Graph of Composition
 679        
 680
 681    Returns:
 682        Graph: A graph node producing a ColorProfile.
 683    """
 684    composition_parsed = parse_graph(composition)
 685    return composition_color_profile_internal(composition_parsed)
 686
 687def composition_color_rect(color, color_profile, size) -> Graph:
 688    """Composition Color Rect
 689
 690    Given a color and it's color proile. Creates a rectangle Composition of that color.
 691
 692    Args:
 693        color: Graph of RGBAColor
 694        color profile: Graph of ColorProfile
 695        size: Graph of Vector2i
 696        
 697
 698    Returns:
 699        Graph: A graph node producing a Composition.
 700    """
 701    color_parsed = parse_graph(color)
 702    color_profile_parsed = parse_graph(color_profile)
 703    size_parsed = parse_graph(size)
 704    return composition_color_rect_internal(color_parsed, color_profile_parsed, size_parsed)
 705
 706def composition_color_threshold(composition, threshold) -> Graph:
 707    """Composition Color Threshold
 708
 709    Applies a color threshold to a Composition
 710
 711    Args:
 712        composition: Graph of Composition
 713        threshold: Graph of Float
 714        
 715
 716    Returns:
 717        Graph: A graph node producing a Composition.
 718    """
 719    composition_parsed = parse_graph(composition)
 720    threshold_parsed = parse_float_graph(threshold)
 721    return composition_color_threshold_internal(composition_parsed, threshold_parsed)
 722
 723def composition_convolution(composition, kernel, kernel_width, kernel_height) -> Graph:
 724    """Composition Convolution
 725
 726    Performs a convolution on an composition
 727
 728    Args:
 729        The image to perform the convolution on: Graph of Composition
 730        kernel: Graph of FloatList
 731        kernel width: Graph of Int
 732        kernel height: Graph of Int
 733        
 734
 735    Returns:
 736        Graph: A graph node producing a Composition.
 737    """
 738    composition_parsed = parse_graph(composition)
 739    kernel_parsed = parse_graph(kernel)
 740    kernel_width_parsed = parse_int_graph(kernel_width)
 741    kernel_height_parsed = parse_int_graph(kernel_height)
 742    return composition_convolution_internal(composition_parsed, kernel_parsed, kernel_width_parsed, kernel_height_parsed)
 743
 744def composition_crop(composition, rect) -> Graph:
 745    """Composition Crop
 746
 747    Applies a crop to a Composition
 748
 749    Args:
 750        composition: Graph of Composition
 751        rect: Graph of Bounds2i
 752        
 753
 754    Returns:
 755        Graph: A graph node producing a Composition.
 756    """
 757    composition_parsed = parse_graph(composition)
 758    rect_parsed = parse_graph(rect)
 759    return composition_crop_internal(composition_parsed, rect_parsed)
 760
 761def composition_custom_transformer_shader(composition, function_body, helpers, input_color_profile, output_color_profile, inputs, needs_sample_capability) -> Graph:
 762    """Composition Custom Transformer Shader
 763
 764    Given an input, runs a custom defined shader over that input.
 765
 766    Args:
 767        composition: Graph of Composition
 768        function body: Graph of String
 769        helpers: Graph of String
 770        input color profile: Graph of ColorProfile
 771        output color profile: Graph of ColorProfile
 772        inputs: Graph of Dictionary
 773        needs sample capability: Graph of Bool
 774        
 775
 776    Returns:
 777        Graph: A graph node producing a Composition.
 778    """
 779    composition_parsed = parse_graph(composition)
 780    function_body_parsed = parse_string_graph(function_body)
 781    helpers_parsed = parse_string_graph(helpers)
 782    input_color_profile_parsed = parse_graph(input_color_profile)
 783    output_color_profile_parsed = parse_graph(output_color_profile)
 784    inputs_parsed = parse_graph(inputs)
 785    needs_sample_capability_parsed = parse_bool_graph(needs_sample_capability)
 786    return composition_custom_transformer_shader_internal(composition_parsed, function_body_parsed, helpers_parsed, input_color_profile_parsed, output_color_profile_parsed, inputs_parsed, needs_sample_capability_parsed)
 787
 788def composition_face_landmarks(composition) -> Graph:
 789    """Composition Face Landmarks
 790
 791    Given an input image, returns the 468 3D face landmarks.
 792
 793    Args:
 794        composition: Graph of Composition
 795        
 796
 797    Returns:
 798        Graph: A graph node producing a Point3fList.
 799    """
 800    composition_parsed = parse_graph(composition)
 801    return composition_face_landmarks_internal(composition_parsed)
 802
 803def composition_flip_horizontal(composition) -> Graph:
 804    """Composition Flip Horizontal
 805
 806    Flips the image along the horizontal axis
 807
 808    Args:
 809        composition: Graph of Composition
 810        
 811
 812    Returns:
 813        Graph: A graph node producing a Composition.
 814    """
 815    composition_parsed = parse_graph(composition)
 816    return composition_flip_horizontal_internal(composition_parsed)
 817
 818def composition_flip_vertical(composition) -> Graph:
 819    """Composition Flip Vertical
 820
 821    Flips the image vertically
 822
 823    Args:
 824        composition: Graph of Composition
 825        
 826
 827    Returns:
 828        Graph: A graph node producing a Composition.
 829    """
 830    composition_parsed = parse_graph(composition)
 831    return composition_flip_vertical_internal(composition_parsed)
 832
 833def composition_from_image(image) -> Graph:
 834    """Composition from Image
 835
 836    Creates an composition out of an image
 837
 838    Args:
 839        image: Graph of Image
 840        
 841
 842    Returns:
 843        Graph: A graph node producing a Composition.
 844    """
 845    image_parsed = parse_graph(image)
 846    return composition_from_image_internal(image_parsed)
 847
 848def composition_gaussian_blur(composition, sigma) -> Graph:
 849    """Composition Gaussian Blur
 850
 851    Applies a gaussian blur to an image. Sigma controls the blur intensity.
 852
 853    Args:
 854        composition: Graph of Composition
 855        sigma: Graph of Float
 856        
 857
 858    Returns:
 859        Graph: A graph node producing a Composition.
 860    """
 861    composition_parsed = parse_graph(composition)
 862    sigma_parsed = parse_float_graph(sigma)
 863    return composition_gaussian_blur_internal(composition_parsed, sigma_parsed)
 864
 865def composition_gaussian_blur_with_ok_lab(composition, sigma) -> Graph:
 866    """Composition Gaussian Blur with OkLab
 867
 868    Applies a gaussian blur to an image in OkLab color space. Sigma controls the blur intensity.
 869
 870    Args:
 871        composition: Graph of Composition
 872        sigma: Graph of Float
 873        
 874
 875    Returns:
 876        Graph: A graph node producing a Composition.
 877    """
 878    composition_parsed = parse_graph(composition)
 879    sigma_parsed = parse_float_graph(sigma)
 880    return composition_gaussian_blur_with_ok_lab_internal(composition_parsed, sigma_parsed)
 881
 882def composition_grayscale(composition) -> Graph:
 883    """Composition Grayscale
 884
 885    Applies grayscale to a Composition
 886
 887    Args:
 888        composition: Graph of Composition
 889        
 890
 891    Returns:
 892        Graph: A graph node producing a Composition.
 893    """
 894    composition_parsed = parse_graph(composition)
 895    return composition_grayscale_internal(composition_parsed)
 896
 897def composition_l_curve(composition, l_curve) -> Graph:
 898    """Composition Lightness Curve
 899
 900    Applies a curve to the L component in an OkLab color. Adjusting the lightness of the image.
 901
 902    Args:
 903        composition: Graph of Composition
 904        l curve: Graph of Curve
 905        
 906
 907    Returns:
 908        Graph: A graph node producing a Composition.
 909    """
 910    composition_parsed = parse_graph(composition)
 911    l_curve_parsed = parse_graph(l_curve)
 912    return composition_l_curve_internal(composition_parsed, l_curve_parsed)
 913
 914def composition_linear_transform(composition, 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) -> Graph:
 915    """Composition RGBA Linear Transform
 916
 917    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.
 918
 919    Args:
 920        composition: Graph of Composition
 921        entry 0,0: Graph of Float
 922        entry 0,1: Graph of Float
 923        entry 0,2: Graph of Float
 924        entry 0,3: Graph of Float
 925        entry 1,0: Graph of Float
 926        entry 1,1: Graph of Float
 927        entry 1,2: Graph of Float
 928        entry 1,3: Graph of Float
 929        entry 2,0: Graph of Float
 930        entry 2,1: Graph of Float
 931        entry 2,2: Graph of Float
 932        entry 2,3: Graph of Float
 933        entry 3,0: Graph of Float
 934        entry 3,1: Graph of Float
 935        entry 3,2: Graph of Float
 936        entry 3,3: Graph of Float
 937        
 938
 939    Returns:
 940        Graph: A graph node producing a Composition.
 941    """
 942    composition_parsed = parse_graph(composition)
 943    entry_0_0_parsed = parse_float_graph(entry_0_0)
 944    entry_0_1_parsed = parse_float_graph(entry_0_1)
 945    entry_0_2_parsed = parse_float_graph(entry_0_2)
 946    entry_0_3_parsed = parse_float_graph(entry_0_3)
 947    entry_1_0_parsed = parse_float_graph(entry_1_0)
 948    entry_1_1_parsed = parse_float_graph(entry_1_1)
 949    entry_1_2_parsed = parse_float_graph(entry_1_2)
 950    entry_1_3_parsed = parse_float_graph(entry_1_3)
 951    entry_2_0_parsed = parse_float_graph(entry_2_0)
 952    entry_2_1_parsed = parse_float_graph(entry_2_1)
 953    entry_2_2_parsed = parse_float_graph(entry_2_2)
 954    entry_2_3_parsed = parse_float_graph(entry_2_3)
 955    entry_3_0_parsed = parse_float_graph(entry_3_0)
 956    entry_3_1_parsed = parse_float_graph(entry_3_1)
 957    entry_3_2_parsed = parse_float_graph(entry_3_2)
 958    entry_3_3_parsed = parse_float_graph(entry_3_3)
 959    return 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)
 960
 961def composition_monet_women_with_parasol() -> Graph:
 962    """Monet's Women with a Parasol
 963
 964    Creates a composition from Monet's "Women with a Parasol" painting. Used frequently as a test asset.
 965
 966    Returns:
 967        Graph: A graph node producing a Composition.
 968    """
 969    return composition_monet_women_with_parasol_internal()
 970
 971def composition_morphological_max(composition, dimension) -> Graph:
 972    """Composition Morphological Max
 973
 974    Apples a morphological max operation.
 975
 976    Args:
 977        composition: Graph of Composition
 978        dimension: Graph of Int
 979        
 980
 981    Returns:
 982        Graph: A graph node producing a Composition.
 983    """
 984    composition_parsed = parse_graph(composition)
 985    dimension_parsed = parse_int_graph(dimension)
 986    return composition_morphological_max_internal(composition_parsed, dimension_parsed)
 987
 988def composition_morphological_min(composition, dimension) -> Graph:
 989    """Composition Morphological Min
 990
 991    Apples a morphological min operation.
 992
 993    Args:
 994        composition: Graph of Composition
 995        dimension: Graph of Int
 996        
 997
 998    Returns:
 999        Graph: A graph node producing a Composition.
1000    """
1001    composition_parsed = parse_graph(composition)
1002    dimension_parsed = parse_int_graph(dimension)
1003    return composition_morphological_min_internal(composition_parsed, dimension_parsed)
1004
1005def composition_painter(painter) -> Graph:
1006    """Composition Painter
1007
1008    Creates a composition from a painter.
1009
1010    Args:
1011        painter: Graph of Painter
1012        
1013
1014    Returns:
1015        Graph: A graph node producing a Composition.
1016    """
1017    painter_parsed = parse_graph(painter)
1018    return composition_painter_internal(painter_parsed)
1019
1020def composition_passthrough(value) -> Graph:
1021    """Composition Passthrough
1022
1023    Responds with the value provided. Doing nothing to it.
1024
1025    Args:
1026        value: Graph of Composition
1027        
1028
1029    Returns:
1030        Graph: A graph node producing a Composition.
1031    """
1032    value_parsed = parse_graph(value)
1033    return composition_passthrough_internal(value_parsed)
1034
1035def composition_perceptual_difference(composition, color) -> Graph:
1036    """Composition Perceptual Difference
1037
1038    Calculates the difference for each pixel to the OkLab color specified. Each r, g, b and a component in the output is the difference.
1039
1040    Args:
1041        composition: Graph of Composition
1042        color: Graph of OkLabColor
1043        
1044
1045    Returns:
1046        Graph: A graph node producing a Composition.
1047    """
1048    composition_parsed = parse_graph(composition)
1049    color_parsed = parse_graph(color)
1050    return composition_perceptual_difference_internal(composition_parsed, color_parsed)
1051
1052def composition_r_g_b_curve(composition, r_curve, g_curve, b_curve) -> Graph:
1053    """Composition RGB Curve
1054
1055    Applies a curve to the R, G, and B components
1056
1057    Args:
1058        composition: Graph of Composition
1059        r curve: Graph of Curve
1060        g curve: Graph of Curve
1061        b curve: Graph of Curve
1062        
1063
1064    Returns:
1065        Graph: A graph node producing a Composition.
1066    """
1067    composition_parsed = parse_graph(composition)
1068    r_curve_parsed = parse_graph(r_curve)
1069    g_curve_parsed = parse_graph(g_curve)
1070    b_curve_parsed = parse_graph(b_curve)
1071    return composition_r_g_b_curve_internal(composition_parsed, r_curve_parsed, g_curve_parsed, b_curve_parsed)
1072
1073def composition_render_to_image(composition) -> Graph:
1074    """Composition Render to Image
1075
1076    Renders a Composition to an Image
1077
1078    Args:
1079        composition: Graph of Composition
1080        
1081
1082    Returns:
1083        Graph: A graph node producing a Image.
1084    """
1085    composition_parsed = parse_graph(composition)
1086    return composition_render_to_image_internal(composition_parsed)
1087
1088def composition_rotate180(composition) -> Graph:
1089    """Composition Rotate 180
1090
1091    Rotates the image 180 degrees
1092
1093    Args:
1094        composition: Graph of Composition
1095        
1096
1097    Returns:
1098        Graph: A graph node producing a Composition.
1099    """
1100    composition_parsed = parse_graph(composition)
1101    return composition_rotate180_internal(composition_parsed)
1102
1103def composition_rotate90_clockwise(composition) -> Graph:
1104    """Composition Rotate 90 Clockwise
1105
1106    Rotates the image 90 degrees clockwise
1107
1108    Args:
1109        composition: Graph of Composition
1110        
1111
1112    Returns:
1113        Graph: A graph node producing a Composition.
1114    """
1115    composition_parsed = parse_graph(composition)
1116    return composition_rotate90_clockwise_internal(composition_parsed)
1117
1118def composition_rotate90_counter_clockwise(composition) -> Graph:
1119    """Composition Rotate 90 Counter Clockwise
1120
1121    Rotates the image 90 degrees counter-clockwise
1122
1123    Args:
1124        composition: Graph of Composition
1125        
1126
1127    Returns:
1128        Graph: A graph node producing a Composition.
1129    """
1130    composition_parsed = parse_graph(composition)
1131    return composition_rotate90_counter_clockwise_internal(composition_parsed)
1132
1133def composition_saturation_adjust(composition, scale) -> Graph:
1134    """Composition Saturation Adjust
1135
1136    Adjusts the saturation of an image by a given factor. Internally, scales the chroma components in OkLab color space.
1137
1138    Args:
1139        composition: Graph of Composition
1140        scale: Graph of Float
1141        
1142
1143    Returns:
1144        Graph: A graph node producing a Composition.
1145    """
1146    composition_parsed = parse_graph(composition)
1147    scale_parsed = parse_float_graph(scale)
1148    return composition_saturation_adjust_internal(composition_parsed, scale_parsed)
1149
1150def composition_scale_nearest_neighbor(composition, size) -> Graph:
1151    """Composition Scale Nearest Neighbor
1152
1153    Uses the nearest neighbor algorithm to scale an image recipe
1154
1155    Args:
1156        composition: Graph of Composition
1157        size: Graph of Vector2i
1158        
1159
1160    Returns:
1161        Graph: A graph node producing a Composition.
1162    """
1163    composition_parsed = parse_graph(composition)
1164    size_parsed = parse_graph(size)
1165    return composition_scale_nearest_neighbor_internal(composition_parsed, size_parsed)
1166
1167def composition_segment_facial_skin(composition) -> Graph:
1168    """Composition Segment Facial Skin
1169
1170    Given an input image. Returns a mask that segments out the facial skin in the image.
1171
1172    Args:
1173        composition: Graph of Composition
1174        
1175
1176    Returns:
1177        Graph: A graph node producing a Composition.
1178    """
1179    composition_parsed = parse_graph(composition)
1180    return composition_segment_facial_skin_internal(composition_parsed)
1181
1182def composition_segment_mouth_lips_eyes_eyebrows(composition) -> Graph:
1183    """Composition Segment Mouth Lips Eyes Eyebrows
1184
1185    Given an input image, returns a mask (all white) of the mouth, lips, eyes, and eyebrows area.
1186
1187    Args:
1188        composition: Graph of Composition
1189        
1190
1191    Returns:
1192        Graph: A graph node producing a Composition.
1193    """
1194    composition_parsed = parse_graph(composition)
1195    return composition_segment_mouth_lips_eyes_eyebrows_internal(composition_parsed)
1196
1197def composition_segment_person(composition) -> Graph:
1198    """Composition Segment Person
1199
1200    Given an input image. Returns a mask that segments out the person in the image.
1201
1202    Args:
1203        composition: Graph of Composition
1204        
1205
1206    Returns:
1207        Graph: A graph node producing a Composition.
1208    """
1209    composition_parsed = parse_graph(composition)
1210    return composition_segment_person_internal(composition_parsed)
1211
1212def composition_segment_under_right_eye(composition) -> Graph:
1213    """Composition Segment Under Right Eye
1214
1215    Given an input image, returns a mask (all white) of the area under the right eye.
1216
1217    Args:
1218        composition: Graph of Composition
1219        
1220
1221    Returns:
1222        Graph: A graph node producing a Composition.
1223    """
1224    composition_parsed = parse_graph(composition)
1225    return composition_segment_under_right_eye_internal(composition_parsed)
1226
1227def composition_size(composition) -> Graph:
1228    """Composition Size
1229
1230    Gets the resulting size of a Composition
1231
1232    Args:
1233        composition: Graph of Composition
1234        
1235
1236    Returns:
1237        Graph: A graph node producing a Vector2i.
1238    """
1239    composition_parsed = parse_graph(composition)
1240    return composition_size_internal(composition_parsed)
1241
1242def composition_sobel_edge_detection(composition) -> Graph:
1243    """Composition Sobel Edge Detection
1244
1245    Applies Sobel edge detection to an image.
1246
1247    Args:
1248        composition: Graph of Composition
1249        
1250
1251    Returns:
1252        Graph: A graph node producing a Composition.
1253    """
1254    composition_parsed = parse_graph(composition)
1255    return composition_sobel_edge_detection_internal(composition_parsed)
1256
1257def composition_target_white_kelvin(composition, kelvin) -> Graph:
1258    """Composition Target White Kelvin
1259
1260    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.
1261
1262    Args:
1263        composition: Graph of Composition
1264        kelvin: Graph of Float
1265        
1266
1267    Returns:
1268        Graph: A graph node producing a Composition.
1269    """
1270    composition_parsed = parse_graph(composition)
1271    kelvin_parsed = parse_float_graph(kelvin)
1272    return composition_target_white_kelvin_internal(composition_parsed, kelvin_parsed)
1273
1274def composition_to_ok_lab_hist(composition) -> Graph:
1275    """Composition to OkLab Histogram
1276
1277    Creates an OkLab Histogram from the colors in a Composition.
1278
1279    Args:
1280        composition: Graph of Composition
1281        
1282
1283    Returns:
1284        Graph: A graph node producing a OkLabHist.
1285    """
1286    composition_parsed = parse_graph(composition)
1287    return composition_to_ok_lab_hist_internal(composition_parsed)
1288
1289def composition_uniform_lightness(composition, lightness) -> Graph:
1290    """Composition Uniform Lightness
1291
1292    Sets a uniform lightness to the entire image by using OkLab and setting the lightness to a constant number.
1293
1294    Args:
1295        composition: Graph of Composition
1296        lightness: Graph of Float
1297        
1298
1299    Returns:
1300        Graph: A graph node producing a Composition.
1301    """
1302    composition_parsed = parse_graph(composition)
1303    lightness_parsed = parse_float_graph(lightness)
1304    return composition_uniform_lightness_internal(composition_parsed, lightness_parsed)
1305
1306def composition_vignette(composition, radius, softness, strength) -> Graph:
1307    """Composition Vignette
1308
1309    darkens the outer edges - radius (0-1, measured relative to the image's smaller dimension) sets how far the bright center extends, Softness (typically 0.05-0.5) controls the width of the fade-out band, and Strength (0–1) defines how dark the edges become at maximum.
1310
1311    Args:
1312        composition: Graph of Composition
1313        radius: Graph of Float
1314        softness: Graph of Float
1315        strength: Graph of Float
1316        
1317
1318    Returns:
1319        Graph: A graph node producing a Composition.
1320    """
1321    composition_parsed = parse_graph(composition)
1322    radius_parsed = parse_float_graph(radius)
1323    softness_parsed = parse_float_graph(softness)
1324    strength_parsed = parse_float_graph(strength)
1325    return composition_vignette_internal(composition_parsed, radius_parsed, softness_parsed, strength_parsed)
1326
1327def curve_gamma(gamma) -> Graph:
1328    """Curve Gamma
1329
1330    A gamma curve. The gamma parameter corresponding to y=x^gamma.
1331
1332    Args:
1333        gamma: Graph of Float
1334        
1335
1336    Returns:
1337        Graph: A graph node producing a Curve.
1338    """
1339    gamma_parsed = parse_float_graph(gamma)
1340    return curve_gamma_internal(gamma_parsed)
1341
1342def curve_identity() -> Graph:
1343    """Curve Identity
1344
1345    An identity curve, y=x
1346
1347    Returns:
1348        Graph: A graph node producing a Curve.
1349    """
1350    return curve_identity_internal()
1351
1352def curve_pivoted_sigmoid(pivot, slope) -> Graph:
1353    """Curve Pivoted Sigmoid
1354
1355    A pivoted sigmoid contrast curve that anchors at the pivot and smoothly compresses shadows and highlights, with a slope parameter controlling midtone contrast.
1356
1357    Args:
1358        pivot: Graph of Float
1359        slope: Graph of Float
1360        
1361
1362    Returns:
1363        Graph: A graph node producing a Curve.
1364    """
1365    pivot_parsed = parse_float_graph(pivot)
1366    slope_parsed = parse_float_graph(slope)
1367    return curve_pivoted_sigmoid_internal(pivot_parsed, slope_parsed)
1368
1369def curve_s_curve(pivot, slope, toe, shoulder) -> Graph:
1370    """Curve S
1371
1372    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.
1373
1374    Args:
1375        pivot: Graph of Float
1376        slope: Graph of Float
1377        toe: Graph of Float
1378        shoulder: Graph of Float
1379        
1380
1381    Returns:
1382        Graph: A graph node producing a Curve.
1383    """
1384    pivot_parsed = parse_float_graph(pivot)
1385    slope_parsed = parse_float_graph(slope)
1386    toe_parsed = parse_float_graph(toe)
1387    shoulder_parsed = parse_float_graph(shoulder)
1388    return curve_s_curve_internal(pivot_parsed, slope_parsed, toe_parsed, shoulder_parsed)
1389
1390def dictionary_create() -> Graph:
1391    """Dictionary Create
1392
1393    Creates a new dictionary
1394
1395    Returns:
1396        Graph: A graph node producing a Dictionary.
1397    """
1398    return dictionary_create_internal()
1399
1400def fill_custom(function_body, helpers, inputs) -> Graph:
1401    """Fill Custom
1402
1403    Creates a fill with a custom shader.
1404
1405    Args:
1406        function body: Graph of String
1407        helpers: Graph of String
1408        inputs: Graph of Dictionary
1409        
1410
1411    Returns:
1412        Graph: A graph node producing a Fill.
1413    """
1414    function_body_parsed = parse_string_graph(function_body)
1415    helpers_parsed = parse_string_graph(helpers)
1416    inputs_parsed = parse_graph(inputs)
1417    return fill_custom_internal(function_body_parsed, helpers_parsed, inputs_parsed)
1418
1419def fill_solid(color) -> Graph:
1420    """Fill Solid
1421
1422    Creates a fill with a solid color.
1423
1424    Args:
1425        color: Graph of RGBAColor
1426        
1427
1428    Returns:
1429        Graph: A graph node producing a Fill.
1430    """
1431    color_parsed = parse_graph(color)
1432    return fill_solid_internal(color_parsed)
1433
1434def float_add(float1, float2) -> Graph:
1435    """Float Add
1436
1437    Adds two floats together.
1438
1439    Args:
1440        float1: Graph of Float
1441        float2: Graph of Float
1442        
1443
1444    Returns:
1445        Graph: A graph node producing a Float.
1446    """
1447    float1_parsed = parse_float_graph(float1)
1448    float2_parsed = parse_float_graph(float2)
1449    return float_add_internal(float1_parsed, float2_parsed)
1450
1451def float_add_to_dictionary(dictionary, key, value) -> Graph:
1452    """Float Add To Dictionary
1453
1454    Adds a Float to a Dictionary
1455
1456    Args:
1457        dictionary: Graph of Dictionary
1458        key: Graph of String
1459        value: Graph of Float
1460        
1461
1462    Returns:
1463        Graph: A graph node producing a Dictionary.
1464    """
1465    dictionary_parsed = parse_graph(dictionary)
1466    key_parsed = parse_string_graph(key)
1467    value_parsed = parse_float_graph(value)
1468    return float_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)
1469
1470def float_cos(angle) -> Graph:
1471    """Float Cosine
1472
1473    Computes the cosine of a float (in radians).
1474
1475    Args:
1476        Angle in radians: Graph of Float
1477        
1478
1479    Returns:
1480        Graph: A graph node producing a Float.
1481    """
1482    angle_parsed = parse_float_graph(angle)
1483    return float_cos_internal(angle_parsed)
1484
1485def float_divide(float1, float2) -> Graph:
1486    """Float Divide
1487
1488    Adds two floats together.
1489
1490    Args:
1491        float1: Graph of Float
1492        float2: Graph of Float
1493        
1494
1495    Returns:
1496        Graph: A graph node producing a Float.
1497    """
1498    float1_parsed = parse_float_graph(float1)
1499    float2_parsed = parse_float_graph(float2)
1500    return float_divide_internal(float1_parsed, float2_parsed)
1501
1502def float_if(bool, input_1, input_2) -> Graph:
1503    """Float If
1504
1505    If the boolean is true returns input 1, otherwise input 2. Type: Float
1506
1507    Args:
1508        bool: Graph of Bool
1509        input 1: Graph of Float
1510        input 2: Graph of Float
1511        
1512
1513    Returns:
1514        Graph: A graph node producing a Float.
1515    """
1516    bool_parsed = parse_bool_graph(bool)
1517    input_1_parsed = parse_float_graph(input_1)
1518    input_2_parsed = parse_float_graph(input_2)
1519    return float_if_internal(bool_parsed, input_1_parsed, input_2_parsed)
1520
1521def float_lerp(x, float1, float2) -> Graph:
1522    """Float Lerp
1523
1524    Lerps between two floats using the x parameter
1525
1526    Args:
1527        x: Graph of Float
1528        float1: Graph of Float
1529        float2: Graph of Float
1530        
1531
1532    Returns:
1533        Graph: A graph node producing a Float.
1534    """
1535    x_parsed = parse_float_graph(x)
1536    float1_parsed = parse_float_graph(float1)
1537    float2_parsed = parse_float_graph(float2)
1538    return float_lerp_internal(x_parsed, float1_parsed, float2_parsed)
1539
1540def float_max(float1, float2) -> Graph:
1541    """Float Max
1542
1543    Returns the maximum float.
1544
1545    Args:
1546        float1: Graph of Float
1547        float2: Graph of Float
1548        
1549
1550    Returns:
1551        Graph: A graph node producing a Float.
1552    """
1553    float1_parsed = parse_float_graph(float1)
1554    float2_parsed = parse_float_graph(float2)
1555    return float_max_internal(float1_parsed, float2_parsed)
1556
1557def float_min(float1, float2) -> Graph:
1558    """Float Min
1559
1560    Returns the minimum float.
1561
1562    Args:
1563        float1: Graph of Float
1564        float2: Graph of Float
1565        
1566
1567    Returns:
1568        Graph: A graph node producing a Float.
1569    """
1570    float1_parsed = parse_float_graph(float1)
1571    float2_parsed = parse_float_graph(float2)
1572    return float_min_internal(float1_parsed, float2_parsed)
1573
1574def float_multiply(float1, float2) -> Graph:
1575    """Float Multiply
1576
1577    Multiplies two floats together.
1578
1579    Args:
1580        float1: Graph of Float
1581        float2: Graph of Float
1582        
1583
1584    Returns:
1585        Graph: A graph node producing a Float.
1586    """
1587    float1_parsed = parse_float_graph(float1)
1588    float2_parsed = parse_float_graph(float2)
1589    return float_multiply_internal(float1_parsed, float2_parsed)
1590
1591def float_passthrough(value) -> Graph:
1592    """Float Passthrough
1593
1594    Responds with the value provided. Doing nothing to it.
1595
1596    Args:
1597        value: Graph of Float
1598        
1599
1600    Returns:
1601        Graph: A graph node producing a Float.
1602    """
1603    value_parsed = parse_float_graph(value)
1604    return float_passthrough_internal(value_parsed)
1605
1606def float_pow(float1, float2) -> Graph:
1607    """Float Power
1608
1609    Raises float 1 to the power of float 2
1610
1611    Args:
1612        float 1: Graph of Float
1613        float 2: Graph of Float
1614        
1615
1616    Returns:
1617        Graph: A graph node producing a Float.
1618    """
1619    float1_parsed = parse_float_graph(float1)
1620    float2_parsed = parse_float_graph(float2)
1621    return float_pow_internal(float1_parsed, float2_parsed)
1622
1623def float_round_to_int(float) -> Graph:
1624    """Float Round to Int
1625
1626    Rounds the float to the nearest int
1627
1628    Args:
1629        float: Graph of Float
1630        
1631
1632    Returns:
1633        Graph: A graph node producing a Int.
1634    """
1635    float_parsed = parse_float_graph(float)
1636    return float_round_to_int_internal(float_parsed)
1637
1638def float_sin(angle) -> Graph:
1639    """Float Sine
1640
1641    Computes the sine of a float (in radians).
1642
1643    Args:
1644        Angle in radians: Graph of Float
1645        
1646
1647    Returns:
1648        Graph: A graph node producing a Float.
1649    """
1650    angle_parsed = parse_float_graph(angle)
1651    return float_sin_internal(angle_parsed)
1652
1653def float_square_root(number) -> Graph:
1654    """Float Square Root
1655
1656    Compares the square root of a number
1657
1658    Args:
1659        Number: Graph of Float
1660        
1661
1662    Returns:
1663        Graph: A graph node producing a Float.
1664    """
1665    number_parsed = parse_float_graph(number)
1666    return float_square_root_internal(number_parsed)
1667
1668def float_squared(number) -> Graph:
1669    """Float Squared
1670
1671    Raises a float to the power of 2.
1672
1673    Args:
1674        Number: Graph of Float
1675        
1676
1677    Returns:
1678        Graph: A graph node producing a Float.
1679    """
1680    number_parsed = parse_float_graph(number)
1681    return float_squared_internal(number_parsed)
1682
1683def float_subtract(float1, float2) -> Graph:
1684    """Float Subtract
1685
1686    Adds two floats together.
1687
1688    Args:
1689        float1: Graph of Float
1690        float2: Graph of Float
1691        
1692
1693    Returns:
1694        Graph: A graph node producing a Float.
1695    """
1696    float1_parsed = parse_float_graph(float1)
1697    float2_parsed = parse_float_graph(float2)
1698    return float_subtract_internal(float1_parsed, float2_parsed)
1699
1700def image_from_byte_list(bytes) -> Graph:
1701    """Image from Bytes
1702
1703    Given some bytes, parses an image
1704
1705    Args:
1706        bytes: Graph of ByteList
1707        
1708
1709    Returns:
1710        Graph: A graph node producing a Image.
1711    """
1712    bytes_parsed = parse_graph(bytes)
1713    return image_from_byte_list_internal(bytes_parsed)
1714
1715def image_to_byte_list(image) -> Graph:
1716    """Image to Byte List
1717
1718    Given an image, converts it to a byte list
1719
1720    Args:
1721        image: Graph of Image
1722        
1723
1724    Returns:
1725        Graph: A graph node producing a ByteList.
1726    """
1727    image_parsed = parse_graph(image)
1728    return image_to_byte_list_internal(image_parsed)
1729
1730def int_abs(number) -> Graph:
1731    """Int Absolute Value
1732
1733    Returns the absolute value of an int
1734
1735    Args:
1736        number: Graph of Int
1737        
1738
1739    Returns:
1740        Graph: A graph node producing a Int.
1741    """
1742    number_parsed = parse_int_graph(number)
1743    return int_abs_internal(number_parsed)
1744
1745def int_add(int_1, int_2) -> Graph:
1746    """Int Add
1747
1748    Adds to ints together
1749
1750    Args:
1751        First Int: Graph of Int
1752        Second Int: Graph of Int
1753        
1754
1755    Returns:
1756        Graph: A graph node producing a Int.
1757    """
1758    int_1_parsed = parse_int_graph(int_1)
1759    int_2_parsed = parse_int_graph(int_2)
1760    return int_add_internal(int_1_parsed, int_2_parsed)
1761
1762def int_add_to_dictionary(dictionary, key, value) -> Graph:
1763    """Int Add To Dictionary
1764
1765    Adds a Int to a Dictionary
1766
1767    Args:
1768        dictionary: Graph of Dictionary
1769        key: Graph of String
1770        value: Graph of Int
1771        
1772
1773    Returns:
1774        Graph: A graph node producing a Dictionary.
1775    """
1776    dictionary_parsed = parse_graph(dictionary)
1777    key_parsed = parse_string_graph(key)
1778    value_parsed = parse_int_graph(value)
1779    return int_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)
1780
1781def int_equals(int_1, int_2) -> Graph:
1782    """Int Equals
1783
1784    Checks if two ints are equal
1785
1786    Args:
1787        First Int: Graph of Int
1788        Second Int: Graph of Int
1789        
1790
1791    Returns:
1792        Graph: A graph node producing a Bool.
1793    """
1794    int_1_parsed = parse_int_graph(int_1)
1795    int_2_parsed = parse_int_graph(int_2)
1796    return int_equals_internal(int_1_parsed, int_2_parsed)
1797
1798def int_greater_than(int_1, int_2) -> Graph:
1799    """Int Greater Than
1800
1801    Checks if the first int is greater than the second int
1802
1803    Args:
1804        First Int: Graph of Int
1805        Second Int: Graph of Int
1806        
1807
1808    Returns:
1809        Graph: A graph node producing a Bool.
1810    """
1811    int_1_parsed = parse_int_graph(int_1)
1812    int_2_parsed = parse_int_graph(int_2)
1813    return int_greater_than_internal(int_1_parsed, int_2_parsed)
1814
1815def int_if(bool, input_1, input_2) -> Graph:
1816    """Int If
1817
1818    If the boolean is true returns input 1, otherwise input 2. Type: Int
1819
1820    Args:
1821        bool: Graph of Bool
1822        input 1: Graph of Int
1823        input 2: Graph of Int
1824        
1825
1826    Returns:
1827        Graph: A graph node producing a Int.
1828    """
1829    bool_parsed = parse_bool_graph(bool)
1830    input_1_parsed = parse_int_graph(input_1)
1831    input_2_parsed = parse_int_graph(input_2)
1832    return int_if_internal(bool_parsed, input_1_parsed, input_2_parsed)
1833
1834def int_less_than(int_1, int_2) -> Graph:
1835    """Int Less Than
1836
1837    Checks if the first int is less than the second int
1838
1839    Args:
1840        First Int: Graph of Int
1841        Second Int: Graph of Int
1842        
1843
1844    Returns:
1845        Graph: A graph node producing a Bool.
1846    """
1847    int_1_parsed = parse_int_graph(int_1)
1848    int_2_parsed = parse_int_graph(int_2)
1849    return int_less_than_internal(int_1_parsed, int_2_parsed)
1850
1851def int_max(int1, int2) -> Graph:
1852    """Int Max
1853
1854    Returns the maximum int.
1855
1856    Args:
1857        int1: Graph of Int
1858        int2: Graph of Int
1859        
1860
1861    Returns:
1862        Graph: A graph node producing a Int.
1863    """
1864    int1_parsed = parse_int_graph(int1)
1865    int2_parsed = parse_int_graph(int2)
1866    return int_max_internal(int1_parsed, int2_parsed)
1867
1868def int_min(int1, int2) -> Graph:
1869    """Int Min
1870
1871    Returns the minimum int.
1872
1873    Args:
1874        int1: Graph of Int
1875        int2: Graph of Int
1876        
1877
1878    Returns:
1879        Graph: A graph node producing a Int.
1880    """
1881    int1_parsed = parse_int_graph(int1)
1882    int2_parsed = parse_int_graph(int2)
1883    return int_min_internal(int1_parsed, int2_parsed)
1884
1885def int_multiply(int_1, int_2) -> Graph:
1886    """Int Multiply
1887
1888    Multiplies two integers together
1889
1890    Args:
1891        First Int: Graph of Int
1892        Second Int: Graph of Int
1893        
1894
1895    Returns:
1896        Graph: A graph node producing a Int.
1897    """
1898    int_1_parsed = parse_int_graph(int_1)
1899    int_2_parsed = parse_int_graph(int_2)
1900    return int_multiply_internal(int_1_parsed, int_2_parsed)
1901
1902def int_passthrough(value) -> Graph:
1903    """Int Passthrough
1904
1905    Responds with the value provided. Doing nothing to it.
1906
1907    Args:
1908        value: Graph of Int
1909        
1910
1911    Returns:
1912        Graph: A graph node producing a Int.
1913    """
1914    value_parsed = parse_int_graph(value)
1915    return int_passthrough_internal(value_parsed)
1916
1917def int_subtract(int_1, int_2) -> Graph:
1918    """Int Subtract
1919
1920    Subtracts one int from another
1921
1922    Args:
1923        int 1: Graph of Int
1924        int 2: Graph of Int
1925        
1926
1927    Returns:
1928        Graph: A graph node producing a Int.
1929    """
1930    int_1_parsed = parse_int_graph(int_1)
1931    int_2_parsed = parse_int_graph(int_2)
1932    return int_subtract_internal(int_1_parsed, int_2_parsed)
1933
1934def int_to_float(int) -> Graph:
1935    """Int To Float
1936
1937    Converts an Int to a Float
1938
1939    Args:
1940        int: Graph of Int
1941        
1942
1943    Returns:
1944        Graph: A graph node producing a Float.
1945    """
1946    int_parsed = parse_int_graph(int)
1947    return int_to_float_internal(int_parsed)
1948
1949def monet_network_download_u_r_l_from_asset_i_d(asset_id) -> Graph:
1950    """Monet Network Download URL from Asset ID
1951
1952    Creates a Download URL from asset ID in the Monet Network
1953
1954    Args:
1955        asset id: Graph of Int
1956        
1957
1958    Returns:
1959        Graph: A graph node producing a String.
1960    """
1961    asset_id_parsed = parse_int_graph(asset_id)
1962    return monet_network_download_u_r_l_from_asset_i_d_internal(asset_id_parsed)
1963
1964def not_(bool) -> Graph:
1965    """Not
1966
1967    Returns the opposite of a boolean
1968
1969    Args:
1970        Bool: Graph of Bool
1971        
1972
1973    Returns:
1974        Graph: A graph node producing a Bool.
1975    """
1976    bool_parsed = parse_bool_graph(bool)
1977    return not_internal(bool_parsed)
1978
1979def null_value() -> Graph:
1980    """Null Value
1981
1982    Returns a null value
1983
1984    Returns:
1985        Graph: A graph node producing a Null.
1986    """
1987    return null_value_internal()
1988
1989def ok_lab_color_from_components(l, a, b) -> Graph:
1990    """OkLab Color from Components
1991
1992    Given the L, a and b creates the color
1993
1994    Args:
1995        l: Graph of Float
1996        a: Graph of Float
1997        b: Graph of Float
1998        
1999
2000    Returns:
2001        Graph: A graph node producing a OkLabColor.
2002    """
2003    l_parsed = parse_float_graph(l)
2004    a_parsed = parse_float_graph(a)
2005    b_parsed = parse_float_graph(b)
2006    return ok_lab_color_from_components_internal(l_parsed, a_parsed, b_parsed)
2007
2008def ok_lab_to_r_g_b(ok_lab, color_profile) -> Graph:
2009    """OkLab to RGB
2010
2011    Converts an OkLab color to an RGB color
2012
2013    Args:
2014        OkLab: Graph of OkLabColor
2015        color profile: Graph of ColorProfile
2016        
2017
2018    Returns:
2019        Graph: A graph node producing a RGBColor.
2020    """
2021    ok_lab_parsed = parse_graph(ok_lab)
2022    color_profile_parsed = parse_graph(color_profile)
2023    return ok_lab_to_r_g_b_internal(ok_lab_parsed, color_profile_parsed)
2024
2025def or_(bool1, bool2) -> Graph:
2026    """Or
2027
2028    Returns true if either inputs are true.
2029
2030    Args:
2031        bool1: Graph of Bool
2032        bool2: Graph of Bool
2033        
2034
2035    Returns:
2036        Graph: A graph node producing a Bool.
2037    """
2038    bool1_parsed = parse_bool_graph(bool1)
2039    bool2_parsed = parse_bool_graph(bool2)
2040    return or_internal(bool1_parsed, bool2_parsed)
2041
2042def painter_add_path_with_render_style(painter, path, render_style, instances, depth) -> Graph:
2043    """Painter Add Path with Render Style
2044
2045    Adds a path to the painter and draws it with the render style. Set some transforms on the path as well.
2046
2047    Args:
2048        painter: Graph of Painter
2049        path: Graph of Path
2050        render style: Graph of RenderStyle
2051        instances: Graph of Transform2List
2052        depth: Graph of Int
2053        
2054
2055    Returns:
2056        Graph: A graph node producing a Painter.
2057    """
2058    painter_parsed = parse_graph(painter)
2059    path_parsed = parse_graph(path)
2060    render_style_parsed = parse_graph(render_style)
2061    instances_parsed = parse_graph(instances)
2062    depth_parsed = parse_int_graph(depth)
2063    return painter_add_path_with_render_style_internal(painter_parsed, path_parsed, render_style_parsed, instances_parsed, depth_parsed)
2064
2065def painter_new(color_profile) -> Graph:
2066    """Painter New
2067
2068    Creates a new painter.
2069
2070    Args:
2071        color profile: Graph of ColorProfile
2072        
2073
2074    Returns:
2075        Graph: A graph node producing a Painter.
2076    """
2077    color_profile_parsed = parse_graph(color_profile)
2078    return painter_new_internal(color_profile_parsed)
2079
2080def path_add_rectangle(path, center, dimensions, rotation) -> Graph:
2081    """Path Add Rectangle
2082
2083    Rectangle
2084
2085    Args:
2086        path: Graph of Path
2087        center point of the rectangle: Graph of Point2f
2088        width and height of the rectangle: Graph of Vector2f
2089        rotation angle in radians: Graph of Float
2090        
2091
2092    Returns:
2093        Graph: A graph node producing a Path.
2094    """
2095    path_parsed = parse_graph(path)
2096    center_parsed = parse_graph(center)
2097    dimensions_parsed = parse_graph(dimensions)
2098    rotation_parsed = parse_float_graph(rotation)
2099    return path_add_rectangle_internal(path_parsed, center_parsed, dimensions_parsed, rotation_parsed)
2100
2101def path_line_to_point(path, point) -> Graph:
2102    """Path Line to Point
2103
2104    Moves the path from it's current point to another at another point with a line.
2105
2106    Args:
2107        path: Graph of Path
2108        point: Graph of Point2f
2109        
2110
2111    Returns:
2112        Graph: A graph node producing a Path.
2113    """
2114    path_parsed = parse_graph(path)
2115    point_parsed = parse_graph(point)
2116    return path_line_to_point_internal(path_parsed, point_parsed)
2117
2118def path_move_to_point(path, point) -> Graph:
2119    """Path Move to Point
2120
2121    Moves the path to a specified point without drawing anything.
2122
2123    Args:
2124        path: Graph of Path
2125        point: Graph of Point2f
2126        
2127
2128    Returns:
2129        Graph: A graph node producing a Path.
2130    """
2131    path_parsed = parse_graph(path)
2132    point_parsed = parse_graph(point)
2133    return path_move_to_point_internal(path_parsed, point_parsed)
2134
2135def path_new() -> Graph:
2136    """Path New
2137
2138    Creates a new empty path.
2139
2140    Returns:
2141        Graph: A graph node producing a Path.
2142    """
2143    return path_new_internal()
2144
2145def pi() -> Graph:
2146    """Pi
2147
2148    Returns π as a float
2149
2150    Returns:
2151        Graph: A graph node producing a Float.
2152    """
2153    return pi_internal()
2154
2155def point2f_from_components(x, y) -> Graph:
2156    """Point 2 Float from Components
2157
2158    Given an x and y creates a point
2159
2160    Args:
2161        x: Graph of Float
2162        y: Graph of Float
2163        
2164
2165    Returns:
2166        Graph: A graph node producing a Point2f.
2167    """
2168    x_parsed = parse_float_graph(x)
2169    y_parsed = parse_float_graph(y)
2170    return point2f_from_components_internal(x_parsed, y_parsed)
2171
2172def r_g_b_a_color_add_to_dictionary(dictionary, key, value) -> Graph:
2173    """RGBA Color Add To Dictionary
2174
2175    Adds a RGBA Color to a Dictionary
2176
2177    Args:
2178        dictionary: Graph of Dictionary
2179        key: Graph of String
2180        value: Graph of RGBAColor
2181        
2182
2183    Returns:
2184        Graph: A graph node producing a Dictionary.
2185    """
2186    dictionary_parsed = parse_graph(dictionary)
2187    key_parsed = parse_string_graph(key)
2188    value_parsed = parse_graph(value)
2189    return r_g_b_a_color_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)
2190
2191def r_g_b_a_color_from_components(r, g, b, a) -> Graph:
2192    """RGBA Color from Components
2193
2194    Given the r, g, b and a creates the color
2195
2196    Args:
2197        red: Graph of Float
2198        green: Graph of Float
2199        blue: Graph of Float
2200        alpha: Graph of Float
2201        
2202
2203    Returns:
2204        Graph: A graph node producing a RGBAColor.
2205    """
2206    r_parsed = parse_float_graph(r)
2207    g_parsed = parse_float_graph(g)
2208    b_parsed = parse_float_graph(b)
2209    a_parsed = parse_float_graph(a)
2210    return r_g_b_a_color_from_components_internal(r_parsed, g_parsed, b_parsed, a_parsed)
2211
2212def r_g_b_a_color_passthrough(value) -> Graph:
2213    """RGBA Color Passthrough
2214
2215    Responds with the value provided. Doing nothing to it.
2216
2217    Args:
2218        value: Graph of RGBAColor
2219        
2220
2221    Returns:
2222        Graph: A graph node producing a RGBAColor.
2223    """
2224    value_parsed = parse_graph(value)
2225    return r_g_b_a_color_passthrough_internal(value_parsed)
2226
2227def r_g_b_color_add_to_dictionary(dictionary, key, value) -> Graph:
2228    """RGB Color Add To Dictionary
2229
2230    Adds a RGB Color to a Dictionary
2231
2232    Args:
2233        dictionary: Graph of Dictionary
2234        key: Graph of String
2235        value: Graph of RGBColor
2236        
2237
2238    Returns:
2239        Graph: A graph node producing a Dictionary.
2240    """
2241    dictionary_parsed = parse_graph(dictionary)
2242    key_parsed = parse_string_graph(key)
2243    value_parsed = parse_graph(value)
2244    return r_g_b_color_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)
2245
2246def r_g_b_color_from_components(r, g, b) -> Graph:
2247    """RGB Color from Components
2248
2249    Given the r, g and b creates the color
2250
2251    Args:
2252        red: Graph of Float
2253        green: Graph of Float
2254        blue: Graph of Float
2255        
2256
2257    Returns:
2258        Graph: A graph node producing a RGBColor.
2259    """
2260    r_parsed = parse_float_graph(r)
2261    g_parsed = parse_float_graph(g)
2262    b_parsed = parse_float_graph(b)
2263    return r_g_b_color_from_components_internal(r_parsed, g_parsed, b_parsed)
2264
2265def r_g_b_color_passthrough(value) -> Graph:
2266    """RGB Color Passthrough
2267
2268    Responds with the value provided. Doing nothing to it.
2269
2270    Args:
2271        value: Graph of RGBColor
2272        
2273
2274    Returns:
2275        Graph: A graph node producing a RGBColor.
2276    """
2277    value_parsed = parse_graph(value)
2278    return r_g_b_color_passthrough_internal(value_parsed)
2279
2280def r_g_b_to_ok_lab(rgb, color_profile) -> Graph:
2281    """RGB to OkLab
2282
2283    Converts an RGB color to an OkLab color
2284
2285    Args:
2286        RGB: Graph of RGBColor
2287        color profile: Graph of ColorProfile
2288        
2289
2290    Returns:
2291        Graph: A graph node producing a OkLabColor.
2292    """
2293    rgb_parsed = parse_graph(rgb)
2294    color_profile_parsed = parse_graph(color_profile)
2295    return r_g_b_to_ok_lab_internal(rgb_parsed, color_profile_parsed)
2296
2297def render_style_brush_and_fill(brush, fill) -> Graph:
2298    """Render Style Brush and Fill
2299
2300    Creates a render style that will have a brush and a fill.
2301
2302    Args:
2303        brush: Graph of Brush
2304        fill: Graph of Fill
2305        
2306
2307    Returns:
2308        Graph: A graph node producing a RenderStyle.
2309    """
2310    brush_parsed = parse_graph(brush)
2311    fill_parsed = parse_graph(fill)
2312    return render_style_brush_and_fill_internal(brush_parsed, fill_parsed)
2313
2314def render_style_brush_only(brush) -> Graph:
2315    """Render Style Brush Only
2316
2317    Creates a render style that will only have a brush.
2318
2319    Args:
2320        brush: Graph of Brush
2321        
2322
2323    Returns:
2324        Graph: A graph node producing a RenderStyle.
2325    """
2326    brush_parsed = parse_graph(brush)
2327    return render_style_brush_only_internal(brush_parsed)
2328
2329def render_style_fill_only(fill) -> Graph:
2330    """Render Style Fill Only
2331
2332    Creates a render style that will only have a fill.
2333
2334    Args:
2335        fill: Graph of Fill
2336        
2337
2338    Returns:
2339        Graph: A graph node producing a RenderStyle.
2340    """
2341    fill_parsed = parse_graph(fill)
2342    return render_style_fill_only_internal(fill_parsed)
2343
2344def sequence_adjust_speed(sequence, factor) -> Graph:
2345    """Sequence Adjust Speed
2346
2347    Adjusts the speed of a sequence by a speed factor.
2348
2349    Args:
2350        sequence: Graph of Sequence
2351        factor: Graph of Float
2352        
2353
2354    Returns:
2355        Graph: A graph node producing a Sequence.
2356    """
2357    sequence_parsed = parse_graph(sequence)
2358    factor_parsed = parse_float_graph(factor)
2359    return sequence_adjust_speed_internal(sequence_parsed, factor_parsed)
2360
2361def sequence_animated_web_p(sequence, framerate) -> Graph:
2362    """Sequence to Animated WebP
2363
2364    Given a sequence of images, encodes them into an animated WebP returning the URL to the file.
2365
2366    Args:
2367        sequence: Graph of Sequence
2368        framerate: Graph of Int
2369        
2370
2371    Returns:
2372        Graph: A graph node producing a ByteList.
2373    """
2374    sequence_parsed = parse_graph(sequence)
2375    framerate_parsed = parse_int_graph(framerate)
2376    return sequence_animated_web_p_internal(sequence_parsed, framerate_parsed)
2377
2378def sequence_composition_at_time(sequence, time) -> Graph:
2379    """Sequence Composition at Time
2380
2381    Extracts an composition from a sequence at a particular time
2382
2383    Args:
2384        sequence: Graph of Sequence
2385        time: Graph of Float
2386        
2387
2388    Returns:
2389        Graph: A graph node producing a Composition.
2390    """
2391    sequence_parsed = parse_graph(sequence)
2392    time_parsed = parse_float_graph(time)
2393    return sequence_composition_at_time_internal(sequence_parsed, time_parsed)
2394
2395def sequence_concatenate(sequence_1, sequence_2) -> Graph:
2396    """Sequence Concatenate
2397
2398    Given two sequences, combines them into one by playing the first one and then the second one.
2399
2400    Args:
2401        sequence 1: Graph of Sequence
2402        sequence 2: Graph of Sequence
2403        
2404
2405    Returns:
2406        Graph: A graph node producing a Sequence.
2407    """
2408    sequence_1_parsed = parse_graph(sequence_1)
2409    sequence_2_parsed = parse_graph(sequence_2)
2410    return sequence_concatenate_internal(sequence_1_parsed, sequence_2_parsed)
2411
2412def sequence_duration(sequence) -> Graph:
2413    """Sequence Duration
2414
2415    Gets the duration from a sequence
2416
2417    Args:
2418        sequence: Graph of Sequence
2419        
2420
2421    Returns:
2422        Graph: A graph node producing a Float.
2423    """
2424    sequence_parsed = parse_graph(sequence)
2425    return sequence_duration_internal(sequence_parsed)
2426
2427def sequence_from_composition_and_duration(composition, duration) -> Graph:
2428    """Sequence from Composition and Duration
2429
2430    Give a Composition and a Duration. Returns a Sequence.
2431
2432    Args:
2433        composition: Graph of Composition
2434        duration: Graph of Float
2435        
2436
2437    Returns:
2438        Graph: A graph node producing a Sequence.
2439    """
2440    composition_parsed = parse_graph(composition)
2441    duration_parsed = parse_float_graph(duration)
2442    return sequence_from_composition_and_duration_internal(composition_parsed, duration_parsed)
2443
2444def sequence_from_u_r_l(url) -> Graph:
2445    """Sequence from URL
2446
2447    Creates a sequence from URL
2448
2449    Args:
2450        url: Graph of String
2451        
2452
2453    Returns:
2454        Graph: A graph node producing a Sequence.
2455    """
2456    url_parsed = parse_string_graph(url)
2457    return sequence_from_u_r_l_internal(url_parsed)
2458
2459def sequence_graph(duration, time, frame) -> Graph:
2460    """Sequence Graph
2461
2462    Creates a sequence that runs the graph to get the duration and the frame for each time.
2463
2464    Args:
2465        duration: Graph of Float
2466        time: Graph of Float
2467        frame: Graph of Composition
2468        
2469
2470    Returns:
2471        Graph: A graph node producing a Sequence.
2472    """
2473    duration_parsed = parse_float_graph(duration)
2474    time_parsed = parse_float_graph(time)
2475    frame_parsed = parse_graph(frame)
2476    return sequence_graph_internal(duration_parsed, time_parsed, frame_parsed)
2477
2478def sequence_grayscale(sequence) -> Graph:
2479    """Sequence Grayscale
2480
2481    Creates a sequence that converts the video to grayscale
2482
2483    Args:
2484        sequence: Graph of Sequence
2485        
2486
2487    Returns:
2488        Graph: A graph node producing a Sequence.
2489    """
2490    sequence_parsed = parse_graph(sequence)
2491    return sequence_grayscale_internal(sequence_parsed)
2492
2493def sequence_passthrough(value) -> Graph:
2494    """Sequence Passthrough
2495
2496    Responds with the value provided. Doing nothing to it.
2497
2498    Args:
2499        value: Graph of Sequence
2500        
2501
2502    Returns:
2503        Graph: A graph node producing a Sequence.
2504    """
2505    value_parsed = parse_graph(value)
2506    return sequence_passthrough_internal(value_parsed)
2507
2508def sequence_reverse(sequence) -> Graph:
2509    """Sequence Reverse
2510
2511    Given a sequence. Reverses it.
2512
2513    Args:
2514        sequence: Graph of Sequence
2515        
2516
2517    Returns:
2518        Graph: A graph node producing a Sequence.
2519    """
2520    sequence_parsed = parse_graph(sequence)
2521    return sequence_reverse_internal(sequence_parsed)
2522
2523def sequence_to_mp4(sequence, frame_rate_numerator, frame_rate_denominator) -> Graph:
2524    """Sequence To MP4
2525
2526    Given a sequence. Converts it to MP4 return a local file to where that MP4 is stored.
2527
2528    Args:
2529        sequence: Graph of Sequence
2530        frame rate numerator: Graph of Int
2531        frame rate denominator: Graph of Int
2532        
2533
2534    Returns:
2535        Graph: A graph node producing a String.
2536    """
2537    sequence_parsed = parse_graph(sequence)
2538    frame_rate_numerator_parsed = parse_int_graph(frame_rate_numerator)
2539    frame_rate_denominator_parsed = parse_int_graph(frame_rate_denominator)
2540    return sequence_to_mp4_internal(sequence_parsed, frame_rate_numerator_parsed, frame_rate_denominator_parsed)
2541
2542def sequence_trim_back(sequence, amount) -> Graph:
2543    """Sequence Trim Back
2544
2545    Given a sequence. Trims from the back.
2546
2547    Args:
2548        sequence: Graph of Sequence
2549        amount: Graph of Float
2550        
2551
2552    Returns:
2553        Graph: A graph node producing a Sequence.
2554    """
2555    sequence_parsed = parse_graph(sequence)
2556    amount_parsed = parse_float_graph(amount)
2557    return sequence_trim_back_internal(sequence_parsed, amount_parsed)
2558
2559def sequence_trim_front(sequence, amount) -> Graph:
2560    """Sequence Trim Front
2561
2562    Given a sequence. Trims from the front.
2563
2564    Args:
2565        sequence: Graph of Sequence
2566        amount: Graph of Float
2567        
2568
2569    Returns:
2570        Graph: A graph node producing a Sequence.
2571    """
2572    sequence_parsed = parse_graph(sequence)
2573    amount_parsed = parse_float_graph(amount)
2574    return sequence_trim_front_internal(sequence_parsed, amount_parsed)
2575
2576def string_if(bool, input_1, input_2) -> Graph:
2577    """String If
2578
2579    If the boolean is true returns input 1, otherwise input 2. Type: String
2580
2581    Args:
2582        bool: Graph of Bool
2583        input 1: Graph of String
2584        input 2: Graph of String
2585        
2586
2587    Returns:
2588        Graph: A graph node producing a String.
2589    """
2590    bool_parsed = parse_bool_graph(bool)
2591    input_1_parsed = parse_string_graph(input_1)
2592    input_2_parsed = parse_string_graph(input_2)
2593    return string_if_internal(bool_parsed, input_1_parsed, input_2_parsed)
2594
2595def transform2_identity() -> Graph:
2596    """Transform 2D Identity
2597
2598    Creates a 2D transform that is the identity transform.
2599
2600    Returns:
2601        Graph: A graph node producing a Transform2.
2602    """
2603    return transform2_identity_internal()
2604
2605def transform2_rotate(transform, angle) -> Graph:
2606    """Transform 2D Rotate
2607
2608    Applies a rotation to a 2D transform. Rotation is in radians.
2609
2610    Args:
2611        transform: Graph of Transform2
2612        angle in radians: Graph of Float
2613        
2614
2615    Returns:
2616        Graph: A graph node producing a Transform2.
2617    """
2618    transform_parsed = parse_graph(transform)
2619    angle_parsed = parse_float_graph(angle)
2620    return transform2_rotate_internal(transform_parsed, angle_parsed)
2621
2622def transform2_scale(transform, scale) -> Graph:
2623    """Transform 2D Scale
2624
2625    Applies a scale to a 2D transform.
2626
2627    Args:
2628        transform: Graph of Transform2
2629        scale: Graph of Vector2f
2630        
2631
2632    Returns:
2633        Graph: A graph node producing a Transform2.
2634    """
2635    transform_parsed = parse_graph(transform)
2636    scale_parsed = parse_graph(scale)
2637    return transform2_scale_internal(transform_parsed, scale_parsed)
2638
2639def transform2_to_list(item) -> Graph:
2640    """Transform 2D to List
2641
2642    Converts Transform 2D to a single item list
2643
2644    Args:
2645        item: Graph of Transform2
2646        
2647
2648    Returns:
2649        Graph: A graph node producing a Transform2List.
2650    """
2651    item_parsed = parse_graph(item)
2652    return transform2_to_list_internal(item_parsed)
2653
2654def transform2_translation(transform, translation) -> Graph:
2655    """Transform 2D Translation
2656
2657    Applies a translation to a 2D transform.
2658
2659    Args:
2660        transform: Graph of Transform2
2661        translation: Graph of Vector2f
2662        
2663
2664    Returns:
2665        Graph: A graph node producing a Transform2.
2666    """
2667    transform_parsed = parse_graph(transform)
2668    translation_parsed = parse_graph(translation)
2669    return transform2_translation_internal(transform_parsed, translation_parsed)
2670
2671def upload_file_path(path, url, content_type) -> Graph:
2672    """Upload File Path
2673
2674    Reads a file from a local path on disk and uploads its contents to a URL via PUT request
2675
2676    Args:
2677        local file path to read: Graph of String
2678        url: Graph of String
2679        content type: Graph of String
2680        
2681
2682    Returns:
2683        Graph: A graph node producing a Void.
2684    """
2685    path_parsed = parse_string_graph(path)
2686    url_parsed = parse_string_graph(url)
2687    content_type_parsed = parse_string_graph(content_type)
2688    return upload_file_path_internal(path_parsed, url_parsed, content_type_parsed)
2689
2690def vector2_int_to_vector2_float(vector) -> Graph:
2691    """Vector 2 Int to Vector 2 Float
2692
2693    Given a Vector 2 Int. Creates a Vector 2 Float.
2694
2695    Args:
2696        vector: Graph of Vector2i
2697        
2698
2699    Returns:
2700        Graph: A graph node producing a Vector2f.
2701    """
2702    vector_parsed = parse_graph(vector)
2703    return vector2_int_to_vector2_float_internal(vector_parsed)
2704
2705def vector2f_add(lhs, rhs) -> Graph:
2706    """Vector 2 Float Add
2707
2708    Add two Vector 2s of Floats
2709
2710    Args:
2711        The vector on the left hand side of the add: Graph of Vector2f
2712        The vector on the right hand side of the add: Graph of Vector2f
2713        
2714
2715    Returns:
2716        Graph: A graph node producing a Vector2f.
2717    """
2718    lhs_parsed = parse_graph(lhs)
2719    rhs_parsed = parse_graph(rhs)
2720    return vector2f_add_internal(lhs_parsed, rhs_parsed)
2721
2722def vector2f_add_to_dictionary(dictionary, key, value) -> Graph:
2723    """Vector 2 Float Add To Dictionary
2724
2725    Adds a Vector 2 Float to a Dictionary
2726
2727    Args:
2728        dictionary: Graph of Dictionary
2729        key: Graph of String
2730        value: Graph of Vector2f
2731        
2732
2733    Returns:
2734        Graph: A graph node producing a Dictionary.
2735    """
2736    dictionary_parsed = parse_graph(dictionary)
2737    key_parsed = parse_string_graph(key)
2738    value_parsed = parse_graph(value)
2739    return vector2f_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)
2740
2741def vector2f_from_components(x, y) -> Graph:
2742    """Vector 2 Float from Components
2743
2744    Given an x and y creates a vector.
2745
2746    Args:
2747        x: Graph of Float
2748        y: Graph of Float
2749        
2750
2751    Returns:
2752        Graph: A graph node producing a Vector2f.
2753    """
2754    x_parsed = parse_float_graph(x)
2755    y_parsed = parse_float_graph(y)
2756    return vector2f_from_components_internal(x_parsed, y_parsed)
2757
2758def vector2f_normalize(vector) -> Graph:
2759    """Vector 2 Float Normalize
2760
2761    Normalizes a Vector. Converting it's length to 1.
2762
2763    Args:
2764        Vector: Graph of Vector2f
2765        
2766
2767    Returns:
2768        Graph: A graph node producing a Vector2f.
2769    """
2770    vector_parsed = parse_graph(vector)
2771    return vector2f_normalize_internal(vector_parsed)
2772
2773def vector2f_passthrough(value) -> Graph:
2774    """Vector 2 Float Passthrough
2775
2776    Responds with the value provided. Doing nothing to it.
2777
2778    Args:
2779        value: Graph of Vector2f
2780        
2781
2782    Returns:
2783        Graph: A graph node producing a Vector2f.
2784    """
2785    value_parsed = parse_graph(value)
2786    return vector2f_passthrough_internal(value_parsed)
2787
2788def vector2f_scalar_multiply(vector, scalar) -> Graph:
2789    """Vector 2 Float Scalar Multiply
2790
2791    Multiplies each element of the Vector as a scalar
2792
2793    Args:
2794        Vector: Graph of Vector2f
2795        Scalar: Graph of Float
2796        
2797
2798    Returns:
2799        Graph: A graph node producing a Vector2f.
2800    """
2801    vector_parsed = parse_graph(vector)
2802    scalar_parsed = parse_float_graph(scalar)
2803    return vector2f_scalar_multiply_internal(vector_parsed, scalar_parsed)
2804
2805def vector2f_x(vector) -> Graph:
2806    """Vector 2 Float get X
2807
2808    Retrieves the X component of a Vector 2 Float.
2809
2810    Args:
2811        vector: Graph of Vector2f
2812        
2813
2814    Returns:
2815        Graph: A graph node producing a Float.
2816    """
2817    vector_parsed = parse_graph(vector)
2818    return vector2f_x_internal(vector_parsed)
2819
2820def vector2f_y(vector) -> Graph:
2821    """Vector 2 Float get Y
2822
2823    Retrieves the Y component of a Vector 2 Float.
2824
2825    Args:
2826        vector: Graph of Vector2f
2827        
2828
2829    Returns:
2830        Graph: A graph node producing a Float.
2831    """
2832    vector_parsed = parse_graph(vector)
2833    return vector2f_y_internal(vector_parsed)
2834
2835def vector2i_add(lhs, rhs) -> Graph:
2836    """Vector 2 Int Add
2837
2838    Add two Vector 2s of Ints
2839
2840    Args:
2841        The vector on the left hand side of the add: Graph of Vector2i
2842        The vector on the right hand side of the add: Graph of Vector2i
2843        
2844
2845    Returns:
2846        Graph: A graph node producing a Vector2i.
2847    """
2848    lhs_parsed = parse_graph(lhs)
2849    rhs_parsed = parse_graph(rhs)
2850    return vector2i_add_internal(lhs_parsed, rhs_parsed)
2851
2852def vector2i_add_to_dictionary(dictionary, key, value) -> Graph:
2853    """Vector 2 Int Add To Dictionary
2854
2855    Adds a Vector 2 Int to a Dictionary
2856
2857    Args:
2858        dictionary: Graph of Dictionary
2859        key: Graph of String
2860        value: Graph of Vector2i
2861        
2862
2863    Returns:
2864        Graph: A graph node producing a Dictionary.
2865    """
2866    dictionary_parsed = parse_graph(dictionary)
2867    key_parsed = parse_string_graph(key)
2868    value_parsed = parse_graph(value)
2869    return vector2i_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)
2870
2871def vector2i_from_components(x, y) -> Graph:
2872    """Vector 2 Int from Components
2873
2874    Given an x and y creates a vector.
2875
2876    Args:
2877        x: Graph of Int
2878        y: Graph of Int
2879        
2880
2881    Returns:
2882        Graph: A graph node producing a Vector2i.
2883    """
2884    x_parsed = parse_int_graph(x)
2885    y_parsed = parse_int_graph(y)
2886    return vector2i_from_components_internal(x_parsed, y_parsed)
2887
2888def vector2i_passthrough(value) -> Graph:
2889    """Vector 2 Int Passthrough
2890
2891    Responds with the value provided. Doing nothing to it.
2892
2893    Args:
2894        value: Graph of Vector2i
2895        
2896
2897    Returns:
2898        Graph: A graph node producing a Vector2i.
2899    """
2900    value_parsed = parse_graph(value)
2901    return vector2i_passthrough_internal(value_parsed)
2902
2903def vector2i_to_vector2f(vector) -> Graph:
2904    """Vector 2 Int to Vector 2 Float
2905
2906    Given a Vector 2 Int. Creates a Vector 2 Float.
2907
2908    Args:
2909        vector: Graph of Vector2i
2910        
2911
2912    Returns:
2913        Graph: A graph node producing a Vector2f.
2914    """
2915    vector_parsed = parse_graph(vector)
2916    return vector2i_to_vector2f_internal(vector_parsed)
2917
2918def vector2i_x(vector) -> Graph:
2919    """Vector 2 Int get X
2920
2921    Retrieves the X component of a Vector 2 Int.
2922
2923    Args:
2924        vector: Graph of Vector2i
2925        
2926
2927    Returns:
2928        Graph: A graph node producing a Int.
2929    """
2930    vector_parsed = parse_graph(vector)
2931    return vector2i_x_internal(vector_parsed)
2932
2933def vector2i_y(vector) -> Graph:
2934    """Vector 2 Int get Y
2935
2936    Retrieves the Y component of a Vector 2 Int.
2937
2938    Args:
2939        vector: Graph of Vector2i
2940        
2941
2942    Returns:
2943        Graph: A graph node producing a Int.
2944    """
2945    vector_parsed = parse_graph(vector)
2946    return vector2i_y_internal(vector_parsed)
2947
2948def vector3f_add(lhs, rhs) -> Graph:
2949    """Vector 3 Float Add
2950
2951    Add two Vector 3s of Floats
2952
2953    Args:
2954        The vector on the left hand side of the add: Graph of Vector3f
2955        The vector on the right hand side of the add: Graph of Vector3f
2956        
2957
2958    Returns:
2959        Graph: A graph node producing a Vector3f.
2960    """
2961    lhs_parsed = parse_graph(lhs)
2962    rhs_parsed = parse_graph(rhs)
2963    return vector3f_add_internal(lhs_parsed, rhs_parsed)
2964
2965def vector3f_from_components(x, y, z) -> Graph:
2966    """Vector 3 Float from Components
2967
2968    Given an x, y and z creates a vector floats.
2969
2970    Args:
2971        x: Graph of Float
2972        y: Graph of Float
2973        z: Graph of Float
2974        
2975
2976    Returns:
2977        Graph: A graph node producing a Vector3f.
2978    """
2979    x_parsed = parse_float_graph(x)
2980    y_parsed = parse_float_graph(y)
2981    z_parsed = parse_float_graph(z)
2982    return vector3f_from_components_internal(x_parsed, y_parsed, z_parsed)
2983
2984def vector3f_normalize(vector) -> Graph:
2985    """Vector 3 Normalize
2986
2987    Normalizes a Vector 3 Float. Converting it's length to 1.
2988
2989    Args:
2990        Vector: Graph of Vector3f
2991        
2992
2993    Returns:
2994        Graph: A graph node producing a Vector3f.
2995    """
2996    vector_parsed = parse_graph(vector)
2997    return vector3f_normalize_internal(vector_parsed)
2998
2999def vector3f_x(vector) -> Graph:
3000    """Vector 3D Float X
3001
3002    Gets the value in the x component for the provided vector
3003
3004    Args:
3005        vector: Graph of Vector3f
3006        
3007
3008    Returns:
3009        Graph: A graph node producing a Float.
3010    """
3011    vector_parsed = parse_graph(vector)
3012    return vector3f_x_internal(vector_parsed)
3013
3014def vector3f_y(vector) -> Graph:
3015    """Vector 3D Y Float
3016
3017    Gets the value in the y component for the provided vector
3018
3019    Args:
3020        vector: Graph of Vector3f
3021        
3022
3023    Returns:
3024        Graph: A graph node producing a Float.
3025    """
3026    vector_parsed = parse_graph(vector)
3027    return vector3f_y_internal(vector_parsed)
3028
3029def vector3f_z(vector) -> Graph:
3030    """Vector 3D Float Z
3031
3032    Gets the value in the z component for the provided vector
3033
3034    Args:
3035        vector: Graph of Vector3f
3036        
3037
3038    Returns:
3039        Graph: A graph node producing a Float.
3040    """
3041    vector_parsed = parse_graph(vector)
3042    return vector3f_z_internal(vector_parsed)
3043
3044def xor(bool1, bool2) -> Graph:
3045    """Exclusive Or
3046
3047    Returns true if either the inputs are true. But false if both are true.
3048
3049    Args:
3050        the first bool: Graph of Bool
3051        The second bool: Graph of Bool
3052        
3053
3054    Returns:
3055        Graph: A graph node producing a Bool.
3056    """
3057    bool1_parsed = parse_bool_graph(bool1)
3058    bool2_parsed = parse_bool_graph(bool2)
3059    return xor_internal(bool1_parsed, bool2_parsed)
3060
3061
3062__all__ = [
3063    # Core classes
3064    "Context", "Graph", "Handle", "Project", "Type",
3065    "TypeDefinition", "NodeDefinition", "NodeDefinitionInput", "ImageRecipe",
3066    # Constant functions
3067    "int_constant", "float_constant", "string_constant", "bool_constant",
3068    # Node functions
3069    "abs",
3070    "and_",
3071    "bool_add_to_dictionary",
3072    "bool_if",
3073    "bounds2f_from_x_y_width_height",
3074    "bounds2i_from_x_y_width_height",
3075    "brush_solid",
3076    "byte_list_from_u_r_l",
3077    "color_profile_b_t709",
3078    "color_profile_ok_lab_a",
3079    "color_profile_p3",
3080    "color_profile_p_n_g_s_r_g_b",
3081    "color_profile_s_r_g_b",
3082    "composition_absolute_value",
3083    "composition_bilinear_interpolation",
3084    "composition_blend_add",
3085    "composition_blend_add_with_ok_lab",
3086    "composition_blend_alpha",
3087    "composition_blend_alpha_with_ok_lab",
3088    "composition_blend_divide",
3089    "composition_blend_divide_with_ok_lab",
3090    "composition_blend_max",
3091    "composition_blend_max_with_ok_lab",
3092    "composition_blend_min",
3093    "composition_blend_min_with_ok_lab",
3094    "composition_blend_multiply",
3095    "composition_blend_multiply_with_ok_lab",
3096    "composition_blend_subtract",
3097    "composition_blend_subtract_with_ok_lab",
3098    "composition_blend_with_mask",
3099    "composition_box_blur",
3100    "composition_box_blur_with_ok_lab",
3101    "composition_brightness_adjust",
3102    "composition_chroma_offset",
3103    "composition_color_convert",
3104    "composition_color_invert",
3105    "composition_color_profile",
3106    "composition_color_rect",
3107    "composition_color_threshold",
3108    "composition_convolution",
3109    "composition_crop",
3110    "composition_custom_transformer_shader",
3111    "composition_face_landmarks",
3112    "composition_flip_horizontal",
3113    "composition_flip_vertical",
3114    "composition_from_image",
3115    "composition_gaussian_blur",
3116    "composition_gaussian_blur_with_ok_lab",
3117    "composition_grayscale",
3118    "composition_l_curve",
3119    "composition_linear_transform",
3120    "composition_monet_women_with_parasol",
3121    "composition_morphological_max",
3122    "composition_morphological_min",
3123    "composition_painter",
3124    "composition_passthrough",
3125    "composition_perceptual_difference",
3126    "composition_r_g_b_curve",
3127    "composition_render_to_image",
3128    "composition_rotate180",
3129    "composition_rotate90_clockwise",
3130    "composition_rotate90_counter_clockwise",
3131    "composition_saturation_adjust",
3132    "composition_scale_nearest_neighbor",
3133    "composition_segment_facial_skin",
3134    "composition_segment_mouth_lips_eyes_eyebrows",
3135    "composition_segment_person",
3136    "composition_segment_under_right_eye",
3137    "composition_size",
3138    "composition_sobel_edge_detection",
3139    "composition_target_white_kelvin",
3140    "composition_to_ok_lab_hist",
3141    "composition_uniform_lightness",
3142    "composition_vignette",
3143    "curve_gamma",
3144    "curve_identity",
3145    "curve_pivoted_sigmoid",
3146    "curve_s_curve",
3147    "dictionary_create",
3148    "fill_custom",
3149    "fill_solid",
3150    "float_add",
3151    "float_add_to_dictionary",
3152    "float_cos",
3153    "float_divide",
3154    "float_if",
3155    "float_lerp",
3156    "float_max",
3157    "float_min",
3158    "float_multiply",
3159    "float_passthrough",
3160    "float_pow",
3161    "float_round_to_int",
3162    "float_sin",
3163    "float_square_root",
3164    "float_squared",
3165    "float_subtract",
3166    "image_from_byte_list",
3167    "image_to_byte_list",
3168    "int_abs",
3169    "int_add",
3170    "int_add_to_dictionary",
3171    "int_equals",
3172    "int_greater_than",
3173    "int_if",
3174    "int_less_than",
3175    "int_max",
3176    "int_min",
3177    "int_multiply",
3178    "int_passthrough",
3179    "int_subtract",
3180    "int_to_float",
3181    "monet_network_download_u_r_l_from_asset_i_d",
3182    "not_",
3183    "null_value",
3184    "ok_lab_color_from_components",
3185    "ok_lab_to_r_g_b",
3186    "or_",
3187    "painter_add_path_with_render_style",
3188    "painter_new",
3189    "path_add_rectangle",
3190    "path_line_to_point",
3191    "path_move_to_point",
3192    "path_new",
3193    "pi",
3194    "point2f_from_components",
3195    "r_g_b_a_color_add_to_dictionary",
3196    "r_g_b_a_color_from_components",
3197    "r_g_b_a_color_passthrough",
3198    "r_g_b_color_add_to_dictionary",
3199    "r_g_b_color_from_components",
3200    "r_g_b_color_passthrough",
3201    "r_g_b_to_ok_lab",
3202    "render_style_brush_and_fill",
3203    "render_style_brush_only",
3204    "render_style_fill_only",
3205    "sequence_adjust_speed",
3206    "sequence_animated_web_p",
3207    "sequence_composition_at_time",
3208    "sequence_concatenate",
3209    "sequence_duration",
3210    "sequence_from_composition_and_duration",
3211    "sequence_from_u_r_l",
3212    "sequence_graph",
3213    "sequence_grayscale",
3214    "sequence_passthrough",
3215    "sequence_reverse",
3216    "sequence_to_mp4",
3217    "sequence_trim_back",
3218    "sequence_trim_front",
3219    "string_if",
3220    "transform2_identity",
3221    "transform2_rotate",
3222    "transform2_scale",
3223    "transform2_to_list",
3224    "transform2_translation",
3225    "upload_file_path",
3226    "vector2_int_to_vector2_float",
3227    "vector2f_add",
3228    "vector2f_add_to_dictionary",
3229    "vector2f_from_components",
3230    "vector2f_normalize",
3231    "vector2f_passthrough",
3232    "vector2f_scalar_multiply",
3233    "vector2f_x",
3234    "vector2f_y",
3235    "vector2i_add",
3236    "vector2i_add_to_dictionary",
3237    "vector2i_from_components",
3238    "vector2i_passthrough",
3239    "vector2i_to_vector2f",
3240    "vector2i_x",
3241    "vector2i_y",
3242    "vector3f_add",
3243    "vector3f_from_components",
3244    "vector3f_normalize",
3245    "vector3f_x",
3246    "vector3f_y",
3247    "vector3f_z",
3248    "xor",
3249    ]
class Context:
class Graph:
def persistent_id(self, /):

The type of the None singleton.

def revision_id(self, /):

The type of the None singleton.

def node_definition(self, /):

The type of the None singleton.

def dependencies(self, /):

The type of the None singleton.

def execute(self, /, context, handle):

The type of the None singleton.

class Handle:

Used for cancellation and status tracking during execution.

def cancel(self, /):

The type of the None singleton.

class Project:
def add_graph(self, /, graph):

The type of the None singleton.

def all_nodes(self, /):

The type of the None singleton.

def lookup(self, /, graph_id):

The type of the None singleton.

def serialize(self, /, context):

The type of the None singleton.

def execute(self, /, context, handle, graph_id):

The type of the None singleton.

def deserialize(context, bytes):

The type of the None singleton.

class Type:

The result of executing a graph node.

def type_definition(self, /):

The type of the None singleton.

def type_name(self, /):

The type of the None singleton.

def as_bool(self, /):

The type of the None singleton.

def as_int(self, /):

The type of the None singleton.

def as_float(self, /):

The type of the None singleton.

def as_string(self, /):

The type of the None singleton.

def as_float_list(self, /):

The type of the None singleton.

def as_int_list(self, /):

The type of the None singleton.

def as_composition(self, /):

The type of the None singleton.

class TypeDefinition:
description
name
display_name
class NodeDefinition:
display_name
output_type
inputs
description
node_type_id
name
class NodeDefinitionInput:
input_type
description
name
class ImageRecipe:

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

def size(self, /):

The type of the None singleton.

def to_image_bytes(self, /, context):

The type of the None singleton.

def int_constant(value: int) -> Graph:
49def int_constant(value: int) -> Graph:
50    return int_constant_internal(value)
def float_constant(value) -> Graph:
52def float_constant(value) -> Graph:
53    return float_constant_internal(float(value))
def string_constant(value: str) -> Graph:
55def string_constant(value: str) -> Graph:
56    return string_constant_internal(value)
def bool_constant(value: bool) -> Graph:
58def bool_constant(value: bool) -> Graph:
59    return bool_constant_internal(value)
def abs(number) -> Graph:
62def abs(number) -> Graph:
63    """Absolute Value
64
65    Returns the absolute value of a float
66
67    Args:
68        number: Graph of Float
69        
70
71    Returns:
72        Graph: A graph node producing a Float.
73    """
74    number_parsed = parse_float_graph(number)
75    return abs_internal(number_parsed)

Absolute Value

Returns the absolute value of a float

Args: number: Graph of Float

Returns: Graph: A graph node producing a Float.

def and_(bool1, bool2) -> Graph:
77def and_(bool1, bool2) -> Graph:
78    """And
79
80    Returns true if both inputs are true.
81
82    Args:
83        the first bool: Graph of Bool
84        The second bool: Graph of Bool
85        
86
87    Returns:
88        Graph: A graph node producing a Bool.
89    """
90    bool1_parsed = parse_bool_graph(bool1)
91    bool2_parsed = parse_bool_graph(bool2)
92    return and_internal(bool1_parsed, bool2_parsed)

And

Returns true if both inputs are true.

Args: the first bool: Graph of Bool The second bool: Graph of Bool

Returns: Graph: A graph node producing a Bool.

def bool_add_to_dictionary(dictionary, key, value) -> Graph:
 94def bool_add_to_dictionary(dictionary, key, value) -> Graph:
 95    """Bool Add To Dictionary
 96
 97    Adds a Bool to a Dictionary
 98
 99    Args:
100        dictionary: Graph of Dictionary
101        key: Graph of String
102        value: Graph of Bool
103        
104
105    Returns:
106        Graph: A graph node producing a Dictionary.
107    """
108    dictionary_parsed = parse_graph(dictionary)
109    key_parsed = parse_string_graph(key)
110    value_parsed = parse_bool_graph(value)
111    return bool_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

Bool Add To Dictionary

Adds a Bool to a Dictionary

Args: dictionary: Graph of Dictionary key: Graph of String value: Graph of Bool

Returns: Graph: A graph node producing a Dictionary.

def bool_if(bool, input_1, input_2) -> Graph:
113def bool_if(bool, input_1, input_2) -> Graph:
114    """Bool If
115
116    If the boolean is true returns input 1, otherwise input 2. Type: Bool
117
118    Args:
119        bool: Graph of Bool
120        input 1: Graph of Bool
121        input 2: Graph of Bool
122        
123
124    Returns:
125        Graph: A graph node producing a Bool.
126    """
127    bool_parsed = parse_bool_graph(bool)
128    input_1_parsed = parse_bool_graph(input_1)
129    input_2_parsed = parse_bool_graph(input_2)
130    return bool_if_internal(bool_parsed, input_1_parsed, input_2_parsed)

Bool If

If the boolean is true returns input 1, otherwise input 2. Type: Bool

Args: bool: Graph of Bool input 1: Graph of Bool input 2: Graph of Bool

Returns: Graph: A graph node producing a Bool.

def bounds2f_from_x_y_width_height(x, y, width, height) -> Graph:
132def bounds2f_from_x_y_width_height(x, y, width, height) -> Graph:
133    """Bounds 2D Float from X, Y, Width & Height
134
135    Creates the bounds of a 2D float region from its X, Y, Width and Height.
136
137    Args:
138        x: Graph of Float
139        y: Graph of Float
140        width: Graph of Float
141        height: Graph of Float
142        
143
144    Returns:
145        Graph: A graph node producing a Bounds2f.
146    """
147    x_parsed = parse_float_graph(x)
148    y_parsed = parse_float_graph(y)
149    width_parsed = parse_float_graph(width)
150    height_parsed = parse_float_graph(height)
151    return bounds2f_from_x_y_width_height_internal(x_parsed, y_parsed, width_parsed, height_parsed)

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 bounds2i_from_x_y_width_height(x, y, width, height) -> Graph:
153def bounds2i_from_x_y_width_height(x, y, width, height) -> Graph:
154    """Bounds 2D Int from X, Y, Width & Height
155
156    Creates the bounds of a 2D array from its X, Y, Width and Height.
157
158    Args:
159        x: Graph of Int
160        y: Graph of Int
161        width: Graph of Int
162        height: Graph of Int
163        
164
165    Returns:
166        Graph: A graph node producing a Bounds2i.
167    """
168    x_parsed = parse_int_graph(x)
169    y_parsed = parse_int_graph(y)
170    width_parsed = parse_int_graph(width)
171    height_parsed = parse_int_graph(height)
172    return bounds2i_from_x_y_width_height_internal(x_parsed, y_parsed, width_parsed, height_parsed)

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.

def brush_solid(color, radius) -> Graph:
174def brush_solid(color, radius) -> Graph:
175    """Brush Solid
176
177    Creates a brush with a color and radius. Will stroke with the solid color.
178
179    Args:
180        color: Graph of RGBAColor
181        radius: Graph of Float
182        
183
184    Returns:
185        Graph: A graph node producing a Brush.
186    """
187    color_parsed = parse_graph(color)
188    radius_parsed = parse_float_graph(radius)
189    return brush_solid_internal(color_parsed, radius_parsed)

Brush Solid

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

Args: color: Graph of RGBAColor radius: Graph of Float

Returns: Graph: A graph node producing a Brush.

def byte_list_from_u_r_l(url) -> Graph:
191def byte_list_from_u_r_l(url) -> Graph:
192    """Byte List from URL
193
194    Given a URL. Performs a GET request and downloads the result as bytes
195
196    Args:
197        url: Graph of String
198        
199
200    Returns:
201        Graph: A graph node producing a ByteList.
202    """
203    url_parsed = parse_string_graph(url)
204    return byte_list_from_u_r_l_internal(url_parsed)

Byte List 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 ByteList.

def color_profile_b_t709() -> Graph:
206def color_profile_b_t709() -> Graph:
207    """Color Profile BT.709
208
209    Creates a BT.709 Color Profile
210
211    Returns:
212        Graph: A graph node producing a ColorProfile.
213    """
214    return color_profile_b_t709_internal()

Color Profile BT.709

Creates a BT.709 Color Profile

Returns: Graph: A graph node producing a ColorProfile.

def color_profile_ok_lab_a() -> Graph:
216def color_profile_ok_lab_a() -> Graph:
217    """Color Profile OkLabA
218
219    Creates an OkLabA color profile. OkLab with also an alpha component.
220
221    Returns:
222        Graph: A graph node producing a ColorProfile.
223    """
224    return color_profile_ok_lab_a_internal()

Color Profile OkLabA

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

Returns: Graph: A graph node producing a ColorProfile.

def color_profile_p3() -> Graph:
226def color_profile_p3() -> Graph:
227    """Color Profile P3
228
229    Creates a P3 Color Profile
230
231    Returns:
232        Graph: A graph node producing a ColorProfile.
233    """
234    return color_profile_p3_internal()

Color Profile P3

Creates a P3 Color Profile

Returns: Graph: A graph node producing a ColorProfile.

def color_profile_p_n_g_s_r_g_b() -> Graph:
236def color_profile_p_n_g_s_r_g_b() -> Graph:
237    """Color Profile PNG sRGB
238
239    Creates a color profile that is the same one as PNG sRGB.
240
241    Returns:
242        Graph: A graph node producing a ColorProfile.
243    """
244    return color_profile_p_n_g_s_r_g_b_internal()

Color Profile PNG sRGB

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

Returns: Graph: A graph node producing a ColorProfile.

def color_profile_s_r_g_b() -> Graph:
246def color_profile_s_r_g_b() -> Graph:
247    """Color Profile sRGB
248
249    Creates an sRGB Color Profile
250
251    Returns:
252        Graph: A graph node producing a ColorProfile.
253    """
254    return color_profile_s_r_g_b_internal()

Color Profile sRGB

Creates an sRGB Color Profile

Returns: Graph: A graph node producing a ColorProfile.

def composition_absolute_value(image) -> Graph:
256def composition_absolute_value(image) -> Graph:
257    """Composition Absolute Value
258
259    Takes the absolute value of all the pixels in the image.
260
261    Args:
262        image: Graph of Composition
263        
264
265    Returns:
266        Graph: A graph node producing a Composition.
267    """
268    image_parsed = parse_graph(image)
269    return composition_absolute_value_internal(image_parsed)

Composition Absolute Value

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

Args: image: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_bilinear_interpolation(composition, size) -> Graph:
271def composition_bilinear_interpolation(composition, size) -> Graph:
272    """Composition Scale Bilinear Interpolation
273
274    Uses the bilinear interpolation algorithm to scale an image recipe
275
276    Args:
277        composition: Graph of Composition
278        size: Graph of Vector2i
279        
280
281    Returns:
282        Graph: A graph node producing a Composition.
283    """
284    composition_parsed = parse_graph(composition)
285    size_parsed = parse_graph(size)
286    return composition_bilinear_interpolation_internal(composition_parsed, size_parsed)

Composition Scale Bilinear Interpolation

Uses the bilinear interpolation algorithm to scale an image recipe

Args: composition: Graph of Composition size: Graph of Vector2i

Returns: Graph: A graph node producing a Composition.

def composition_blend_add(foreground, background, foreground_transform) -> Graph:
288def composition_blend_add(foreground, background, foreground_transform) -> Graph:
289    """Composition Blend Add
290
291    Adds the foreground and background images together using additive blending.
292
293    Args:
294        foreground: Graph of Composition
295        background: Graph of Composition
296        foreground transform: Graph of Transform2
297        
298
299    Returns:
300        Graph: A graph node producing a Composition.
301    """
302    foreground_parsed = parse_graph(foreground)
303    background_parsed = parse_graph(background)
304    foreground_transform_parsed = parse_graph(foreground_transform)
305    return composition_blend_add_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Add

Adds the foreground and background images together using additive blending.

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_add_with_ok_lab(foreground, background, foreground_transform) -> Graph:
307def composition_blend_add_with_ok_lab(foreground, background, foreground_transform) -> Graph:
308    """Composition Blend Add with OkLab
309
310    Adds the foreground and background images together using additive blending in OkLab color space.
311
312    Args:
313        foreground: Graph of Composition
314        background: Graph of Composition
315        foreground transform: Graph of Transform2
316        
317
318    Returns:
319        Graph: A graph node producing a Composition.
320    """
321    foreground_parsed = parse_graph(foreground)
322    background_parsed = parse_graph(background)
323    foreground_transform_parsed = parse_graph(foreground_transform)
324    return composition_blend_add_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Add with OkLab

Adds the foreground and background images together using additive blending in OkLab color space.

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_alpha(foreground, background, foreground_transform) -> Graph:
326def composition_blend_alpha(foreground, background, foreground_transform) -> Graph:
327    """Composition Blend Alpha
328
329    Blends between the foreground and background using the alpha component of the foreground. 1 is foreground. 0 is background.
330
331    Args:
332        foreground: Graph of Composition
333        background: Graph of Composition
334        foreground transform: Graph of Transform2
335        
336
337    Returns:
338        Graph: A graph node producing a Composition.
339    """
340    foreground_parsed = parse_graph(foreground)
341    background_parsed = parse_graph(background)
342    foreground_transform_parsed = parse_graph(foreground_transform)
343    return composition_blend_alpha_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Alpha

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

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_alpha_with_ok_lab(foreground, background, foreground_transform) -> Graph:
345def composition_blend_alpha_with_ok_lab(foreground, background, foreground_transform) -> Graph:
346    """Composition Blend Alpha with OkLab
347
348    Blends between the foreground and background using the alpha component of the foreground in OkLab color space. 1 is foreground. 0 is background.
349
350    Args:
351        foreground: Graph of Composition
352        background: Graph of Composition
353        foreground transform: Graph of Transform2
354        
355
356    Returns:
357        Graph: A graph node producing a Composition.
358    """
359    foreground_parsed = parse_graph(foreground)
360    background_parsed = parse_graph(background)
361    foreground_transform_parsed = parse_graph(foreground_transform)
362    return composition_blend_alpha_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Alpha with OkLab

Blends between the foreground and background using the alpha component of the foreground in OkLab color space. 1 is foreground. 0 is background.

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_divide(foreground, background, foreground_transform) -> Graph:
364def composition_blend_divide(foreground, background, foreground_transform) -> Graph:
365    """Composition Blend Divide
366
367    Divides the background image by the foreground image using division blending.
368
369    Args:
370        foreground: Graph of Composition
371        background: Graph of Composition
372        foreground transform: Graph of Transform2
373        
374
375    Returns:
376        Graph: A graph node producing a Composition.
377    """
378    foreground_parsed = parse_graph(foreground)
379    background_parsed = parse_graph(background)
380    foreground_transform_parsed = parse_graph(foreground_transform)
381    return composition_blend_divide_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Divide

Divides the background image by the foreground image using division blending.

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_divide_with_ok_lab(foreground, background, foreground_transform) -> Graph:
383def composition_blend_divide_with_ok_lab(foreground, background, foreground_transform) -> Graph:
384    """Composition Blend Divide with OkLab
385
386    Divides the background image by the foreground image using division blending in OkLab color space.
387
388    Args:
389        foreground: Graph of Composition
390        background: Graph of Composition
391        foreground transform: Graph of Transform2
392        
393
394    Returns:
395        Graph: A graph node producing a Composition.
396    """
397    foreground_parsed = parse_graph(foreground)
398    background_parsed = parse_graph(background)
399    foreground_transform_parsed = parse_graph(foreground_transform)
400    return composition_blend_divide_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Divide with OkLab

Divides the background image by the foreground image using division blending in OkLab color space.

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_max(foreground, background, foreground_transform) -> Graph:
402def composition_blend_max(foreground, background, foreground_transform) -> Graph:
403    """Composition Blend Max
404
405    Blends the foreground and background images using maximum value blending.
406
407    Args:
408        foreground: Graph of Composition
409        background: Graph of Composition
410        foreground transform: Graph of Transform2
411        
412
413    Returns:
414        Graph: A graph node producing a Composition.
415    """
416    foreground_parsed = parse_graph(foreground)
417    background_parsed = parse_graph(background)
418    foreground_transform_parsed = parse_graph(foreground_transform)
419    return composition_blend_max_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Max

Blends the foreground and background images using maximum value blending.

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_max_with_ok_lab(foreground, background, foreground_transform) -> Graph:
421def composition_blend_max_with_ok_lab(foreground, background, foreground_transform) -> Graph:
422    """Composition Blend Max with OkLab
423
424    Blends the foreground and background images using maximum value blending in OkLab color space.
425
426    Args:
427        foreground: Graph of Composition
428        background: Graph of Composition
429        foreground transform: Graph of Transform2
430        
431
432    Returns:
433        Graph: A graph node producing a Composition.
434    """
435    foreground_parsed = parse_graph(foreground)
436    background_parsed = parse_graph(background)
437    foreground_transform_parsed = parse_graph(foreground_transform)
438    return composition_blend_max_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Max with OkLab

Blends the foreground and background images using maximum value blending in OkLab color space.

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_min(foreground, background, foreground_transform) -> Graph:
440def composition_blend_min(foreground, background, foreground_transform) -> Graph:
441    """Composition Blend Min
442
443    Blends the foreground and background images using minimum blending, taking the minimum value for each pixel.
444
445    Args:
446        foreground: Graph of Composition
447        background: Graph of Composition
448        foreground transform: Graph of Transform2
449        
450
451    Returns:
452        Graph: A graph node producing a Composition.
453    """
454    foreground_parsed = parse_graph(foreground)
455    background_parsed = parse_graph(background)
456    foreground_transform_parsed = parse_graph(foreground_transform)
457    return composition_blend_min_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Min

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

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_min_with_ok_lab(foreground, background, foreground_transform) -> Graph:
459def composition_blend_min_with_ok_lab(foreground, background, foreground_transform) -> Graph:
460    """Composition Blend Min with OkLab
461
462    Blends the foreground and background images using minimum blending in OkLab color space, taking the minimum value for each pixel.
463
464    Args:
465        foreground: Graph of Composition
466        background: Graph of Composition
467        foreground transform: Graph of Transform2
468        
469
470    Returns:
471        Graph: A graph node producing a Composition.
472    """
473    foreground_parsed = parse_graph(foreground)
474    background_parsed = parse_graph(background)
475    foreground_transform_parsed = parse_graph(foreground_transform)
476    return composition_blend_min_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Min with OkLab

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

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_multiply(foreground, background, foreground_transform) -> Graph:
478def composition_blend_multiply(foreground, background, foreground_transform) -> Graph:
479    """Composition Blend Multiply
480
481    Multiplies the foreground and background images together using multiply blending.
482
483    Args:
484        foreground: Graph of Composition
485        background: Graph of Composition
486        foreground transform: Graph of Transform2
487        
488
489    Returns:
490        Graph: A graph node producing a Composition.
491    """
492    foreground_parsed = parse_graph(foreground)
493    background_parsed = parse_graph(background)
494    foreground_transform_parsed = parse_graph(foreground_transform)
495    return composition_blend_multiply_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Multiply

Multiplies the foreground and background images together using multiply blending.

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_multiply_with_ok_lab(foreground, background, foreground_transform) -> Graph:
497def composition_blend_multiply_with_ok_lab(foreground, background, foreground_transform) -> Graph:
498    """Composition Blend Multiply with OkLab
499
500    Multiplies the foreground and background images together using multiply blending in OkLab color space.
501
502    Args:
503        foreground: Graph of Composition
504        background: Graph of Composition
505        foreground transform: Graph of Transform2
506        
507
508    Returns:
509        Graph: A graph node producing a Composition.
510    """
511    foreground_parsed = parse_graph(foreground)
512    background_parsed = parse_graph(background)
513    foreground_transform_parsed = parse_graph(foreground_transform)
514    return composition_blend_multiply_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Multiply with OkLab

Multiplies the foreground and background images together using multiply blending in OkLab color space.

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_subtract(foreground, background, foreground_transform) -> Graph:
516def composition_blend_subtract(foreground, background, foreground_transform) -> Graph:
517    """Composition Blend Subtract
518
519    Subtracts the foreground image from the background image using subtractive blending.
520
521    Args:
522        foreground: Graph of Composition
523        background: Graph of Composition
524        foreground transform: Graph of Transform2
525        
526
527    Returns:
528        Graph: A graph node producing a Composition.
529    """
530    foreground_parsed = parse_graph(foreground)
531    background_parsed = parse_graph(background)
532    foreground_transform_parsed = parse_graph(foreground_transform)
533    return composition_blend_subtract_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Subtract

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

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_subtract_with_ok_lab(foreground, background, foreground_transform) -> Graph:
535def composition_blend_subtract_with_ok_lab(foreground, background, foreground_transform) -> Graph:
536    """Composition Blend Subtract with OkLab
537
538    Subtracts the foreground image from the background image using subtractive blending in OkLab color space.
539
540    Args:
541        foreground: Graph of Composition
542        background: Graph of Composition
543        foreground transform: Graph of Transform2
544        
545
546    Returns:
547        Graph: A graph node producing a Composition.
548    """
549    foreground_parsed = parse_graph(foreground)
550    background_parsed = parse_graph(background)
551    foreground_transform_parsed = parse_graph(foreground_transform)
552    return composition_blend_subtract_with_ok_lab_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Subtract with OkLab

Subtracts the foreground image from the background image using subtractive blending in OkLab color space.

Args: foreground: Graph of Composition background: Graph of Composition foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_with_mask(foreground, background, mask) -> Graph:
554def composition_blend_with_mask(foreground, background, mask) -> Graph:
555    """Composition Blend with Mask
556
557    Given a mask. Blends between the foreground and background using the r component of the mask. 1 is foreground. 0 is background.
558
559    Args:
560        foreground: Graph of Composition
561        background: Graph of Composition
562        mask: Graph of Composition
563        
564
565    Returns:
566        Graph: A graph node producing a Composition.
567    """
568    foreground_parsed = parse_graph(foreground)
569    background_parsed = parse_graph(background)
570    mask_parsed = parse_graph(mask)
571    return composition_blend_with_mask_internal(foreground_parsed, background_parsed, mask_parsed)

Composition Blend with Mask

Given a mask. Blends between the foreground and background using the r component of the mask. 1 is foreground. 0 is background.

Args: foreground: Graph of Composition background: Graph of Composition mask: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_box_blur(composition, dimension) -> Graph:
573def composition_box_blur(composition, dimension) -> Graph:
574    """Composition Box Blur
575
576    Applies a box blur to an image. Dimension is the size. 1 corresponding to 3x3, 2 5x5 and so on.
577
578    Args:
579        composition: Graph of Composition
580        dimension: Graph of Int
581        
582
583    Returns:
584        Graph: A graph node producing a Composition.
585    """
586    composition_parsed = parse_graph(composition)
587    dimension_parsed = parse_int_graph(dimension)
588    return composition_box_blur_internal(composition_parsed, dimension_parsed)

Composition Box Blur

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

Args: composition: Graph of Composition dimension: Graph of Int

Returns: Graph: A graph node producing a Composition.

def composition_box_blur_with_ok_lab(composition, dimension) -> Graph:
590def composition_box_blur_with_ok_lab(composition, dimension) -> Graph:
591    """Composition Box Blur with OkLab
592
593    Applies a box blur to an image in OkLab color space. Dimension is the size. 1 corresponding to 3x3, 2 5x5 and so on.
594
595    Args:
596        composition: Graph of Composition
597        dimension: Graph of Int
598        
599
600    Returns:
601        Graph: A graph node producing a Composition.
602    """
603    composition_parsed = parse_graph(composition)
604    dimension_parsed = parse_int_graph(dimension)
605    return composition_box_blur_with_ok_lab_internal(composition_parsed, dimension_parsed)

Composition Box Blur with OkLab

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

Args: composition: Graph of Composition dimension: Graph of Int

Returns: Graph: A graph node producing a Composition.

def composition_brightness_adjust(composition, scale) -> Graph:
607def composition_brightness_adjust(composition, scale) -> Graph:
608    """Composition Brightness Adjust
609
610    Adjusts the brightness of an image by a given factor. Internally, works by modifying the L component of OkLab by multiplying it by the scale.
611
612    Args:
613        composition: Graph of Composition
614        scale: Graph of Float
615        
616
617    Returns:
618        Graph: A graph node producing a Composition.
619    """
620    composition_parsed = parse_graph(composition)
621    scale_parsed = parse_float_graph(scale)
622    return composition_brightness_adjust_internal(composition_parsed, scale_parsed)

Composition Brightness Adjust

Adjusts the brightness of an image by a given factor. Internally, works by modifying the L component of OkLab by multiplying it by the scale.

Args: composition: Graph of Composition scale: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_chroma_offset(composition, offset) -> Graph:
624def composition_chroma_offset(composition, offset) -> Graph:
625    """Composition Chroma Offset
626
627    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.
628
629    Args:
630        composition: Graph of Composition
631        offset: Graph of Vector2f
632        
633
634    Returns:
635        Graph: A graph node producing a Composition.
636    """
637    composition_parsed = parse_graph(composition)
638    offset_parsed = parse_graph(offset)
639    return composition_chroma_offset_internal(composition_parsed, offset_parsed)

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: composition: Graph of Composition offset: Graph of Vector2f

Returns: Graph: A graph node producing a Composition.

def composition_color_convert(composition, color_profile) -> Graph:
641def composition_color_convert(composition, color_profile) -> Graph:
642    """Composition Color Convert
643
644    Converts a Composition from one color space to another.
645
646    Args:
647        composition: Graph of Composition
648        color profile: Graph of ColorProfile
649        
650
651    Returns:
652        Graph: A graph node producing a Composition.
653    """
654    composition_parsed = parse_graph(composition)
655    color_profile_parsed = parse_graph(color_profile)
656    return composition_color_convert_internal(composition_parsed, color_profile_parsed)

Composition Color Convert

Converts a Composition from one color space to another.

Args: composition: Graph of Composition color profile: Graph of ColorProfile

Returns: Graph: A graph node producing a Composition.

def composition_color_invert(composition) -> Graph:
658def composition_color_invert(composition) -> Graph:
659    """Composition Color Invert
660
661    Applies a color invert operation to a Composition. Taking 1 and subtracting each RGB operation against it.
662
663    Args:
664        composition: Graph of Composition
665        
666
667    Returns:
668        Graph: A graph node producing a Composition.
669    """
670    composition_parsed = parse_graph(composition)
671    return composition_color_invert_internal(composition_parsed)

Composition Color Invert

Applies a color invert operation to a Composition. Taking 1 and subtracting each RGB operation against it.

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_color_profile(composition) -> Graph:
673def composition_color_profile(composition) -> Graph:
674    """Composition Color Profile
675
676    Gets the color profile associated with a Composition
677
678    Args:
679        composition: Graph of Composition
680        
681
682    Returns:
683        Graph: A graph node producing a ColorProfile.
684    """
685    composition_parsed = parse_graph(composition)
686    return composition_color_profile_internal(composition_parsed)

Composition Color Profile

Gets the color profile associated with a Composition

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a ColorProfile.

def composition_color_rect(color, color_profile, size) -> Graph:
688def composition_color_rect(color, color_profile, size) -> Graph:
689    """Composition Color Rect
690
691    Given a color and it's color proile. Creates a rectangle Composition of that color.
692
693    Args:
694        color: Graph of RGBAColor
695        color profile: Graph of ColorProfile
696        size: Graph of Vector2i
697        
698
699    Returns:
700        Graph: A graph node producing a Composition.
701    """
702    color_parsed = parse_graph(color)
703    color_profile_parsed = parse_graph(color_profile)
704    size_parsed = parse_graph(size)
705    return composition_color_rect_internal(color_parsed, color_profile_parsed, size_parsed)

Composition Color Rect

Given a color and it's color proile. Creates a rectangle Composition of that color.

Args: color: Graph of RGBAColor color profile: Graph of ColorProfile size: Graph of Vector2i

Returns: Graph: A graph node producing a Composition.

def composition_color_threshold(composition, threshold) -> Graph:
707def composition_color_threshold(composition, threshold) -> Graph:
708    """Composition Color Threshold
709
710    Applies a color threshold to a Composition
711
712    Args:
713        composition: Graph of Composition
714        threshold: Graph of Float
715        
716
717    Returns:
718        Graph: A graph node producing a Composition.
719    """
720    composition_parsed = parse_graph(composition)
721    threshold_parsed = parse_float_graph(threshold)
722    return composition_color_threshold_internal(composition_parsed, threshold_parsed)

Composition Color Threshold

Applies a color threshold to a Composition

Args: composition: Graph of Composition threshold: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_convolution(composition, kernel, kernel_width, kernel_height) -> Graph:
724def composition_convolution(composition, kernel, kernel_width, kernel_height) -> Graph:
725    """Composition Convolution
726
727    Performs a convolution on an composition
728
729    Args:
730        The image to perform the convolution on: Graph of Composition
731        kernel: Graph of FloatList
732        kernel width: Graph of Int
733        kernel height: Graph of Int
734        
735
736    Returns:
737        Graph: A graph node producing a Composition.
738    """
739    composition_parsed = parse_graph(composition)
740    kernel_parsed = parse_graph(kernel)
741    kernel_width_parsed = parse_int_graph(kernel_width)
742    kernel_height_parsed = parse_int_graph(kernel_height)
743    return composition_convolution_internal(composition_parsed, kernel_parsed, kernel_width_parsed, kernel_height_parsed)

Composition Convolution

Performs a convolution on an composition

Args: The image to perform the convolution on: Graph of Composition kernel: Graph of FloatList kernel width: Graph of Int kernel height: Graph of Int

Returns: Graph: A graph node producing a Composition.

def composition_crop(composition, rect) -> Graph:
745def composition_crop(composition, rect) -> Graph:
746    """Composition Crop
747
748    Applies a crop to a Composition
749
750    Args:
751        composition: Graph of Composition
752        rect: Graph of Bounds2i
753        
754
755    Returns:
756        Graph: A graph node producing a Composition.
757    """
758    composition_parsed = parse_graph(composition)
759    rect_parsed = parse_graph(rect)
760    return composition_crop_internal(composition_parsed, rect_parsed)

Composition Crop

Applies a crop to a Composition

Args: composition: Graph of Composition rect: Graph of Bounds2i

Returns: Graph: A graph node producing a Composition.

def composition_custom_transformer_shader( composition, function_body, helpers, input_color_profile, output_color_profile, inputs, needs_sample_capability) -> Graph:
762def composition_custom_transformer_shader(composition, function_body, helpers, input_color_profile, output_color_profile, inputs, needs_sample_capability) -> Graph:
763    """Composition Custom Transformer Shader
764
765    Given an input, runs a custom defined shader over that input.
766
767    Args:
768        composition: Graph of Composition
769        function body: Graph of String
770        helpers: Graph of String
771        input color profile: Graph of ColorProfile
772        output color profile: Graph of ColorProfile
773        inputs: Graph of Dictionary
774        needs sample capability: Graph of Bool
775        
776
777    Returns:
778        Graph: A graph node producing a Composition.
779    """
780    composition_parsed = parse_graph(composition)
781    function_body_parsed = parse_string_graph(function_body)
782    helpers_parsed = parse_string_graph(helpers)
783    input_color_profile_parsed = parse_graph(input_color_profile)
784    output_color_profile_parsed = parse_graph(output_color_profile)
785    inputs_parsed = parse_graph(inputs)
786    needs_sample_capability_parsed = parse_bool_graph(needs_sample_capability)
787    return composition_custom_transformer_shader_internal(composition_parsed, function_body_parsed, helpers_parsed, input_color_profile_parsed, output_color_profile_parsed, inputs_parsed, needs_sample_capability_parsed)

Composition Custom Transformer Shader

Given an input, runs a custom defined shader over that input.

Args: composition: Graph of Composition function body: Graph of String helpers: Graph of String input color profile: Graph of ColorProfile output color profile: Graph of ColorProfile inputs: Graph of Dictionary needs sample capability: Graph of Bool

Returns: Graph: A graph node producing a Composition.

def composition_face_landmarks(composition) -> Graph:
789def composition_face_landmarks(composition) -> Graph:
790    """Composition Face Landmarks
791
792    Given an input image, returns the 468 3D face landmarks.
793
794    Args:
795        composition: Graph of Composition
796        
797
798    Returns:
799        Graph: A graph node producing a Point3fList.
800    """
801    composition_parsed = parse_graph(composition)
802    return composition_face_landmarks_internal(composition_parsed)

Composition Face Landmarks

Given an input image, returns the 468 3D face landmarks.

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Point3fList.

def composition_flip_horizontal(composition) -> Graph:
804def composition_flip_horizontal(composition) -> Graph:
805    """Composition Flip Horizontal
806
807    Flips the image along the horizontal axis
808
809    Args:
810        composition: Graph of Composition
811        
812
813    Returns:
814        Graph: A graph node producing a Composition.
815    """
816    composition_parsed = parse_graph(composition)
817    return composition_flip_horizontal_internal(composition_parsed)

Composition Flip Horizontal

Flips the image along the horizontal axis

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_flip_vertical(composition) -> Graph:
819def composition_flip_vertical(composition) -> Graph:
820    """Composition Flip Vertical
821
822    Flips the image vertically
823
824    Args:
825        composition: Graph of Composition
826        
827
828    Returns:
829        Graph: A graph node producing a Composition.
830    """
831    composition_parsed = parse_graph(composition)
832    return composition_flip_vertical_internal(composition_parsed)

Composition Flip Vertical

Flips the image vertically

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_from_image(image) -> Graph:
834def composition_from_image(image) -> Graph:
835    """Composition from Image
836
837    Creates an composition out of an image
838
839    Args:
840        image: Graph of Image
841        
842
843    Returns:
844        Graph: A graph node producing a Composition.
845    """
846    image_parsed = parse_graph(image)
847    return composition_from_image_internal(image_parsed)

Composition from Image

Creates an composition out of an image

Args: image: Graph of Image

Returns: Graph: A graph node producing a Composition.

def composition_gaussian_blur(composition, sigma) -> Graph:
849def composition_gaussian_blur(composition, sigma) -> Graph:
850    """Composition Gaussian Blur
851
852    Applies a gaussian blur to an image. Sigma controls the blur intensity.
853
854    Args:
855        composition: Graph of Composition
856        sigma: Graph of Float
857        
858
859    Returns:
860        Graph: A graph node producing a Composition.
861    """
862    composition_parsed = parse_graph(composition)
863    sigma_parsed = parse_float_graph(sigma)
864    return composition_gaussian_blur_internal(composition_parsed, sigma_parsed)

Composition Gaussian Blur

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

Args: composition: Graph of Composition sigma: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_gaussian_blur_with_ok_lab(composition, sigma) -> Graph:
866def composition_gaussian_blur_with_ok_lab(composition, sigma) -> Graph:
867    """Composition Gaussian Blur with OkLab
868
869    Applies a gaussian blur to an image in OkLab color space. Sigma controls the blur intensity.
870
871    Args:
872        composition: Graph of Composition
873        sigma: Graph of Float
874        
875
876    Returns:
877        Graph: A graph node producing a Composition.
878    """
879    composition_parsed = parse_graph(composition)
880    sigma_parsed = parse_float_graph(sigma)
881    return composition_gaussian_blur_with_ok_lab_internal(composition_parsed, sigma_parsed)

Composition Gaussian Blur with OkLab

Applies a gaussian blur to an image in OkLab color space. Sigma controls the blur intensity.

Args: composition: Graph of Composition sigma: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_grayscale(composition) -> Graph:
883def composition_grayscale(composition) -> Graph:
884    """Composition Grayscale
885
886    Applies grayscale to a Composition
887
888    Args:
889        composition: Graph of Composition
890        
891
892    Returns:
893        Graph: A graph node producing a Composition.
894    """
895    composition_parsed = parse_graph(composition)
896    return composition_grayscale_internal(composition_parsed)

Composition Grayscale

Applies grayscale to a Composition

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_l_curve(composition, l_curve) -> Graph:
898def composition_l_curve(composition, l_curve) -> Graph:
899    """Composition Lightness Curve
900
901    Applies a curve to the L component in an OkLab color. Adjusting the lightness of the image.
902
903    Args:
904        composition: Graph of Composition
905        l curve: Graph of Curve
906        
907
908    Returns:
909        Graph: A graph node producing a Composition.
910    """
911    composition_parsed = parse_graph(composition)
912    l_curve_parsed = parse_graph(l_curve)
913    return composition_l_curve_internal(composition_parsed, l_curve_parsed)

Composition Lightness Curve

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

Args: composition: Graph of Composition l curve: Graph of Curve

Returns: Graph: A graph node producing a Composition.

def composition_linear_transform( composition, 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) -> Graph:
915def composition_linear_transform(composition, 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) -> Graph:
916    """Composition RGBA Linear Transform
917
918    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.
919
920    Args:
921        composition: Graph of Composition
922        entry 0,0: Graph of Float
923        entry 0,1: Graph of Float
924        entry 0,2: Graph of Float
925        entry 0,3: Graph of Float
926        entry 1,0: Graph of Float
927        entry 1,1: Graph of Float
928        entry 1,2: Graph of Float
929        entry 1,3: Graph of Float
930        entry 2,0: Graph of Float
931        entry 2,1: Graph of Float
932        entry 2,2: Graph of Float
933        entry 2,3: Graph of Float
934        entry 3,0: Graph of Float
935        entry 3,1: Graph of Float
936        entry 3,2: Graph of Float
937        entry 3,3: Graph of Float
938        
939
940    Returns:
941        Graph: A graph node producing a Composition.
942    """
943    composition_parsed = parse_graph(composition)
944    entry_0_0_parsed = parse_float_graph(entry_0_0)
945    entry_0_1_parsed = parse_float_graph(entry_0_1)
946    entry_0_2_parsed = parse_float_graph(entry_0_2)
947    entry_0_3_parsed = parse_float_graph(entry_0_3)
948    entry_1_0_parsed = parse_float_graph(entry_1_0)
949    entry_1_1_parsed = parse_float_graph(entry_1_1)
950    entry_1_2_parsed = parse_float_graph(entry_1_2)
951    entry_1_3_parsed = parse_float_graph(entry_1_3)
952    entry_2_0_parsed = parse_float_graph(entry_2_0)
953    entry_2_1_parsed = parse_float_graph(entry_2_1)
954    entry_2_2_parsed = parse_float_graph(entry_2_2)
955    entry_2_3_parsed = parse_float_graph(entry_2_3)
956    entry_3_0_parsed = parse_float_graph(entry_3_0)
957    entry_3_1_parsed = parse_float_graph(entry_3_1)
958    entry_3_2_parsed = parse_float_graph(entry_3_2)
959    entry_3_3_parsed = parse_float_graph(entry_3_3)
960    return 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)

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: composition: Graph of Composition 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 composition_monet_women_with_parasol() -> Graph:
962def composition_monet_women_with_parasol() -> Graph:
963    """Monet's Women with a Parasol
964
965    Creates a composition from Monet's "Women with a Parasol" painting. Used frequently as a test asset.
966
967    Returns:
968        Graph: A graph node producing a Composition.
969    """
970    return composition_monet_women_with_parasol_internal()

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 composition_morphological_max(composition, dimension) -> Graph:
972def composition_morphological_max(composition, dimension) -> Graph:
973    """Composition Morphological Max
974
975    Apples a morphological max operation.
976
977    Args:
978        composition: Graph of Composition
979        dimension: Graph of Int
980        
981
982    Returns:
983        Graph: A graph node producing a Composition.
984    """
985    composition_parsed = parse_graph(composition)
986    dimension_parsed = parse_int_graph(dimension)
987    return composition_morphological_max_internal(composition_parsed, dimension_parsed)

Composition Morphological Max

Apples a morphological max operation.

Args: composition: Graph of Composition dimension: Graph of Int

Returns: Graph: A graph node producing a Composition.

def composition_morphological_min(composition, dimension) -> Graph:
 989def composition_morphological_min(composition, dimension) -> Graph:
 990    """Composition Morphological Min
 991
 992    Apples a morphological min operation.
 993
 994    Args:
 995        composition: Graph of Composition
 996        dimension: Graph of Int
 997        
 998
 999    Returns:
1000        Graph: A graph node producing a Composition.
1001    """
1002    composition_parsed = parse_graph(composition)
1003    dimension_parsed = parse_int_graph(dimension)
1004    return composition_morphological_min_internal(composition_parsed, dimension_parsed)

Composition Morphological Min

Apples a morphological min operation.

Args: composition: Graph of Composition dimension: Graph of Int

Returns: Graph: A graph node producing a Composition.

def composition_painter(painter) -> Graph:
1006def composition_painter(painter) -> Graph:
1007    """Composition Painter
1008
1009    Creates a composition from a painter.
1010
1011    Args:
1012        painter: Graph of Painter
1013        
1014
1015    Returns:
1016        Graph: A graph node producing a Composition.
1017    """
1018    painter_parsed = parse_graph(painter)
1019    return composition_painter_internal(painter_parsed)

Composition Painter

Creates a composition from a painter.

Args: painter: Graph of Painter

Returns: Graph: A graph node producing a Composition.

def composition_passthrough(value) -> Graph:
1021def composition_passthrough(value) -> Graph:
1022    """Composition Passthrough
1023
1024    Responds with the value provided. Doing nothing to it.
1025
1026    Args:
1027        value: Graph of Composition
1028        
1029
1030    Returns:
1031        Graph: A graph node producing a Composition.
1032    """
1033    value_parsed = parse_graph(value)
1034    return composition_passthrough_internal(value_parsed)

Composition Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_perceptual_difference(composition, color) -> Graph:
1036def composition_perceptual_difference(composition, color) -> Graph:
1037    """Composition Perceptual Difference
1038
1039    Calculates the difference for each pixel to the OkLab color specified. Each r, g, b and a component in the output is the difference.
1040
1041    Args:
1042        composition: Graph of Composition
1043        color: Graph of OkLabColor
1044        
1045
1046    Returns:
1047        Graph: A graph node producing a Composition.
1048    """
1049    composition_parsed = parse_graph(composition)
1050    color_parsed = parse_graph(color)
1051    return composition_perceptual_difference_internal(composition_parsed, color_parsed)

Composition Perceptual Difference

Calculates the difference for each pixel to the OkLab color specified. Each r, g, b and a component in the output is the difference.

Args: composition: Graph of Composition color: Graph of OkLabColor

Returns: Graph: A graph node producing a Composition.

def composition_r_g_b_curve(composition, r_curve, g_curve, b_curve) -> Graph:
1053def composition_r_g_b_curve(composition, r_curve, g_curve, b_curve) -> Graph:
1054    """Composition RGB Curve
1055
1056    Applies a curve to the R, G, and B components
1057
1058    Args:
1059        composition: Graph of Composition
1060        r curve: Graph of Curve
1061        g curve: Graph of Curve
1062        b curve: Graph of Curve
1063        
1064
1065    Returns:
1066        Graph: A graph node producing a Composition.
1067    """
1068    composition_parsed = parse_graph(composition)
1069    r_curve_parsed = parse_graph(r_curve)
1070    g_curve_parsed = parse_graph(g_curve)
1071    b_curve_parsed = parse_graph(b_curve)
1072    return composition_r_g_b_curve_internal(composition_parsed, r_curve_parsed, g_curve_parsed, b_curve_parsed)

Composition RGB Curve

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

Args: composition: Graph of Composition r curve: Graph of Curve g curve: Graph of Curve b curve: Graph of Curve

Returns: Graph: A graph node producing a Composition.

def composition_render_to_image(composition) -> Graph:
1074def composition_render_to_image(composition) -> Graph:
1075    """Composition Render to Image
1076
1077    Renders a Composition to an Image
1078
1079    Args:
1080        composition: Graph of Composition
1081        
1082
1083    Returns:
1084        Graph: A graph node producing a Image.
1085    """
1086    composition_parsed = parse_graph(composition)
1087    return composition_render_to_image_internal(composition_parsed)

Composition Render to Image

Renders a Composition to an Image

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Image.

def composition_rotate180(composition) -> Graph:
1089def composition_rotate180(composition) -> Graph:
1090    """Composition Rotate 180
1091
1092    Rotates the image 180 degrees
1093
1094    Args:
1095        composition: Graph of Composition
1096        
1097
1098    Returns:
1099        Graph: A graph node producing a Composition.
1100    """
1101    composition_parsed = parse_graph(composition)
1102    return composition_rotate180_internal(composition_parsed)

Composition Rotate 180

Rotates the image 180 degrees

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_rotate90_clockwise(composition) -> Graph:
1104def composition_rotate90_clockwise(composition) -> Graph:
1105    """Composition Rotate 90 Clockwise
1106
1107    Rotates the image 90 degrees clockwise
1108
1109    Args:
1110        composition: Graph of Composition
1111        
1112
1113    Returns:
1114        Graph: A graph node producing a Composition.
1115    """
1116    composition_parsed = parse_graph(composition)
1117    return composition_rotate90_clockwise_internal(composition_parsed)

Composition Rotate 90 Clockwise

Rotates the image 90 degrees clockwise

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_rotate90_counter_clockwise(composition) -> Graph:
1119def composition_rotate90_counter_clockwise(composition) -> Graph:
1120    """Composition Rotate 90 Counter Clockwise
1121
1122    Rotates the image 90 degrees counter-clockwise
1123
1124    Args:
1125        composition: Graph of Composition
1126        
1127
1128    Returns:
1129        Graph: A graph node producing a Composition.
1130    """
1131    composition_parsed = parse_graph(composition)
1132    return composition_rotate90_counter_clockwise_internal(composition_parsed)

Composition Rotate 90 Counter Clockwise

Rotates the image 90 degrees counter-clockwise

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_saturation_adjust(composition, scale) -> Graph:
1134def composition_saturation_adjust(composition, scale) -> Graph:
1135    """Composition Saturation Adjust
1136
1137    Adjusts the saturation of an image by a given factor. Internally, scales the chroma components in OkLab color space.
1138
1139    Args:
1140        composition: Graph of Composition
1141        scale: Graph of Float
1142        
1143
1144    Returns:
1145        Graph: A graph node producing a Composition.
1146    """
1147    composition_parsed = parse_graph(composition)
1148    scale_parsed = parse_float_graph(scale)
1149    return composition_saturation_adjust_internal(composition_parsed, scale_parsed)

Composition Saturation Adjust

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

Args: composition: Graph of Composition scale: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_scale_nearest_neighbor(composition, size) -> Graph:
1151def composition_scale_nearest_neighbor(composition, size) -> Graph:
1152    """Composition Scale Nearest Neighbor
1153
1154    Uses the nearest neighbor algorithm to scale an image recipe
1155
1156    Args:
1157        composition: Graph of Composition
1158        size: Graph of Vector2i
1159        
1160
1161    Returns:
1162        Graph: A graph node producing a Composition.
1163    """
1164    composition_parsed = parse_graph(composition)
1165    size_parsed = parse_graph(size)
1166    return composition_scale_nearest_neighbor_internal(composition_parsed, size_parsed)

Composition Scale Nearest Neighbor

Uses the nearest neighbor algorithm to scale an image recipe

Args: composition: Graph of Composition size: Graph of Vector2i

Returns: Graph: A graph node producing a Composition.

def composition_segment_facial_skin(composition) -> Graph:
1168def composition_segment_facial_skin(composition) -> Graph:
1169    """Composition Segment Facial Skin
1170
1171    Given an input image. Returns a mask that segments out the facial skin in the image.
1172
1173    Args:
1174        composition: Graph of Composition
1175        
1176
1177    Returns:
1178        Graph: A graph node producing a Composition.
1179    """
1180    composition_parsed = parse_graph(composition)
1181    return composition_segment_facial_skin_internal(composition_parsed)

Composition Segment Facial Skin

Given an input image. Returns a mask that segments out the facial skin in the image.

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_segment_mouth_lips_eyes_eyebrows(composition) -> Graph:
1183def composition_segment_mouth_lips_eyes_eyebrows(composition) -> Graph:
1184    """Composition Segment Mouth Lips Eyes Eyebrows
1185
1186    Given an input image, returns a mask (all white) of the mouth, lips, eyes, and eyebrows area.
1187
1188    Args:
1189        composition: Graph of Composition
1190        
1191
1192    Returns:
1193        Graph: A graph node producing a Composition.
1194    """
1195    composition_parsed = parse_graph(composition)
1196    return composition_segment_mouth_lips_eyes_eyebrows_internal(composition_parsed)

Composition Segment Mouth Lips Eyes Eyebrows

Given an input image, returns a mask (all white) of the mouth, lips, eyes, and eyebrows area.

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_segment_person(composition) -> Graph:
1198def composition_segment_person(composition) -> Graph:
1199    """Composition Segment Person
1200
1201    Given an input image. Returns a mask that segments out the person in the image.
1202
1203    Args:
1204        composition: Graph of Composition
1205        
1206
1207    Returns:
1208        Graph: A graph node producing a Composition.
1209    """
1210    composition_parsed = parse_graph(composition)
1211    return composition_segment_person_internal(composition_parsed)

Composition Segment Person

Given an input image. Returns a mask that segments out the person in the image.

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_segment_under_right_eye(composition) -> Graph:
1213def composition_segment_under_right_eye(composition) -> Graph:
1214    """Composition Segment Under Right Eye
1215
1216    Given an input image, returns a mask (all white) of the area under the right eye.
1217
1218    Args:
1219        composition: Graph of Composition
1220        
1221
1222    Returns:
1223        Graph: A graph node producing a Composition.
1224    """
1225    composition_parsed = parse_graph(composition)
1226    return composition_segment_under_right_eye_internal(composition_parsed)

Composition Segment Under Right Eye

Given an input image, returns a mask (all white) of the area under the right eye.

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_size(composition) -> Graph:
1228def composition_size(composition) -> Graph:
1229    """Composition Size
1230
1231    Gets the resulting size of a Composition
1232
1233    Args:
1234        composition: Graph of Composition
1235        
1236
1237    Returns:
1238        Graph: A graph node producing a Vector2i.
1239    """
1240    composition_parsed = parse_graph(composition)
1241    return composition_size_internal(composition_parsed)

Composition Size

Gets the resulting size of a Composition

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Vector2i.

def composition_sobel_edge_detection(composition) -> Graph:
1243def composition_sobel_edge_detection(composition) -> Graph:
1244    """Composition Sobel Edge Detection
1245
1246    Applies Sobel edge detection to an image.
1247
1248    Args:
1249        composition: Graph of Composition
1250        
1251
1252    Returns:
1253        Graph: A graph node producing a Composition.
1254    """
1255    composition_parsed = parse_graph(composition)
1256    return composition_sobel_edge_detection_internal(composition_parsed)

Composition Sobel Edge Detection

Applies Sobel edge detection to an image.

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_target_white_kelvin(composition, kelvin) -> Graph:
1258def composition_target_white_kelvin(composition, kelvin) -> Graph:
1259    """Composition Target White Kelvin
1260
1261    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.
1262
1263    Args:
1264        composition: Graph of Composition
1265        kelvin: Graph of Float
1266        
1267
1268    Returns:
1269        Graph: A graph node producing a Composition.
1270    """
1271    composition_parsed = parse_graph(composition)
1272    kelvin_parsed = parse_float_graph(kelvin)
1273    return composition_target_white_kelvin_internal(composition_parsed, kelvin_parsed)

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: composition: Graph of Composition kelvin: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_to_ok_lab_hist(composition) -> Graph:
1275def composition_to_ok_lab_hist(composition) -> Graph:
1276    """Composition to OkLab Histogram
1277
1278    Creates an OkLab Histogram from the colors in a Composition.
1279
1280    Args:
1281        composition: Graph of Composition
1282        
1283
1284    Returns:
1285        Graph: A graph node producing a OkLabHist.
1286    """
1287    composition_parsed = parse_graph(composition)
1288    return composition_to_ok_lab_hist_internal(composition_parsed)

Composition to OkLab Histogram

Creates an OkLab Histogram from the colors in a Composition.

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a OkLabHist.

def composition_uniform_lightness(composition, lightness) -> Graph:
1290def composition_uniform_lightness(composition, lightness) -> Graph:
1291    """Composition Uniform Lightness
1292
1293    Sets a uniform lightness to the entire image by using OkLab and setting the lightness to a constant number.
1294
1295    Args:
1296        composition: Graph of Composition
1297        lightness: Graph of Float
1298        
1299
1300    Returns:
1301        Graph: A graph node producing a Composition.
1302    """
1303    composition_parsed = parse_graph(composition)
1304    lightness_parsed = parse_float_graph(lightness)
1305    return composition_uniform_lightness_internal(composition_parsed, lightness_parsed)

Composition Uniform Lightness

Sets a uniform lightness to the entire image by using OkLab and setting the lightness to a constant number.

Args: composition: Graph of Composition lightness: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_vignette(composition, radius, softness, strength) -> Graph:
1307def composition_vignette(composition, radius, softness, strength) -> Graph:
1308    """Composition Vignette
1309
1310    darkens the outer edges - radius (0-1, measured relative to the image's smaller dimension) sets how far the bright center extends, Softness (typically 0.05-0.5) controls the width of the fade-out band, and Strength (0–1) defines how dark the edges become at maximum.
1311
1312    Args:
1313        composition: Graph of Composition
1314        radius: Graph of Float
1315        softness: Graph of Float
1316        strength: Graph of Float
1317        
1318
1319    Returns:
1320        Graph: A graph node producing a Composition.
1321    """
1322    composition_parsed = parse_graph(composition)
1323    radius_parsed = parse_float_graph(radius)
1324    softness_parsed = parse_float_graph(softness)
1325    strength_parsed = parse_float_graph(strength)
1326    return composition_vignette_internal(composition_parsed, radius_parsed, softness_parsed, strength_parsed)

Composition Vignette

darkens the outer edges - radius (0-1, measured relative to the image's smaller dimension) sets how far the bright center extends, Softness (typically 0.05-0.5) controls the width of the fade-out band, and Strength (0–1) defines how dark the edges become at maximum.

Args: composition: Graph of Composition radius: Graph of Float softness: Graph of Float strength: Graph of Float

Returns: Graph: A graph node producing a Composition.

def curve_gamma(gamma) -> Graph:
1328def curve_gamma(gamma) -> Graph:
1329    """Curve Gamma
1330
1331    A gamma curve. The gamma parameter corresponding to y=x^gamma.
1332
1333    Args:
1334        gamma: Graph of Float
1335        
1336
1337    Returns:
1338        Graph: A graph node producing a Curve.
1339    """
1340    gamma_parsed = parse_float_graph(gamma)
1341    return curve_gamma_internal(gamma_parsed)

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.

def curve_identity() -> Graph:
1343def curve_identity() -> Graph:
1344    """Curve Identity
1345
1346    An identity curve, y=x
1347
1348    Returns:
1349        Graph: A graph node producing a Curve.
1350    """
1351    return curve_identity_internal()

Curve Identity

An identity curve, y=x

Returns: Graph: A graph node producing a Curve.

def curve_pivoted_sigmoid(pivot, slope) -> Graph:
1353def curve_pivoted_sigmoid(pivot, slope) -> Graph:
1354    """Curve Pivoted Sigmoid
1355
1356    A pivoted sigmoid contrast curve that anchors at the pivot and smoothly compresses shadows and highlights, with a slope parameter controlling midtone contrast.
1357
1358    Args:
1359        pivot: Graph of Float
1360        slope: Graph of Float
1361        
1362
1363    Returns:
1364        Graph: A graph node producing a Curve.
1365    """
1366    pivot_parsed = parse_float_graph(pivot)
1367    slope_parsed = parse_float_graph(slope)
1368    return curve_pivoted_sigmoid_internal(pivot_parsed, slope_parsed)

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.

def curve_s_curve(pivot, slope, toe, shoulder) -> Graph:
1370def curve_s_curve(pivot, slope, toe, shoulder) -> Graph:
1371    """Curve S
1372
1373    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.
1374
1375    Args:
1376        pivot: Graph of Float
1377        slope: Graph of Float
1378        toe: Graph of Float
1379        shoulder: Graph of Float
1380        
1381
1382    Returns:
1383        Graph: A graph node producing a Curve.
1384    """
1385    pivot_parsed = parse_float_graph(pivot)
1386    slope_parsed = parse_float_graph(slope)
1387    toe_parsed = parse_float_graph(toe)
1388    shoulder_parsed = parse_float_graph(shoulder)
1389    return curve_s_curve_internal(pivot_parsed, slope_parsed, toe_parsed, shoulder_parsed)

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.

def dictionary_create() -> Graph:
1391def dictionary_create() -> Graph:
1392    """Dictionary Create
1393
1394    Creates a new dictionary
1395
1396    Returns:
1397        Graph: A graph node producing a Dictionary.
1398    """
1399    return dictionary_create_internal()

Dictionary Create

Creates a new dictionary

Returns: Graph: A graph node producing a Dictionary.

def fill_custom(function_body, helpers, inputs) -> Graph:
1401def fill_custom(function_body, helpers, inputs) -> Graph:
1402    """Fill Custom
1403
1404    Creates a fill with a custom shader.
1405
1406    Args:
1407        function body: Graph of String
1408        helpers: Graph of String
1409        inputs: Graph of Dictionary
1410        
1411
1412    Returns:
1413        Graph: A graph node producing a Fill.
1414    """
1415    function_body_parsed = parse_string_graph(function_body)
1416    helpers_parsed = parse_string_graph(helpers)
1417    inputs_parsed = parse_graph(inputs)
1418    return fill_custom_internal(function_body_parsed, helpers_parsed, inputs_parsed)

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.

def fill_solid(color) -> Graph:
1420def fill_solid(color) -> Graph:
1421    """Fill Solid
1422
1423    Creates a fill with a solid color.
1424
1425    Args:
1426        color: Graph of RGBAColor
1427        
1428
1429    Returns:
1430        Graph: A graph node producing a Fill.
1431    """
1432    color_parsed = parse_graph(color)
1433    return fill_solid_internal(color_parsed)

Fill Solid

Creates a fill with a solid color.

Args: color: Graph of RGBAColor

Returns: Graph: A graph node producing a Fill.

def float_add(float1, float2) -> Graph:
1435def float_add(float1, float2) -> Graph:
1436    """Float Add
1437
1438    Adds two floats together.
1439
1440    Args:
1441        float1: Graph of Float
1442        float2: Graph of Float
1443        
1444
1445    Returns:
1446        Graph: A graph node producing a Float.
1447    """
1448    float1_parsed = parse_float_graph(float1)
1449    float2_parsed = parse_float_graph(float2)
1450    return float_add_internal(float1_parsed, float2_parsed)

Float Add

Adds two floats together.

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

Returns: Graph: A graph node producing a Float.

def float_add_to_dictionary(dictionary, key, value) -> Graph:
1452def float_add_to_dictionary(dictionary, key, value) -> Graph:
1453    """Float Add To Dictionary
1454
1455    Adds a Float to a Dictionary
1456
1457    Args:
1458        dictionary: Graph of Dictionary
1459        key: Graph of String
1460        value: Graph of Float
1461        
1462
1463    Returns:
1464        Graph: A graph node producing a Dictionary.
1465    """
1466    dictionary_parsed = parse_graph(dictionary)
1467    key_parsed = parse_string_graph(key)
1468    value_parsed = parse_float_graph(value)
1469    return float_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

Float Add To Dictionary

Adds a Float to a Dictionary

Args: dictionary: Graph of Dictionary key: Graph of String value: Graph of Float

Returns: Graph: A graph node producing a Dictionary.

def float_cos(angle) -> Graph:
1471def float_cos(angle) -> Graph:
1472    """Float Cosine
1473
1474    Computes the cosine of a float (in radians).
1475
1476    Args:
1477        Angle in radians: Graph of Float
1478        
1479
1480    Returns:
1481        Graph: A graph node producing a Float.
1482    """
1483    angle_parsed = parse_float_graph(angle)
1484    return float_cos_internal(angle_parsed)

Float Cosine

Computes the cosine of a float (in radians).

Args: Angle in radians: Graph of Float

Returns: Graph: A graph node producing a Float.

def float_divide(float1, float2) -> Graph:
1486def float_divide(float1, float2) -> Graph:
1487    """Float Divide
1488
1489    Adds two floats together.
1490
1491    Args:
1492        float1: Graph of Float
1493        float2: Graph of Float
1494        
1495
1496    Returns:
1497        Graph: A graph node producing a Float.
1498    """
1499    float1_parsed = parse_float_graph(float1)
1500    float2_parsed = parse_float_graph(float2)
1501    return float_divide_internal(float1_parsed, float2_parsed)

Float Divide

Adds two floats together.

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

Returns: Graph: A graph node producing a Float.

def float_if(bool, input_1, input_2) -> Graph:
1503def float_if(bool, input_1, input_2) -> Graph:
1504    """Float If
1505
1506    If the boolean is true returns input 1, otherwise input 2. Type: Float
1507
1508    Args:
1509        bool: Graph of Bool
1510        input 1: Graph of Float
1511        input 2: Graph of Float
1512        
1513
1514    Returns:
1515        Graph: A graph node producing a Float.
1516    """
1517    bool_parsed = parse_bool_graph(bool)
1518    input_1_parsed = parse_float_graph(input_1)
1519    input_2_parsed = parse_float_graph(input_2)
1520    return float_if_internal(bool_parsed, input_1_parsed, input_2_parsed)

Float If

If the boolean is true returns input 1, otherwise input 2. Type: Float

Args: bool: Graph of Bool input 1: Graph of Float input 2: Graph of Float

Returns: Graph: A graph node producing a Float.

def float_lerp(x, float1, float2) -> Graph:
1522def float_lerp(x, float1, float2) -> Graph:
1523    """Float Lerp
1524
1525    Lerps between two floats using the x parameter
1526
1527    Args:
1528        x: Graph of Float
1529        float1: Graph of Float
1530        float2: Graph of Float
1531        
1532
1533    Returns:
1534        Graph: A graph node producing a Float.
1535    """
1536    x_parsed = parse_float_graph(x)
1537    float1_parsed = parse_float_graph(float1)
1538    float2_parsed = parse_float_graph(float2)
1539    return float_lerp_internal(x_parsed, float1_parsed, float2_parsed)

Float Lerp

Lerps between two floats using the x parameter

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

Returns: Graph: A graph node producing a Float.

def float_max(float1, float2) -> Graph:
1541def float_max(float1, float2) -> Graph:
1542    """Float Max
1543
1544    Returns the maximum float.
1545
1546    Args:
1547        float1: Graph of Float
1548        float2: Graph of Float
1549        
1550
1551    Returns:
1552        Graph: A graph node producing a Float.
1553    """
1554    float1_parsed = parse_float_graph(float1)
1555    float2_parsed = parse_float_graph(float2)
1556    return float_max_internal(float1_parsed, float2_parsed)

Float Max

Returns the maximum float.

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

Returns: Graph: A graph node producing a Float.

def float_min(float1, float2) -> Graph:
1558def float_min(float1, float2) -> Graph:
1559    """Float Min
1560
1561    Returns the minimum float.
1562
1563    Args:
1564        float1: Graph of Float
1565        float2: Graph of Float
1566        
1567
1568    Returns:
1569        Graph: A graph node producing a Float.
1570    """
1571    float1_parsed = parse_float_graph(float1)
1572    float2_parsed = parse_float_graph(float2)
1573    return float_min_internal(float1_parsed, float2_parsed)

Float Min

Returns the minimum float.

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

Returns: Graph: A graph node producing a Float.

def float_multiply(float1, float2) -> Graph:
1575def float_multiply(float1, float2) -> Graph:
1576    """Float Multiply
1577
1578    Multiplies two floats together.
1579
1580    Args:
1581        float1: Graph of Float
1582        float2: Graph of Float
1583        
1584
1585    Returns:
1586        Graph: A graph node producing a Float.
1587    """
1588    float1_parsed = parse_float_graph(float1)
1589    float2_parsed = parse_float_graph(float2)
1590    return float_multiply_internal(float1_parsed, float2_parsed)

Float Multiply

Multiplies two floats together.

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

Returns: Graph: A graph node producing a Float.

def float_passthrough(value) -> Graph:
1592def float_passthrough(value) -> Graph:
1593    """Float Passthrough
1594
1595    Responds with the value provided. Doing nothing to it.
1596
1597    Args:
1598        value: Graph of Float
1599        
1600
1601    Returns:
1602        Graph: A graph node producing a Float.
1603    """
1604    value_parsed = parse_float_graph(value)
1605    return float_passthrough_internal(value_parsed)

Float Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of Float

Returns: Graph: A graph node producing a Float.

def float_pow(float1, float2) -> Graph:
1607def float_pow(float1, float2) -> Graph:
1608    """Float Power
1609
1610    Raises float 1 to the power of float 2
1611
1612    Args:
1613        float 1: Graph of Float
1614        float 2: Graph of Float
1615        
1616
1617    Returns:
1618        Graph: A graph node producing a Float.
1619    """
1620    float1_parsed = parse_float_graph(float1)
1621    float2_parsed = parse_float_graph(float2)
1622    return float_pow_internal(float1_parsed, float2_parsed)

Float Power

Raises float 1 to the power of float 2

Args: float 1: Graph of Float float 2: Graph of Float

Returns: Graph: A graph node producing a Float.

def float_round_to_int(float) -> Graph:
1624def float_round_to_int(float) -> Graph:
1625    """Float Round to Int
1626
1627    Rounds the float to the nearest int
1628
1629    Args:
1630        float: Graph of Float
1631        
1632
1633    Returns:
1634        Graph: A graph node producing a Int.
1635    """
1636    float_parsed = parse_float_graph(float)
1637    return float_round_to_int_internal(float_parsed)

Float Round to Int

Rounds the float to the nearest int

Args: float: Graph of Float

Returns: Graph: A graph node producing a Int.

def float_sin(angle) -> Graph:
1639def float_sin(angle) -> Graph:
1640    """Float Sine
1641
1642    Computes the sine of a float (in radians).
1643
1644    Args:
1645        Angle in radians: Graph of Float
1646        
1647
1648    Returns:
1649        Graph: A graph node producing a Float.
1650    """
1651    angle_parsed = parse_float_graph(angle)
1652    return float_sin_internal(angle_parsed)

Float Sine

Computes the sine of a float (in radians).

Args: Angle in radians: Graph of Float

Returns: Graph: A graph node producing a Float.

def float_square_root(number) -> Graph:
1654def float_square_root(number) -> Graph:
1655    """Float Square Root
1656
1657    Compares the square root of a number
1658
1659    Args:
1660        Number: Graph of Float
1661        
1662
1663    Returns:
1664        Graph: A graph node producing a Float.
1665    """
1666    number_parsed = parse_float_graph(number)
1667    return float_square_root_internal(number_parsed)

Float Square Root

Compares the square root of a number

Args: Number: Graph of Float

Returns: Graph: A graph node producing a Float.

def float_squared(number) -> Graph:
1669def float_squared(number) -> Graph:
1670    """Float Squared
1671
1672    Raises a float to the power of 2.
1673
1674    Args:
1675        Number: Graph of Float
1676        
1677
1678    Returns:
1679        Graph: A graph node producing a Float.
1680    """
1681    number_parsed = parse_float_graph(number)
1682    return float_squared_internal(number_parsed)

Float Squared

Raises a float to the power of 2.

Args: Number: Graph of Float

Returns: Graph: A graph node producing a Float.

def float_subtract(float1, float2) -> Graph:
1684def float_subtract(float1, float2) -> Graph:
1685    """Float Subtract
1686
1687    Adds two floats together.
1688
1689    Args:
1690        float1: Graph of Float
1691        float2: Graph of Float
1692        
1693
1694    Returns:
1695        Graph: A graph node producing a Float.
1696    """
1697    float1_parsed = parse_float_graph(float1)
1698    float2_parsed = parse_float_graph(float2)
1699    return float_subtract_internal(float1_parsed, float2_parsed)

Float Subtract

Adds two floats together.

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

Returns: Graph: A graph node producing a Float.

def image_from_byte_list(bytes) -> Graph:
1701def image_from_byte_list(bytes) -> Graph:
1702    """Image from Bytes
1703
1704    Given some bytes, parses an image
1705
1706    Args:
1707        bytes: Graph of ByteList
1708        
1709
1710    Returns:
1711        Graph: A graph node producing a Image.
1712    """
1713    bytes_parsed = parse_graph(bytes)
1714    return image_from_byte_list_internal(bytes_parsed)

Image from Bytes

Given some bytes, parses an image

Args: bytes: Graph of ByteList

Returns: Graph: A graph node producing a Image.

def image_to_byte_list(image) -> Graph:
1716def image_to_byte_list(image) -> Graph:
1717    """Image to Byte List
1718
1719    Given an image, converts it to a byte list
1720
1721    Args:
1722        image: Graph of Image
1723        
1724
1725    Returns:
1726        Graph: A graph node producing a ByteList.
1727    """
1728    image_parsed = parse_graph(image)
1729    return image_to_byte_list_internal(image_parsed)

Image to Byte List

Given an image, converts it to a byte list

Args: image: Graph of Image

Returns: Graph: A graph node producing a ByteList.

def int_abs(number) -> Graph:
1731def int_abs(number) -> Graph:
1732    """Int Absolute Value
1733
1734    Returns the absolute value of an int
1735
1736    Args:
1737        number: Graph of Int
1738        
1739
1740    Returns:
1741        Graph: A graph node producing a Int.
1742    """
1743    number_parsed = parse_int_graph(number)
1744    return int_abs_internal(number_parsed)

Int Absolute Value

Returns the absolute value of an int

Args: number: Graph of Int

Returns: Graph: A graph node producing a Int.

def int_add(int_1, int_2) -> Graph:
1746def int_add(int_1, int_2) -> Graph:
1747    """Int Add
1748
1749    Adds to ints together
1750
1751    Args:
1752        First Int: Graph of Int
1753        Second Int: Graph of Int
1754        
1755
1756    Returns:
1757        Graph: A graph node producing a Int.
1758    """
1759    int_1_parsed = parse_int_graph(int_1)
1760    int_2_parsed = parse_int_graph(int_2)
1761    return int_add_internal(int_1_parsed, int_2_parsed)

Int Add

Adds to ints together

Args: First Int: Graph of Int Second Int: Graph of Int

Returns: Graph: A graph node producing a Int.

def int_add_to_dictionary(dictionary, key, value) -> Graph:
1763def int_add_to_dictionary(dictionary, key, value) -> Graph:
1764    """Int Add To Dictionary
1765
1766    Adds a Int to a Dictionary
1767
1768    Args:
1769        dictionary: Graph of Dictionary
1770        key: Graph of String
1771        value: Graph of Int
1772        
1773
1774    Returns:
1775        Graph: A graph node producing a Dictionary.
1776    """
1777    dictionary_parsed = parse_graph(dictionary)
1778    key_parsed = parse_string_graph(key)
1779    value_parsed = parse_int_graph(value)
1780    return int_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

Int Add To Dictionary

Adds a Int to a Dictionary

Args: dictionary: Graph of Dictionary key: Graph of String value: Graph of Int

Returns: Graph: A graph node producing a Dictionary.

def int_equals(int_1, int_2) -> Graph:
1782def int_equals(int_1, int_2) -> Graph:
1783    """Int Equals
1784
1785    Checks if two ints are equal
1786
1787    Args:
1788        First Int: Graph of Int
1789        Second Int: Graph of Int
1790        
1791
1792    Returns:
1793        Graph: A graph node producing a Bool.
1794    """
1795    int_1_parsed = parse_int_graph(int_1)
1796    int_2_parsed = parse_int_graph(int_2)
1797    return int_equals_internal(int_1_parsed, int_2_parsed)

Int Equals

Checks if two ints are equal

Args: First Int: Graph of Int Second Int: Graph of Int

Returns: Graph: A graph node producing a Bool.

def int_greater_than(int_1, int_2) -> Graph:
1799def int_greater_than(int_1, int_2) -> Graph:
1800    """Int Greater Than
1801
1802    Checks if the first int is greater than the second int
1803
1804    Args:
1805        First Int: Graph of Int
1806        Second Int: Graph of Int
1807        
1808
1809    Returns:
1810        Graph: A graph node producing a Bool.
1811    """
1812    int_1_parsed = parse_int_graph(int_1)
1813    int_2_parsed = parse_int_graph(int_2)
1814    return int_greater_than_internal(int_1_parsed, int_2_parsed)

Int Greater Than

Checks if the first int is greater than the second int

Args: First Int: Graph of Int Second Int: Graph of Int

Returns: Graph: A graph node producing a Bool.

def int_if(bool, input_1, input_2) -> Graph:
1816def int_if(bool, input_1, input_2) -> Graph:
1817    """Int If
1818
1819    If the boolean is true returns input 1, otherwise input 2. Type: Int
1820
1821    Args:
1822        bool: Graph of Bool
1823        input 1: Graph of Int
1824        input 2: Graph of Int
1825        
1826
1827    Returns:
1828        Graph: A graph node producing a Int.
1829    """
1830    bool_parsed = parse_bool_graph(bool)
1831    input_1_parsed = parse_int_graph(input_1)
1832    input_2_parsed = parse_int_graph(input_2)
1833    return int_if_internal(bool_parsed, input_1_parsed, input_2_parsed)

Int If

If the boolean is true returns input 1, otherwise input 2. Type: Int

Args: bool: Graph of Bool input 1: Graph of Int input 2: Graph of Int

Returns: Graph: A graph node producing a Int.

def int_less_than(int_1, int_2) -> Graph:
1835def int_less_than(int_1, int_2) -> Graph:
1836    """Int Less Than
1837
1838    Checks if the first int is less than the second int
1839
1840    Args:
1841        First Int: Graph of Int
1842        Second Int: Graph of Int
1843        
1844
1845    Returns:
1846        Graph: A graph node producing a Bool.
1847    """
1848    int_1_parsed = parse_int_graph(int_1)
1849    int_2_parsed = parse_int_graph(int_2)
1850    return int_less_than_internal(int_1_parsed, int_2_parsed)

Int Less Than

Checks if the first int is less than the second int

Args: First Int: Graph of Int Second Int: Graph of Int

Returns: Graph: A graph node producing a Bool.

def int_max(int1, int2) -> Graph:
1852def int_max(int1, int2) -> Graph:
1853    """Int Max
1854
1855    Returns the maximum int.
1856
1857    Args:
1858        int1: Graph of Int
1859        int2: Graph of Int
1860        
1861
1862    Returns:
1863        Graph: A graph node producing a Int.
1864    """
1865    int1_parsed = parse_int_graph(int1)
1866    int2_parsed = parse_int_graph(int2)
1867    return int_max_internal(int1_parsed, int2_parsed)

Int Max

Returns the maximum int.

Args: int1: Graph of Int int2: Graph of Int

Returns: Graph: A graph node producing a Int.

def int_min(int1, int2) -> Graph:
1869def int_min(int1, int2) -> Graph:
1870    """Int Min
1871
1872    Returns the minimum int.
1873
1874    Args:
1875        int1: Graph of Int
1876        int2: Graph of Int
1877        
1878
1879    Returns:
1880        Graph: A graph node producing a Int.
1881    """
1882    int1_parsed = parse_int_graph(int1)
1883    int2_parsed = parse_int_graph(int2)
1884    return int_min_internal(int1_parsed, int2_parsed)

Int Min

Returns the minimum int.

Args: int1: Graph of Int int2: Graph of Int

Returns: Graph: A graph node producing a Int.

def int_multiply(int_1, int_2) -> Graph:
1886def int_multiply(int_1, int_2) -> Graph:
1887    """Int Multiply
1888
1889    Multiplies two integers together
1890
1891    Args:
1892        First Int: Graph of Int
1893        Second Int: Graph of Int
1894        
1895
1896    Returns:
1897        Graph: A graph node producing a Int.
1898    """
1899    int_1_parsed = parse_int_graph(int_1)
1900    int_2_parsed = parse_int_graph(int_2)
1901    return int_multiply_internal(int_1_parsed, int_2_parsed)

Int Multiply

Multiplies two integers together

Args: First Int: Graph of Int Second Int: Graph of Int

Returns: Graph: A graph node producing a Int.

def int_passthrough(value) -> Graph:
1903def int_passthrough(value) -> Graph:
1904    """Int Passthrough
1905
1906    Responds with the value provided. Doing nothing to it.
1907
1908    Args:
1909        value: Graph of Int
1910        
1911
1912    Returns:
1913        Graph: A graph node producing a Int.
1914    """
1915    value_parsed = parse_int_graph(value)
1916    return int_passthrough_internal(value_parsed)

Int Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of Int

Returns: Graph: A graph node producing a Int.

def int_subtract(int_1, int_2) -> Graph:
1918def int_subtract(int_1, int_2) -> Graph:
1919    """Int Subtract
1920
1921    Subtracts one int from another
1922
1923    Args:
1924        int 1: Graph of Int
1925        int 2: Graph of Int
1926        
1927
1928    Returns:
1929        Graph: A graph node producing a Int.
1930    """
1931    int_1_parsed = parse_int_graph(int_1)
1932    int_2_parsed = parse_int_graph(int_2)
1933    return int_subtract_internal(int_1_parsed, int_2_parsed)

Int Subtract

Subtracts one int from another

Args: int 1: Graph of Int int 2: Graph of Int

Returns: Graph: A graph node producing a Int.

def int_to_float(int) -> Graph:
1935def int_to_float(int) -> Graph:
1936    """Int To Float
1937
1938    Converts an Int to a Float
1939
1940    Args:
1941        int: Graph of Int
1942        
1943
1944    Returns:
1945        Graph: A graph node producing a Float.
1946    """
1947    int_parsed = parse_int_graph(int)
1948    return int_to_float_internal(int_parsed)

Int To Float

Converts an Int to a Float

Args: int: Graph of Int

Returns: Graph: A graph node producing a Float.

def monet_network_download_u_r_l_from_asset_i_d(asset_id) -> Graph:
1950def monet_network_download_u_r_l_from_asset_i_d(asset_id) -> Graph:
1951    """Monet Network Download URL from Asset ID
1952
1953    Creates a Download URL from asset ID in the Monet Network
1954
1955    Args:
1956        asset id: Graph of Int
1957        
1958
1959    Returns:
1960        Graph: A graph node producing a String.
1961    """
1962    asset_id_parsed = parse_int_graph(asset_id)
1963    return monet_network_download_u_r_l_from_asset_i_d_internal(asset_id_parsed)

Monet Network Download URL from Asset ID

Creates a Download URL from asset ID in the Monet Network

Args: asset id: Graph of Int

Returns: Graph: A graph node producing a String.

def not_(bool) -> Graph:
1965def not_(bool) -> Graph:
1966    """Not
1967
1968    Returns the opposite of a boolean
1969
1970    Args:
1971        Bool: Graph of Bool
1972        
1973
1974    Returns:
1975        Graph: A graph node producing a Bool.
1976    """
1977    bool_parsed = parse_bool_graph(bool)
1978    return not_internal(bool_parsed)

Not

Returns the opposite of a boolean

Args: Bool: Graph of Bool

Returns: Graph: A graph node producing a Bool.

def null_value() -> Graph:
1980def null_value() -> Graph:
1981    """Null Value
1982
1983    Returns a null value
1984
1985    Returns:
1986        Graph: A graph node producing a Null.
1987    """
1988    return null_value_internal()

Null Value

Returns a null value

Returns: Graph: A graph node producing a Null.

def ok_lab_color_from_components(l, a, b) -> Graph:
1990def ok_lab_color_from_components(l, a, b) -> Graph:
1991    """OkLab Color from Components
1992
1993    Given the L, a and b creates the color
1994
1995    Args:
1996        l: Graph of Float
1997        a: Graph of Float
1998        b: Graph of Float
1999        
2000
2001    Returns:
2002        Graph: A graph node producing a OkLabColor.
2003    """
2004    l_parsed = parse_float_graph(l)
2005    a_parsed = parse_float_graph(a)
2006    b_parsed = parse_float_graph(b)
2007    return ok_lab_color_from_components_internal(l_parsed, a_parsed, b_parsed)

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.

def ok_lab_to_r_g_b(ok_lab, color_profile) -> Graph:
2009def ok_lab_to_r_g_b(ok_lab, color_profile) -> Graph:
2010    """OkLab to RGB
2011
2012    Converts an OkLab color to an RGB color
2013
2014    Args:
2015        OkLab: Graph of OkLabColor
2016        color profile: Graph of ColorProfile
2017        
2018
2019    Returns:
2020        Graph: A graph node producing a RGBColor.
2021    """
2022    ok_lab_parsed = parse_graph(ok_lab)
2023    color_profile_parsed = parse_graph(color_profile)
2024    return ok_lab_to_r_g_b_internal(ok_lab_parsed, color_profile_parsed)

OkLab to RGB

Converts an OkLab color to an RGB color

Args: OkLab: Graph of OkLabColor color profile: Graph of ColorProfile

Returns: Graph: A graph node producing a RGBColor.

def or_(bool1, bool2) -> Graph:
2026def or_(bool1, bool2) -> Graph:
2027    """Or
2028
2029    Returns true if either inputs are true.
2030
2031    Args:
2032        bool1: Graph of Bool
2033        bool2: Graph of Bool
2034        
2035
2036    Returns:
2037        Graph: A graph node producing a Bool.
2038    """
2039    bool1_parsed = parse_bool_graph(bool1)
2040    bool2_parsed = parse_bool_graph(bool2)
2041    return or_internal(bool1_parsed, bool2_parsed)

Or

Returns true if either inputs are true.

Args: bool1: Graph of Bool bool2: Graph of Bool

Returns: Graph: A graph node producing a Bool.

def painter_add_path_with_render_style(painter, path, render_style, instances, depth) -> Graph:
2043def painter_add_path_with_render_style(painter, path, render_style, instances, depth) -> Graph:
2044    """Painter Add Path with Render Style
2045
2046    Adds a path to the painter and draws it with the render style. Set some transforms on the path as well.
2047
2048    Args:
2049        painter: Graph of Painter
2050        path: Graph of Path
2051        render style: Graph of RenderStyle
2052        instances: Graph of Transform2List
2053        depth: Graph of Int
2054        
2055
2056    Returns:
2057        Graph: A graph node producing a Painter.
2058    """
2059    painter_parsed = parse_graph(painter)
2060    path_parsed = parse_graph(path)
2061    render_style_parsed = parse_graph(render_style)
2062    instances_parsed = parse_graph(instances)
2063    depth_parsed = parse_int_graph(depth)
2064    return painter_add_path_with_render_style_internal(painter_parsed, path_parsed, render_style_parsed, instances_parsed, depth_parsed)

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: painter: Graph of Painter path: Graph of Path render style: Graph of RenderStyle instances: Graph of Transform2List depth: Graph of Int

Returns: Graph: A graph node producing a Painter.

def painter_new(color_profile) -> Graph:
2066def painter_new(color_profile) -> Graph:
2067    """Painter New
2068
2069    Creates a new painter.
2070
2071    Args:
2072        color profile: Graph of ColorProfile
2073        
2074
2075    Returns:
2076        Graph: A graph node producing a Painter.
2077    """
2078    color_profile_parsed = parse_graph(color_profile)
2079    return painter_new_internal(color_profile_parsed)

Painter New

Creates a new painter.

Args: color profile: Graph of ColorProfile

Returns: Graph: A graph node producing a Painter.

def path_add_rectangle(path, center, dimensions, rotation) -> Graph:
2081def path_add_rectangle(path, center, dimensions, rotation) -> Graph:
2082    """Path Add Rectangle
2083
2084    Rectangle
2085
2086    Args:
2087        path: Graph of Path
2088        center point of the rectangle: Graph of Point2f
2089        width and height of the rectangle: Graph of Vector2f
2090        rotation angle in radians: Graph of Float
2091        
2092
2093    Returns:
2094        Graph: A graph node producing a Path.
2095    """
2096    path_parsed = parse_graph(path)
2097    center_parsed = parse_graph(center)
2098    dimensions_parsed = parse_graph(dimensions)
2099    rotation_parsed = parse_float_graph(rotation)
2100    return path_add_rectangle_internal(path_parsed, center_parsed, dimensions_parsed, rotation_parsed)

Path Add Rectangle

Rectangle

Args: path: Graph of Path center point of the rectangle: Graph of Point2f width and height of the rectangle: Graph of Vector2f rotation angle in radians: Graph of Float

Returns: Graph: A graph node producing a Path.

def path_line_to_point(path, point) -> Graph:
2102def path_line_to_point(path, point) -> Graph:
2103    """Path Line to Point
2104
2105    Moves the path from it's current point to another at another point with a line.
2106
2107    Args:
2108        path: Graph of Path
2109        point: Graph of Point2f
2110        
2111
2112    Returns:
2113        Graph: A graph node producing a Path.
2114    """
2115    path_parsed = parse_graph(path)
2116    point_parsed = parse_graph(point)
2117    return path_line_to_point_internal(path_parsed, point_parsed)

Path Line to Point

Moves the path from it's current point to another at another point with a line.

Args: path: Graph of Path point: Graph of Point2f

Returns: Graph: A graph node producing a Path.

def path_move_to_point(path, point) -> Graph:
2119def path_move_to_point(path, point) -> Graph:
2120    """Path Move to Point
2121
2122    Moves the path to a specified point without drawing anything.
2123
2124    Args:
2125        path: Graph of Path
2126        point: Graph of Point2f
2127        
2128
2129    Returns:
2130        Graph: A graph node producing a Path.
2131    """
2132    path_parsed = parse_graph(path)
2133    point_parsed = parse_graph(point)
2134    return path_move_to_point_internal(path_parsed, point_parsed)

Path Move to Point

Moves the path to a specified point without drawing anything.

Args: path: Graph of Path point: Graph of Point2f

Returns: Graph: A graph node producing a Path.

def path_new() -> Graph:
2136def path_new() -> Graph:
2137    """Path New
2138
2139    Creates a new empty path.
2140
2141    Returns:
2142        Graph: A graph node producing a Path.
2143    """
2144    return path_new_internal()

Path New

Creates a new empty path.

Returns: Graph: A graph node producing a Path.

def pi() -> Graph:
2146def pi() -> Graph:
2147    """Pi
2148
2149    Returns π as a float
2150
2151    Returns:
2152        Graph: A graph node producing a Float.
2153    """
2154    return pi_internal()

Pi

Returns π as a float

Returns: Graph: A graph node producing a Float.

def point2f_from_components(x, y) -> Graph:
2156def point2f_from_components(x, y) -> Graph:
2157    """Point 2 Float from Components
2158
2159    Given an x and y creates a point
2160
2161    Args:
2162        x: Graph of Float
2163        y: Graph of Float
2164        
2165
2166    Returns:
2167        Graph: A graph node producing a Point2f.
2168    """
2169    x_parsed = parse_float_graph(x)
2170    y_parsed = parse_float_graph(y)
2171    return point2f_from_components_internal(x_parsed, y_parsed)

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 r_g_b_a_color_add_to_dictionary(dictionary, key, value) -> Graph:
2173def r_g_b_a_color_add_to_dictionary(dictionary, key, value) -> Graph:
2174    """RGBA Color Add To Dictionary
2175
2176    Adds a RGBA Color to a Dictionary
2177
2178    Args:
2179        dictionary: Graph of Dictionary
2180        key: Graph of String
2181        value: Graph of RGBAColor
2182        
2183
2184    Returns:
2185        Graph: A graph node producing a Dictionary.
2186    """
2187    dictionary_parsed = parse_graph(dictionary)
2188    key_parsed = parse_string_graph(key)
2189    value_parsed = parse_graph(value)
2190    return r_g_b_a_color_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

RGBA Color Add To Dictionary

Adds a RGBA Color to a Dictionary

Args: dictionary: Graph of Dictionary key: Graph of String value: Graph of RGBAColor

Returns: Graph: A graph node producing a Dictionary.

def r_g_b_a_color_from_components(r, g, b, a) -> Graph:
2192def r_g_b_a_color_from_components(r, g, b, a) -> Graph:
2193    """RGBA Color from Components
2194
2195    Given the r, g, b and a creates the color
2196
2197    Args:
2198        red: Graph of Float
2199        green: Graph of Float
2200        blue: Graph of Float
2201        alpha: Graph of Float
2202        
2203
2204    Returns:
2205        Graph: A graph node producing a RGBAColor.
2206    """
2207    r_parsed = parse_float_graph(r)
2208    g_parsed = parse_float_graph(g)
2209    b_parsed = parse_float_graph(b)
2210    a_parsed = parse_float_graph(a)
2211    return r_g_b_a_color_from_components_internal(r_parsed, g_parsed, b_parsed, a_parsed)

RGBA Color from Components

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

Args: red: Graph of Float green: Graph of Float blue: Graph of Float alpha: Graph of Float

Returns: Graph: A graph node producing a RGBAColor.

def r_g_b_a_color_passthrough(value) -> Graph:
2213def r_g_b_a_color_passthrough(value) -> Graph:
2214    """RGBA Color Passthrough
2215
2216    Responds with the value provided. Doing nothing to it.
2217
2218    Args:
2219        value: Graph of RGBAColor
2220        
2221
2222    Returns:
2223        Graph: A graph node producing a RGBAColor.
2224    """
2225    value_parsed = parse_graph(value)
2226    return r_g_b_a_color_passthrough_internal(value_parsed)

RGBA Color Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of RGBAColor

Returns: Graph: A graph node producing a RGBAColor.

def r_g_b_color_add_to_dictionary(dictionary, key, value) -> Graph:
2228def r_g_b_color_add_to_dictionary(dictionary, key, value) -> Graph:
2229    """RGB Color Add To Dictionary
2230
2231    Adds a RGB Color to a Dictionary
2232
2233    Args:
2234        dictionary: Graph of Dictionary
2235        key: Graph of String
2236        value: Graph of RGBColor
2237        
2238
2239    Returns:
2240        Graph: A graph node producing a Dictionary.
2241    """
2242    dictionary_parsed = parse_graph(dictionary)
2243    key_parsed = parse_string_graph(key)
2244    value_parsed = parse_graph(value)
2245    return r_g_b_color_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

RGB Color Add To Dictionary

Adds a RGB Color to a Dictionary

Args: dictionary: Graph of Dictionary key: Graph of String value: Graph of RGBColor

Returns: Graph: A graph node producing a Dictionary.

def r_g_b_color_from_components(r, g, b) -> Graph:
2247def r_g_b_color_from_components(r, g, b) -> Graph:
2248    """RGB Color from Components
2249
2250    Given the r, g and b creates the color
2251
2252    Args:
2253        red: Graph of Float
2254        green: Graph of Float
2255        blue: Graph of Float
2256        
2257
2258    Returns:
2259        Graph: A graph node producing a RGBColor.
2260    """
2261    r_parsed = parse_float_graph(r)
2262    g_parsed = parse_float_graph(g)
2263    b_parsed = parse_float_graph(b)
2264    return r_g_b_color_from_components_internal(r_parsed, g_parsed, b_parsed)

RGB Color from Components

Given the r, g and b creates the color

Args: red: Graph of Float green: Graph of Float blue: Graph of Float

Returns: Graph: A graph node producing a RGBColor.

def r_g_b_color_passthrough(value) -> Graph:
2266def r_g_b_color_passthrough(value) -> Graph:
2267    """RGB Color Passthrough
2268
2269    Responds with the value provided. Doing nothing to it.
2270
2271    Args:
2272        value: Graph of RGBColor
2273        
2274
2275    Returns:
2276        Graph: A graph node producing a RGBColor.
2277    """
2278    value_parsed = parse_graph(value)
2279    return r_g_b_color_passthrough_internal(value_parsed)

RGB Color Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of RGBColor

Returns: Graph: A graph node producing a RGBColor.

def r_g_b_to_ok_lab(rgb, color_profile) -> Graph:
2281def r_g_b_to_ok_lab(rgb, color_profile) -> Graph:
2282    """RGB to OkLab
2283
2284    Converts an RGB color to an OkLab color
2285
2286    Args:
2287        RGB: Graph of RGBColor
2288        color profile: Graph of ColorProfile
2289        
2290
2291    Returns:
2292        Graph: A graph node producing a OkLabColor.
2293    """
2294    rgb_parsed = parse_graph(rgb)
2295    color_profile_parsed = parse_graph(color_profile)
2296    return r_g_b_to_ok_lab_internal(rgb_parsed, color_profile_parsed)

RGB to OkLab

Converts an RGB color to an OkLab color

Args: RGB: Graph of RGBColor color profile: Graph of ColorProfile

Returns: Graph: A graph node producing a OkLabColor.

def render_style_brush_and_fill(brush, fill) -> Graph:
2298def render_style_brush_and_fill(brush, fill) -> Graph:
2299    """Render Style Brush and Fill
2300
2301    Creates a render style that will have a brush and a fill.
2302
2303    Args:
2304        brush: Graph of Brush
2305        fill: Graph of Fill
2306        
2307
2308    Returns:
2309        Graph: A graph node producing a RenderStyle.
2310    """
2311    brush_parsed = parse_graph(brush)
2312    fill_parsed = parse_graph(fill)
2313    return render_style_brush_and_fill_internal(brush_parsed, fill_parsed)

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.

def render_style_brush_only(brush) -> Graph:
2315def render_style_brush_only(brush) -> Graph:
2316    """Render Style Brush Only
2317
2318    Creates a render style that will only have a brush.
2319
2320    Args:
2321        brush: Graph of Brush
2322        
2323
2324    Returns:
2325        Graph: A graph node producing a RenderStyle.
2326    """
2327    brush_parsed = parse_graph(brush)
2328    return render_style_brush_only_internal(brush_parsed)

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.

def render_style_fill_only(fill) -> Graph:
2330def render_style_fill_only(fill) -> Graph:
2331    """Render Style Fill Only
2332
2333    Creates a render style that will only have a fill.
2334
2335    Args:
2336        fill: Graph of Fill
2337        
2338
2339    Returns:
2340        Graph: A graph node producing a RenderStyle.
2341    """
2342    fill_parsed = parse_graph(fill)
2343    return render_style_fill_only_internal(fill_parsed)

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 sequence_adjust_speed(sequence, factor) -> Graph:
2345def sequence_adjust_speed(sequence, factor) -> Graph:
2346    """Sequence Adjust Speed
2347
2348    Adjusts the speed of a sequence by a speed factor.
2349
2350    Args:
2351        sequence: Graph of Sequence
2352        factor: Graph of Float
2353        
2354
2355    Returns:
2356        Graph: A graph node producing a Sequence.
2357    """
2358    sequence_parsed = parse_graph(sequence)
2359    factor_parsed = parse_float_graph(factor)
2360    return sequence_adjust_speed_internal(sequence_parsed, factor_parsed)

Sequence Adjust Speed

Adjusts the speed of a sequence by a speed factor.

Args: sequence: Graph of Sequence factor: Graph of Float

Returns: Graph: A graph node producing a Sequence.

def sequence_animated_web_p(sequence, framerate) -> Graph:
2362def sequence_animated_web_p(sequence, framerate) -> Graph:
2363    """Sequence to Animated WebP
2364
2365    Given a sequence of images, encodes them into an animated WebP returning the URL to the file.
2366
2367    Args:
2368        sequence: Graph of Sequence
2369        framerate: Graph of Int
2370        
2371
2372    Returns:
2373        Graph: A graph node producing a ByteList.
2374    """
2375    sequence_parsed = parse_graph(sequence)
2376    framerate_parsed = parse_int_graph(framerate)
2377    return sequence_animated_web_p_internal(sequence_parsed, framerate_parsed)

Sequence to Animated WebP

Given a sequence of images, encodes them into an animated WebP returning the URL to the file.

Args: sequence: Graph of Sequence framerate: Graph of Int

Returns: Graph: A graph node producing a ByteList.

def sequence_composition_at_time(sequence, time) -> Graph:
2379def sequence_composition_at_time(sequence, time) -> Graph:
2380    """Sequence Composition at Time
2381
2382    Extracts an composition from a sequence at a particular time
2383
2384    Args:
2385        sequence: Graph of Sequence
2386        time: Graph of Float
2387        
2388
2389    Returns:
2390        Graph: A graph node producing a Composition.
2391    """
2392    sequence_parsed = parse_graph(sequence)
2393    time_parsed = parse_float_graph(time)
2394    return sequence_composition_at_time_internal(sequence_parsed, time_parsed)

Sequence Composition at Time

Extracts an composition from a sequence at a particular time

Args: sequence: Graph of Sequence time: Graph of Float

Returns: Graph: A graph node producing a Composition.

def sequence_concatenate(sequence_1, sequence_2) -> Graph:
2396def sequence_concatenate(sequence_1, sequence_2) -> Graph:
2397    """Sequence Concatenate
2398
2399    Given two sequences, combines them into one by playing the first one and then the second one.
2400
2401    Args:
2402        sequence 1: Graph of Sequence
2403        sequence 2: Graph of Sequence
2404        
2405
2406    Returns:
2407        Graph: A graph node producing a Sequence.
2408    """
2409    sequence_1_parsed = parse_graph(sequence_1)
2410    sequence_2_parsed = parse_graph(sequence_2)
2411    return sequence_concatenate_internal(sequence_1_parsed, sequence_2_parsed)

Sequence Concatenate

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

Args: sequence 1: Graph of Sequence sequence 2: Graph of Sequence

Returns: Graph: A graph node producing a Sequence.

def sequence_duration(sequence) -> Graph:
2413def sequence_duration(sequence) -> Graph:
2414    """Sequence Duration
2415
2416    Gets the duration from a sequence
2417
2418    Args:
2419        sequence: Graph of Sequence
2420        
2421
2422    Returns:
2423        Graph: A graph node producing a Float.
2424    """
2425    sequence_parsed = parse_graph(sequence)
2426    return sequence_duration_internal(sequence_parsed)

Sequence Duration

Gets the duration from a sequence

Args: sequence: Graph of Sequence

Returns: Graph: A graph node producing a Float.

def sequence_from_composition_and_duration(composition, duration) -> Graph:
2428def sequence_from_composition_and_duration(composition, duration) -> Graph:
2429    """Sequence from Composition and Duration
2430
2431    Give a Composition and a Duration. Returns a Sequence.
2432
2433    Args:
2434        composition: Graph of Composition
2435        duration: Graph of Float
2436        
2437
2438    Returns:
2439        Graph: A graph node producing a Sequence.
2440    """
2441    composition_parsed = parse_graph(composition)
2442    duration_parsed = parse_float_graph(duration)
2443    return sequence_from_composition_and_duration_internal(composition_parsed, duration_parsed)

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.

def sequence_from_u_r_l(url) -> Graph:
2445def sequence_from_u_r_l(url) -> Graph:
2446    """Sequence from URL
2447
2448    Creates a sequence from URL
2449
2450    Args:
2451        url: Graph of String
2452        
2453
2454    Returns:
2455        Graph: A graph node producing a Sequence.
2456    """
2457    url_parsed = parse_string_graph(url)
2458    return sequence_from_u_r_l_internal(url_parsed)

Sequence from URL

Creates a sequence from URL

Args: url: Graph of String

Returns: Graph: A graph node producing a Sequence.

def sequence_graph(duration, time, frame) -> Graph:
2460def sequence_graph(duration, time, frame) -> Graph:
2461    """Sequence Graph
2462
2463    Creates a sequence that runs the graph to get the duration and the frame for each time.
2464
2465    Args:
2466        duration: Graph of Float
2467        time: Graph of Float
2468        frame: Graph of Composition
2469        
2470
2471    Returns:
2472        Graph: A graph node producing a Sequence.
2473    """
2474    duration_parsed = parse_float_graph(duration)
2475    time_parsed = parse_float_graph(time)
2476    frame_parsed = parse_graph(frame)
2477    return sequence_graph_internal(duration_parsed, time_parsed, frame_parsed)

Sequence Graph

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

Args: duration: Graph of Float time: Graph of Float frame: Graph of Composition

Returns: Graph: A graph node producing a Sequence.

def sequence_grayscale(sequence) -> Graph:
2479def sequence_grayscale(sequence) -> Graph:
2480    """Sequence Grayscale
2481
2482    Creates a sequence that converts the video to grayscale
2483
2484    Args:
2485        sequence: Graph of Sequence
2486        
2487
2488    Returns:
2489        Graph: A graph node producing a Sequence.
2490    """
2491    sequence_parsed = parse_graph(sequence)
2492    return sequence_grayscale_internal(sequence_parsed)

Sequence Grayscale

Creates a sequence that converts the video to grayscale

Args: sequence: Graph of Sequence

Returns: Graph: A graph node producing a Sequence.

def sequence_passthrough(value) -> Graph:
2494def sequence_passthrough(value) -> Graph:
2495    """Sequence Passthrough
2496
2497    Responds with the value provided. Doing nothing to it.
2498
2499    Args:
2500        value: Graph of Sequence
2501        
2502
2503    Returns:
2504        Graph: A graph node producing a Sequence.
2505    """
2506    value_parsed = parse_graph(value)
2507    return sequence_passthrough_internal(value_parsed)

Sequence Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of Sequence

Returns: Graph: A graph node producing a Sequence.

def sequence_reverse(sequence) -> Graph:
2509def sequence_reverse(sequence) -> Graph:
2510    """Sequence Reverse
2511
2512    Given a sequence. Reverses it.
2513
2514    Args:
2515        sequence: Graph of Sequence
2516        
2517
2518    Returns:
2519        Graph: A graph node producing a Sequence.
2520    """
2521    sequence_parsed = parse_graph(sequence)
2522    return sequence_reverse_internal(sequence_parsed)

Sequence Reverse

Given a sequence. Reverses it.

Args: sequence: Graph of Sequence

Returns: Graph: A graph node producing a Sequence.

def sequence_to_mp4(sequence, frame_rate_numerator, frame_rate_denominator) -> Graph:
2524def sequence_to_mp4(sequence, frame_rate_numerator, frame_rate_denominator) -> Graph:
2525    """Sequence To MP4
2526
2527    Given a sequence. Converts it to MP4 return a local file to where that MP4 is stored.
2528
2529    Args:
2530        sequence: Graph of Sequence
2531        frame rate numerator: Graph of Int
2532        frame rate denominator: Graph of Int
2533        
2534
2535    Returns:
2536        Graph: A graph node producing a String.
2537    """
2538    sequence_parsed = parse_graph(sequence)
2539    frame_rate_numerator_parsed = parse_int_graph(frame_rate_numerator)
2540    frame_rate_denominator_parsed = parse_int_graph(frame_rate_denominator)
2541    return sequence_to_mp4_internal(sequence_parsed, frame_rate_numerator_parsed, frame_rate_denominator_parsed)

Sequence To MP4

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

Args: sequence: Graph of Sequence frame rate numerator: Graph of Int frame rate denominator: Graph of Int

Returns: Graph: A graph node producing a String.

def sequence_trim_back(sequence, amount) -> Graph:
2543def sequence_trim_back(sequence, amount) -> Graph:
2544    """Sequence Trim Back
2545
2546    Given a sequence. Trims from the back.
2547
2548    Args:
2549        sequence: Graph of Sequence
2550        amount: Graph of Float
2551        
2552
2553    Returns:
2554        Graph: A graph node producing a Sequence.
2555    """
2556    sequence_parsed = parse_graph(sequence)
2557    amount_parsed = parse_float_graph(amount)
2558    return sequence_trim_back_internal(sequence_parsed, amount_parsed)

Sequence Trim Back

Given a sequence. Trims from the back.

Args: sequence: Graph of Sequence amount: Graph of Float

Returns: Graph: A graph node producing a Sequence.

def sequence_trim_front(sequence, amount) -> Graph:
2560def sequence_trim_front(sequence, amount) -> Graph:
2561    """Sequence Trim Front
2562
2563    Given a sequence. Trims from the front.
2564
2565    Args:
2566        sequence: Graph of Sequence
2567        amount: Graph of Float
2568        
2569
2570    Returns:
2571        Graph: A graph node producing a Sequence.
2572    """
2573    sequence_parsed = parse_graph(sequence)
2574    amount_parsed = parse_float_graph(amount)
2575    return sequence_trim_front_internal(sequence_parsed, amount_parsed)

Sequence Trim Front

Given a sequence. Trims from the front.

Args: sequence: Graph of Sequence amount: Graph of Float

Returns: Graph: A graph node producing a Sequence.

def string_if(bool, input_1, input_2) -> Graph:
2577def string_if(bool, input_1, input_2) -> Graph:
2578    """String If
2579
2580    If the boolean is true returns input 1, otherwise input 2. Type: String
2581
2582    Args:
2583        bool: Graph of Bool
2584        input 1: Graph of String
2585        input 2: Graph of String
2586        
2587
2588    Returns:
2589        Graph: A graph node producing a String.
2590    """
2591    bool_parsed = parse_bool_graph(bool)
2592    input_1_parsed = parse_string_graph(input_1)
2593    input_2_parsed = parse_string_graph(input_2)
2594    return string_if_internal(bool_parsed, input_1_parsed, input_2_parsed)

String If

If the boolean is true returns input 1, otherwise input 2. Type: String

Args: bool: Graph of Bool input 1: Graph of String input 2: Graph of String

Returns: Graph: A graph node producing a String.

def transform2_identity() -> Graph:
2596def transform2_identity() -> Graph:
2597    """Transform 2D Identity
2598
2599    Creates a 2D transform that is the identity transform.
2600
2601    Returns:
2602        Graph: A graph node producing a Transform2.
2603    """
2604    return transform2_identity_internal()

Transform 2D Identity

Creates a 2D transform that is the identity transform.

Returns: Graph: A graph node producing a Transform2.

def transform2_rotate(transform, angle) -> Graph:
2606def transform2_rotate(transform, angle) -> Graph:
2607    """Transform 2D Rotate
2608
2609    Applies a rotation to a 2D transform. Rotation is in radians.
2610
2611    Args:
2612        transform: Graph of Transform2
2613        angle in radians: Graph of Float
2614        
2615
2616    Returns:
2617        Graph: A graph node producing a Transform2.
2618    """
2619    transform_parsed = parse_graph(transform)
2620    angle_parsed = parse_float_graph(angle)
2621    return transform2_rotate_internal(transform_parsed, angle_parsed)

Transform 2D Rotate

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

Args: transform: Graph of Transform2 angle in radians: Graph of Float

Returns: Graph: A graph node producing a Transform2.

def transform2_scale(transform, scale) -> Graph:
2623def transform2_scale(transform, scale) -> Graph:
2624    """Transform 2D Scale
2625
2626    Applies a scale to a 2D transform.
2627
2628    Args:
2629        transform: Graph of Transform2
2630        scale: Graph of Vector2f
2631        
2632
2633    Returns:
2634        Graph: A graph node producing a Transform2.
2635    """
2636    transform_parsed = parse_graph(transform)
2637    scale_parsed = parse_graph(scale)
2638    return transform2_scale_internal(transform_parsed, scale_parsed)

Transform 2D Scale

Applies a scale to a 2D transform.

Args: transform: Graph of Transform2 scale: Graph of Vector2f

Returns: Graph: A graph node producing a Transform2.

def transform2_to_list(item) -> Graph:
2640def transform2_to_list(item) -> Graph:
2641    """Transform 2D to List
2642
2643    Converts Transform 2D to a single item list
2644
2645    Args:
2646        item: Graph of Transform2
2647        
2648
2649    Returns:
2650        Graph: A graph node producing a Transform2List.
2651    """
2652    item_parsed = parse_graph(item)
2653    return transform2_to_list_internal(item_parsed)

Transform 2D to List

Converts Transform 2D to a single item list

Args: item: Graph of Transform2

Returns: Graph: A graph node producing a Transform2List.

def transform2_translation(transform, translation) -> Graph:
2655def transform2_translation(transform, translation) -> Graph:
2656    """Transform 2D Translation
2657
2658    Applies a translation to a 2D transform.
2659
2660    Args:
2661        transform: Graph of Transform2
2662        translation: Graph of Vector2f
2663        
2664
2665    Returns:
2666        Graph: A graph node producing a Transform2.
2667    """
2668    transform_parsed = parse_graph(transform)
2669    translation_parsed = parse_graph(translation)
2670    return transform2_translation_internal(transform_parsed, translation_parsed)

Transform 2D Translation

Applies a translation to a 2D transform.

Args: transform: Graph of Transform2 translation: Graph of Vector2f

Returns: Graph: A graph node producing a Transform2.

def upload_file_path(path, url, content_type) -> Graph:
2672def upload_file_path(path, url, content_type) -> Graph:
2673    """Upload File Path
2674
2675    Reads a file from a local path on disk and uploads its contents to a URL via PUT request
2676
2677    Args:
2678        local file path to read: Graph of String
2679        url: Graph of String
2680        content type: Graph of String
2681        
2682
2683    Returns:
2684        Graph: A graph node producing a Void.
2685    """
2686    path_parsed = parse_string_graph(path)
2687    url_parsed = parse_string_graph(url)
2688    content_type_parsed = parse_string_graph(content_type)
2689    return upload_file_path_internal(path_parsed, url_parsed, content_type_parsed)

Upload File Path

Reads a file from a local path on disk and uploads its contents to a URL via PUT request

Args: local file path to read: Graph of String url: Graph of String content type: Graph of String

Returns: Graph: A graph node producing a Void.

def vector2_int_to_vector2_float(vector) -> Graph:
2691def vector2_int_to_vector2_float(vector) -> Graph:
2692    """Vector 2 Int to Vector 2 Float
2693
2694    Given a Vector 2 Int. Creates a Vector 2 Float.
2695
2696    Args:
2697        vector: Graph of Vector2i
2698        
2699
2700    Returns:
2701        Graph: A graph node producing a Vector2f.
2702    """
2703    vector_parsed = parse_graph(vector)
2704    return vector2_int_to_vector2_float_internal(vector_parsed)

Vector 2 Int to Vector 2 Float

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

Args: vector: Graph of Vector2i

Returns: Graph: A graph node producing a Vector2f.

def vector2f_add(lhs, rhs) -> Graph:
2706def vector2f_add(lhs, rhs) -> Graph:
2707    """Vector 2 Float Add
2708
2709    Add two Vector 2s of Floats
2710
2711    Args:
2712        The vector on the left hand side of the add: Graph of Vector2f
2713        The vector on the right hand side of the add: Graph of Vector2f
2714        
2715
2716    Returns:
2717        Graph: A graph node producing a Vector2f.
2718    """
2719    lhs_parsed = parse_graph(lhs)
2720    rhs_parsed = parse_graph(rhs)
2721    return vector2f_add_internal(lhs_parsed, rhs_parsed)

Vector 2 Float Add

Add two Vector 2s of Floats

Args: The vector on the left hand side of the add: Graph of Vector2f The vector on the right hand side of the add: Graph of Vector2f

Returns: Graph: A graph node producing a Vector2f.

def vector2f_add_to_dictionary(dictionary, key, value) -> Graph:
2723def vector2f_add_to_dictionary(dictionary, key, value) -> Graph:
2724    """Vector 2 Float Add To Dictionary
2725
2726    Adds a Vector 2 Float to a Dictionary
2727
2728    Args:
2729        dictionary: Graph of Dictionary
2730        key: Graph of String
2731        value: Graph of Vector2f
2732        
2733
2734    Returns:
2735        Graph: A graph node producing a Dictionary.
2736    """
2737    dictionary_parsed = parse_graph(dictionary)
2738    key_parsed = parse_string_graph(key)
2739    value_parsed = parse_graph(value)
2740    return vector2f_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

Vector 2 Float Add To Dictionary

Adds a Vector 2 Float to a Dictionary

Args: dictionary: Graph of Dictionary key: Graph of String value: Graph of Vector2f

Returns: Graph: A graph node producing a Dictionary.

def vector2f_from_components(x, y) -> Graph:
2742def vector2f_from_components(x, y) -> Graph:
2743    """Vector 2 Float from Components
2744
2745    Given an x and y creates a vector.
2746
2747    Args:
2748        x: Graph of Float
2749        y: Graph of Float
2750        
2751
2752    Returns:
2753        Graph: A graph node producing a Vector2f.
2754    """
2755    x_parsed = parse_float_graph(x)
2756    y_parsed = parse_float_graph(y)
2757    return vector2f_from_components_internal(x_parsed, y_parsed)

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 vector2f_normalize(vector) -> Graph:
2759def vector2f_normalize(vector) -> Graph:
2760    """Vector 2 Float Normalize
2761
2762    Normalizes a Vector. Converting it's length to 1.
2763
2764    Args:
2765        Vector: Graph of Vector2f
2766        
2767
2768    Returns:
2769        Graph: A graph node producing a Vector2f.
2770    """
2771    vector_parsed = parse_graph(vector)
2772    return vector2f_normalize_internal(vector_parsed)

Vector 2 Float Normalize

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

Args: Vector: Graph of Vector2f

Returns: Graph: A graph node producing a Vector2f.

def vector2f_passthrough(value) -> Graph:
2774def vector2f_passthrough(value) -> Graph:
2775    """Vector 2 Float Passthrough
2776
2777    Responds with the value provided. Doing nothing to it.
2778
2779    Args:
2780        value: Graph of Vector2f
2781        
2782
2783    Returns:
2784        Graph: A graph node producing a Vector2f.
2785    """
2786    value_parsed = parse_graph(value)
2787    return vector2f_passthrough_internal(value_parsed)

Vector 2 Float Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of Vector2f

Returns: Graph: A graph node producing a Vector2f.

def vector2f_scalar_multiply(vector, scalar) -> Graph:
2789def vector2f_scalar_multiply(vector, scalar) -> Graph:
2790    """Vector 2 Float Scalar Multiply
2791
2792    Multiplies each element of the Vector as a scalar
2793
2794    Args:
2795        Vector: Graph of Vector2f
2796        Scalar: Graph of Float
2797        
2798
2799    Returns:
2800        Graph: A graph node producing a Vector2f.
2801    """
2802    vector_parsed = parse_graph(vector)
2803    scalar_parsed = parse_float_graph(scalar)
2804    return vector2f_scalar_multiply_internal(vector_parsed, scalar_parsed)

Vector 2 Float Scalar Multiply

Multiplies each element of the Vector as a scalar

Args: Vector: Graph of Vector2f Scalar: Graph of Float

Returns: Graph: A graph node producing a Vector2f.

def vector2f_x(vector) -> Graph:
2806def vector2f_x(vector) -> Graph:
2807    """Vector 2 Float get X
2808
2809    Retrieves the X component of a Vector 2 Float.
2810
2811    Args:
2812        vector: Graph of Vector2f
2813        
2814
2815    Returns:
2816        Graph: A graph node producing a Float.
2817    """
2818    vector_parsed = parse_graph(vector)
2819    return vector2f_x_internal(vector_parsed)

Vector 2 Float get X

Retrieves the X component of a Vector 2 Float.

Args: vector: Graph of Vector2f

Returns: Graph: A graph node producing a Float.

def vector2f_y(vector) -> Graph:
2821def vector2f_y(vector) -> Graph:
2822    """Vector 2 Float get Y
2823
2824    Retrieves the Y component of a Vector 2 Float.
2825
2826    Args:
2827        vector: Graph of Vector2f
2828        
2829
2830    Returns:
2831        Graph: A graph node producing a Float.
2832    """
2833    vector_parsed = parse_graph(vector)
2834    return vector2f_y_internal(vector_parsed)

Vector 2 Float get Y

Retrieves the Y component of a Vector 2 Float.

Args: vector: Graph of Vector2f

Returns: Graph: A graph node producing a Float.

def vector2i_add(lhs, rhs) -> Graph:
2836def vector2i_add(lhs, rhs) -> Graph:
2837    """Vector 2 Int Add
2838
2839    Add two Vector 2s of Ints
2840
2841    Args:
2842        The vector on the left hand side of the add: Graph of Vector2i
2843        The vector on the right hand side of the add: Graph of Vector2i
2844        
2845
2846    Returns:
2847        Graph: A graph node producing a Vector2i.
2848    """
2849    lhs_parsed = parse_graph(lhs)
2850    rhs_parsed = parse_graph(rhs)
2851    return vector2i_add_internal(lhs_parsed, rhs_parsed)

Vector 2 Int Add

Add two Vector 2s of Ints

Args: The vector on the left hand side of the add: Graph of Vector2i The vector on the right hand side of the add: Graph of Vector2i

Returns: Graph: A graph node producing a Vector2i.

def vector2i_add_to_dictionary(dictionary, key, value) -> Graph:
2853def vector2i_add_to_dictionary(dictionary, key, value) -> Graph:
2854    """Vector 2 Int Add To Dictionary
2855
2856    Adds a Vector 2 Int to a Dictionary
2857
2858    Args:
2859        dictionary: Graph of Dictionary
2860        key: Graph of String
2861        value: Graph of Vector2i
2862        
2863
2864    Returns:
2865        Graph: A graph node producing a Dictionary.
2866    """
2867    dictionary_parsed = parse_graph(dictionary)
2868    key_parsed = parse_string_graph(key)
2869    value_parsed = parse_graph(value)
2870    return vector2i_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

Vector 2 Int Add To Dictionary

Adds a Vector 2 Int to a Dictionary

Args: dictionary: Graph of Dictionary key: Graph of String value: Graph of Vector2i

Returns: Graph: A graph node producing a Dictionary.

def vector2i_from_components(x, y) -> Graph:
2872def vector2i_from_components(x, y) -> Graph:
2873    """Vector 2 Int from Components
2874
2875    Given an x and y creates a vector.
2876
2877    Args:
2878        x: Graph of Int
2879        y: Graph of Int
2880        
2881
2882    Returns:
2883        Graph: A graph node producing a Vector2i.
2884    """
2885    x_parsed = parse_int_graph(x)
2886    y_parsed = parse_int_graph(y)
2887    return vector2i_from_components_internal(x_parsed, y_parsed)

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 vector2i_passthrough(value) -> Graph:
2889def vector2i_passthrough(value) -> Graph:
2890    """Vector 2 Int Passthrough
2891
2892    Responds with the value provided. Doing nothing to it.
2893
2894    Args:
2895        value: Graph of Vector2i
2896        
2897
2898    Returns:
2899        Graph: A graph node producing a Vector2i.
2900    """
2901    value_parsed = parse_graph(value)
2902    return vector2i_passthrough_internal(value_parsed)

Vector 2 Int Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of Vector2i

Returns: Graph: A graph node producing a Vector2i.

def vector2i_to_vector2f(vector) -> Graph:
2904def vector2i_to_vector2f(vector) -> Graph:
2905    """Vector 2 Int to Vector 2 Float
2906
2907    Given a Vector 2 Int. Creates a Vector 2 Float.
2908
2909    Args:
2910        vector: Graph of Vector2i
2911        
2912
2913    Returns:
2914        Graph: A graph node producing a Vector2f.
2915    """
2916    vector_parsed = parse_graph(vector)
2917    return vector2i_to_vector2f_internal(vector_parsed)

Vector 2 Int to Vector 2 Float

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

Args: vector: Graph of Vector2i

Returns: Graph: A graph node producing a Vector2f.

def vector2i_x(vector) -> Graph:
2919def vector2i_x(vector) -> Graph:
2920    """Vector 2 Int get X
2921
2922    Retrieves the X component of a Vector 2 Int.
2923
2924    Args:
2925        vector: Graph of Vector2i
2926        
2927
2928    Returns:
2929        Graph: A graph node producing a Int.
2930    """
2931    vector_parsed = parse_graph(vector)
2932    return vector2i_x_internal(vector_parsed)

Vector 2 Int get X

Retrieves the X component of a Vector 2 Int.

Args: vector: Graph of Vector2i

Returns: Graph: A graph node producing a Int.

def vector2i_y(vector) -> Graph:
2934def vector2i_y(vector) -> Graph:
2935    """Vector 2 Int get Y
2936
2937    Retrieves the Y component of a Vector 2 Int.
2938
2939    Args:
2940        vector: Graph of Vector2i
2941        
2942
2943    Returns:
2944        Graph: A graph node producing a Int.
2945    """
2946    vector_parsed = parse_graph(vector)
2947    return vector2i_y_internal(vector_parsed)

Vector 2 Int get Y

Retrieves the Y component of a Vector 2 Int.

Args: vector: Graph of Vector2i

Returns: Graph: A graph node producing a Int.

def vector3f_add(lhs, rhs) -> Graph:
2949def vector3f_add(lhs, rhs) -> Graph:
2950    """Vector 3 Float Add
2951
2952    Add two Vector 3s of Floats
2953
2954    Args:
2955        The vector on the left hand side of the add: Graph of Vector3f
2956        The vector on the right hand side of the add: Graph of Vector3f
2957        
2958
2959    Returns:
2960        Graph: A graph node producing a Vector3f.
2961    """
2962    lhs_parsed = parse_graph(lhs)
2963    rhs_parsed = parse_graph(rhs)
2964    return vector3f_add_internal(lhs_parsed, rhs_parsed)

Vector 3 Float Add

Add two Vector 3s of Floats

Args: The vector on the left hand side of the add: Graph of Vector3f The vector on the right hand side of the add: Graph of Vector3f

Returns: Graph: A graph node producing a Vector3f.

def vector3f_from_components(x, y, z) -> Graph:
2966def vector3f_from_components(x, y, z) -> Graph:
2967    """Vector 3 Float from Components
2968
2969    Given an x, y and z creates a vector floats.
2970
2971    Args:
2972        x: Graph of Float
2973        y: Graph of Float
2974        z: Graph of Float
2975        
2976
2977    Returns:
2978        Graph: A graph node producing a Vector3f.
2979    """
2980    x_parsed = parse_float_graph(x)
2981    y_parsed = parse_float_graph(y)
2982    z_parsed = parse_float_graph(z)
2983    return vector3f_from_components_internal(x_parsed, y_parsed, z_parsed)

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 vector3f_normalize(vector) -> Graph:
2985def vector3f_normalize(vector) -> Graph:
2986    """Vector 3 Normalize
2987
2988    Normalizes a Vector 3 Float. Converting it's length to 1.
2989
2990    Args:
2991        Vector: Graph of Vector3f
2992        
2993
2994    Returns:
2995        Graph: A graph node producing a Vector3f.
2996    """
2997    vector_parsed = parse_graph(vector)
2998    return vector3f_normalize_internal(vector_parsed)

Vector 3 Normalize

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

Args: Vector: Graph of Vector3f

Returns: Graph: A graph node producing a Vector3f.

def vector3f_x(vector) -> Graph:
3000def vector3f_x(vector) -> Graph:
3001    """Vector 3D Float X
3002
3003    Gets the value in the x component for the provided vector
3004
3005    Args:
3006        vector: Graph of Vector3f
3007        
3008
3009    Returns:
3010        Graph: A graph node producing a Float.
3011    """
3012    vector_parsed = parse_graph(vector)
3013    return vector3f_x_internal(vector_parsed)

Vector 3D Float X

Gets the value in the x component for the provided vector

Args: vector: Graph of Vector3f

Returns: Graph: A graph node producing a Float.

def vector3f_y(vector) -> Graph:
3015def vector3f_y(vector) -> Graph:
3016    """Vector 3D Y Float
3017
3018    Gets the value in the y component for the provided vector
3019
3020    Args:
3021        vector: Graph of Vector3f
3022        
3023
3024    Returns:
3025        Graph: A graph node producing a Float.
3026    """
3027    vector_parsed = parse_graph(vector)
3028    return vector3f_y_internal(vector_parsed)

Vector 3D Y Float

Gets the value in the y component for the provided vector

Args: vector: Graph of Vector3f

Returns: Graph: A graph node producing a Float.

def vector3f_z(vector) -> Graph:
3030def vector3f_z(vector) -> Graph:
3031    """Vector 3D Float Z
3032
3033    Gets the value in the z component for the provided vector
3034
3035    Args:
3036        vector: Graph of Vector3f
3037        
3038
3039    Returns:
3040        Graph: A graph node producing a Float.
3041    """
3042    vector_parsed = parse_graph(vector)
3043    return vector3f_z_internal(vector_parsed)

Vector 3D Float Z

Gets the value in the z component for the provided vector

Args: vector: Graph of Vector3f

Returns: Graph: A graph node producing a Float.

def xor(bool1, bool2) -> Graph:
3045def xor(bool1, bool2) -> Graph:
3046    """Exclusive Or
3047
3048    Returns true if either the inputs are true. But false if both are true.
3049
3050    Args:
3051        the first bool: Graph of Bool
3052        The second bool: Graph of Bool
3053        
3054
3055    Returns:
3056        Graph: A graph node producing a Bool.
3057    """
3058    bool1_parsed = parse_bool_graph(bool1)
3059    bool2_parsed = parse_bool_graph(bool2)
3060    return xor_internal(bool1_parsed, bool2_parsed)

Exclusive Or

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

Args: the first bool: Graph of Bool The second bool: Graph of Bool

Returns: Graph: A graph node producing a Bool.