brushcue

Brushcue — Python bindings for the BrushCue image editing application.

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()

image = brushcue.load_composition("photo.png")
grayscale = brushcue.composition_grayscale(image)

result = grayscale.execute(ctx)
output_bytes = result.as_composition().to_image_bytes(ctx)

with open("output.png", "wb") as f:
    f.write(bytes(output_bytes))

Core Types

  • Context — GPU/async execution context. Create one per process.
  • Graph — A node in the computation graph.
  • Project — A collection of graphs that can be serialized/deserialized.
  • Type — The result of executing a graph node.

Examples

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

The type of the None singleton.

def replacing(self, /, graph_id, graph):

The type of the None singleton.

def removing(self, /, graph_id):

The type of the None singleton.

def find(self, /, graph_id):

The type of the None singleton.

def generate_ipynb_script(self, /):

The type of the None singleton.

def execute(self, /, context):

The type of the None singleton.

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

The type of the None singleton.

def replacing(self, /, graph_id, 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, graph_id):

The type of the None singleton.

def deserialize(context, bytes):

The type of the None singleton.

def execute_tool(self, /, tool_name, input_json, id_mapper, context):

Execute a graph tool by name. Returns (result_text, updated_project). input_json is a JSON object matching the tool's input schema (node IDs are short ints from the IDMapper).

def mcp_project(self, /, id_mapper):

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.

def as_sequence(self, /):

The type of the None singleton.

def as_vector2i(self, /):

The type of the None singleton.

def as_vector2f(self, /):

The type of the None singleton.

class TypeDefinition:
name
display_name
description
class NodeDefinition:
node_type_id
output_type
name
description
display_name
inputs
class NodeDefinitionInput:
name
description
input_type
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) -> Graph:
51def int_constant(value) -> Graph:
52    return int_constant_internal(int(value))
def float_constant(value) -> Graph:
54def float_constant(value) -> Graph:
55    return float_constant_internal(float(value))
def string_constant(value: str) -> Graph:
57def string_constant(value: str) -> Graph:
58    return string_constant_internal(value)
def bool_constant(value: bool) -> Graph:
60def bool_constant(value: bool) -> Graph:
61    return bool_constant_internal(value)
def abs(number) -> Graph:
76def abs(number) -> Graph:
77    """Absolute Value
78
79    Returns the absolute value of a float
80
81    Args:
82        number: Graph of Float
83        
84
85    Returns:
86        Graph: A graph node producing a Float.
87    """
88    number_parsed = parse_float_graph(number)
89    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:
 91def and_(bool1, bool2) -> Graph:
 92    """And
 93
 94    Returns true if both inputs are true.
 95
 96    Args:
 97        the first bool: Graph of Bool
 98        The second bool: Graph of Bool
 99        
100
101    Returns:
102        Graph: A graph node producing a Bool.
103    """
104    bool1_parsed = parse_bool_graph(bool1)
105    bool2_parsed = parse_bool_graph(bool2)
106    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:
108def bool_add_to_dictionary(dictionary, key, value) -> Graph:
109    """Bool Add To Dictionary
110
111    Adds a Bool to a Dictionary
112
113    Args:
114        dictionary: Graph of Dictionary
115        key: Graph of String
116        value: Graph of Bool
117        
118
119    Returns:
120        Graph: A graph node producing a Dictionary.
121    """
122    dictionary_parsed = parse_graph(dictionary)
123    key_parsed = parse_string_graph(key)
124    value_parsed = parse_bool_graph(value)
125    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:
127def bool_if(bool, input_1, input_2) -> Graph:
128    """Bool If
129
130    If the boolean is true returns input 1, otherwise input 2. Type: Bool
131
132    Args:
133        bool: Graph of Bool
134        input 1: Graph of Bool
135        input 2: Graph of Bool
136        
137
138    Returns:
139        Graph: A graph node producing a Bool.
140    """
141    bool_parsed = parse_bool_graph(bool)
142    input_1_parsed = parse_bool_graph(input_1)
143    input_2_parsed = parse_bool_graph(input_2)
144    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:
146def bounds2f_from_x_y_width_height(x, y, width, height) -> Graph:
147    """Bounds 2D Float from X, Y, Width & Height
148
149    Creates the bounds of a 2D float region from its X, Y, Width and Height.
150
151    Args:
152        x: Graph of Float
153        y: Graph of Float
154        width: Graph of Float
155        height: Graph of Float
156        
157
158    Returns:
159        Graph: A graph node producing a Bounds2f.
160    """
161    x_parsed = parse_float_graph(x)
162    y_parsed = parse_float_graph(y)
163    width_parsed = parse_float_graph(width)
164    height_parsed = parse_float_graph(height)
165    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:
167def bounds2i_from_x_y_width_height(x, y, width, height) -> Graph:
168    """Bounds 2D Int from X, Y, Width & Height
169
170    Creates the bounds of a 2D array from its X, Y, Width and Height.
171
172    Args:
173        x: Graph of Int
174        y: Graph of Int
175        width: Graph of Int
176        height: Graph of Int
177        
178
179    Returns:
180        Graph: A graph node producing a Bounds2i.
181    """
182    x_parsed = parse_int_graph(x)
183    y_parsed = parse_int_graph(y)
184    width_parsed = parse_int_graph(width)
185    height_parsed = parse_int_graph(height)
186    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:
188def brush_solid(color, radius) -> Graph:
189    """Brush Solid
190
191    Creates a brush with a color and radius. Will stroke with the solid color.
192
193    Args:
194        color: Graph of RGBAColor
195        radius: Graph of Float
196        
197
198    Returns:
199        Graph: A graph node producing a Brush.
200    """
201    color_parsed = parse_graph(color)
202    radius_parsed = parse_float_graph(radius)
203    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:
205def byte_list_from_u_r_l(url) -> Graph:
206    """Byte List from URL
207
208    Given a URL. Performs a GET request and downloads the result as bytes.
209
210    Args:
211        url: Graph of String
212        
213
214    Returns:
215        Graph: A graph node producing a ByteList.
216    """
217    url_parsed = parse_string_graph(url)
218    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:
220def color_profile_b_t709() -> Graph:
221    """Color Profile BT.709
222
223    Creates a BT.709 Color Profile
224
225    Returns:
226        Graph: A graph node producing a ColorProfile.
227    """
228    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:
230def color_profile_ok_lab_a() -> Graph:
231    """Color Profile OkLabA
232
233    Creates an OkLabA color profile. OkLab with also an alpha component.
234
235    Returns:
236        Graph: A graph node producing a ColorProfile.
237    """
238    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:
240def color_profile_p3() -> Graph:
241    """Color Profile P3
242
243    Creates a P3 Color Profile
244
245    Returns:
246        Graph: A graph node producing a ColorProfile.
247    """
248    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:
250def color_profile_p_n_g_s_r_g_b() -> Graph:
251    """Color Profile PNG sRGB
252
253    Creates a color profile that is the same one as PNG sRGB.
254
255    Returns:
256        Graph: A graph node producing a ColorProfile.
257    """
258    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:
260def color_profile_s_r_g_b() -> Graph:
261    """Color Profile sRGB
262
263    Creates an sRGB Color Profile
264
265    Returns:
266        Graph: A graph node producing a ColorProfile.
267    """
268    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:
270def composition_absolute_value(image) -> Graph:
271    """Composition Absolute Value
272
273    Takes the absolute value of all the pixels in the image.
274
275    Args:
276        image: Graph of Composition
277        
278
279    Returns:
280        Graph: A graph node producing a Composition.
281    """
282    image_parsed = parse_graph(image)
283    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:
285def composition_bilinear_interpolation(composition, size) -> Graph:
286    """Composition Scale Bilinear Interpolation
287
288    Uses the bilinear interpolation algorithm to scale an image recipe
289
290    Args:
291        composition: Graph of Composition
292        size: Graph of Vector2i
293        
294
295    Returns:
296        Graph: A graph node producing a Composition.
297    """
298    composition_parsed = parse_graph(composition)
299    size_parsed = parse_graph(size)
300    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:
302def composition_blend_add(foreground, background, foreground_transform) -> Graph:
303    """Composition Blend Add
304
305    Adds the foreground and background images together using additive blending.
306
307    Args:
308        foreground: Graph of Composition
309        background: Graph of Composition
310        foreground transform: Graph of Transform2
311        
312
313    Returns:
314        Graph: A graph node producing a Composition.
315    """
316    foreground_parsed = parse_graph(foreground)
317    background_parsed = parse_graph(background)
318    foreground_transform_parsed = parse_graph(foreground_transform)
319    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:
321def composition_blend_add_with_ok_lab(foreground, background, foreground_transform) -> Graph:
322    """Composition Blend Add with OkLab
323
324    Adds the foreground and background images together using additive blending in OkLab color space.
325
326    Args:
327        foreground: Graph of Composition
328        background: Graph of Composition
329        foreground transform: Graph of Transform2
330        
331
332    Returns:
333        Graph: A graph node producing a Composition.
334    """
335    foreground_parsed = parse_graph(foreground)
336    background_parsed = parse_graph(background)
337    foreground_transform_parsed = parse_graph(foreground_transform)
338    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:
340def composition_blend_alpha(foreground, background, foreground_transform) -> Graph:
341    """Composition Blend Alpha
342
343    Blends between the foreground and background using the alpha component of the foreground. 1 is foreground. 0 is background.
344
345    Args:
346        foreground: Graph of Composition
347        background: Graph of Composition
348        foreground transform: Graph of Transform2
349        
350
351    Returns:
352        Graph: A graph node producing a Composition.
353    """
354    foreground_parsed = parse_graph(foreground)
355    background_parsed = parse_graph(background)
356    foreground_transform_parsed = parse_graph(foreground_transform)
357    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:
359def composition_blend_alpha_with_ok_lab(foreground, background, foreground_transform) -> Graph:
360    """Composition Blend Alpha with OkLab
361
362    Blends between the foreground and background using the alpha component of the foreground in OkLab color space. 1 is foreground. 0 is background.
363
364    Args:
365        foreground: Graph of Composition
366        background: Graph of Composition
367        foreground transform: Graph of Transform2
368        
369
370    Returns:
371        Graph: A graph node producing a Composition.
372    """
373    foreground_parsed = parse_graph(foreground)
374    background_parsed = parse_graph(background)
375    foreground_transform_parsed = parse_graph(foreground_transform)
376    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:
378def composition_blend_divide(foreground, background, foreground_transform) -> Graph:
379    """Composition Blend Divide
380
381    Divides the background image by the foreground image using division blending.
382
383    Args:
384        foreground: Graph of Composition
385        background: Graph of Composition
386        foreground transform: Graph of Transform2
387        
388
389    Returns:
390        Graph: A graph node producing a Composition.
391    """
392    foreground_parsed = parse_graph(foreground)
393    background_parsed = parse_graph(background)
394    foreground_transform_parsed = parse_graph(foreground_transform)
395    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:
397def composition_blend_divide_with_ok_lab(foreground, background, foreground_transform) -> Graph:
398    """Composition Blend Divide with OkLab
399
400    Divides the background image by the foreground image using division blending in OkLab color space.
401
402    Args:
403        foreground: Graph of Composition
404        background: Graph of Composition
405        foreground transform: Graph of Transform2
406        
407
408    Returns:
409        Graph: A graph node producing a Composition.
410    """
411    foreground_parsed = parse_graph(foreground)
412    background_parsed = parse_graph(background)
413    foreground_transform_parsed = parse_graph(foreground_transform)
414    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:
416def composition_blend_max(foreground, background, foreground_transform) -> Graph:
417    """Composition Blend Max
418
419    Blends the foreground and background images using maximum value blending.
420
421    Args:
422        foreground: Graph of Composition
423        background: Graph of Composition
424        foreground transform: Graph of Transform2
425        
426
427    Returns:
428        Graph: A graph node producing a Composition.
429    """
430    foreground_parsed = parse_graph(foreground)
431    background_parsed = parse_graph(background)
432    foreground_transform_parsed = parse_graph(foreground_transform)
433    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:
435def composition_blend_max_with_ok_lab(foreground, background, foreground_transform) -> Graph:
436    """Composition Blend Max with OkLab
437
438    Blends the foreground and background images using maximum value blending in OkLab color space.
439
440    Args:
441        foreground: Graph of Composition
442        background: Graph of Composition
443        foreground transform: Graph of Transform2
444        
445
446    Returns:
447        Graph: A graph node producing a Composition.
448    """
449    foreground_parsed = parse_graph(foreground)
450    background_parsed = parse_graph(background)
451    foreground_transform_parsed = parse_graph(foreground_transform)
452    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:
454def composition_blend_min(foreground, background, foreground_transform) -> Graph:
455    """Composition Blend Min
456
457    Blends the foreground and background images using minimum blending, taking the minimum value for each pixel.
458
459    Args:
460        foreground: Graph of Composition
461        background: Graph of Composition
462        foreground transform: Graph of Transform2
463        
464
465    Returns:
466        Graph: A graph node producing a Composition.
467    """
468    foreground_parsed = parse_graph(foreground)
469    background_parsed = parse_graph(background)
470    foreground_transform_parsed = parse_graph(foreground_transform)
471    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:
473def composition_blend_min_with_ok_lab(foreground, background, foreground_transform) -> Graph:
474    """Composition Blend Min with OkLab
475
476    Blends the foreground and background images using minimum blending in OkLab color space, taking the minimum value for each pixel.
477
478    Args:
479        foreground: Graph of Composition
480        background: Graph of Composition
481        foreground transform: Graph of Transform2
482        
483
484    Returns:
485        Graph: A graph node producing a Composition.
486    """
487    foreground_parsed = parse_graph(foreground)
488    background_parsed = parse_graph(background)
489    foreground_transform_parsed = parse_graph(foreground_transform)
490    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:
492def composition_blend_multiply(foreground, background, foreground_transform) -> Graph:
493    """Composition Blend Multiply
494
495    Multiplies the foreground and background images together using multiply blending.
496
497    Args:
498        foreground: Graph of Composition
499        background: Graph of Composition
500        foreground transform: Graph of Transform2
501        
502
503    Returns:
504        Graph: A graph node producing a Composition.
505    """
506    foreground_parsed = parse_graph(foreground)
507    background_parsed = parse_graph(background)
508    foreground_transform_parsed = parse_graph(foreground_transform)
509    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:
511def composition_blend_multiply_with_ok_lab(foreground, background, foreground_transform) -> Graph:
512    """Composition Blend Multiply with OkLab
513
514    Multiplies the foreground and background images together using multiply blending in OkLab color space.
515
516    Args:
517        foreground: Graph of Composition
518        background: Graph of Composition
519        foreground transform: Graph of Transform2
520        
521
522    Returns:
523        Graph: A graph node producing a Composition.
524    """
525    foreground_parsed = parse_graph(foreground)
526    background_parsed = parse_graph(background)
527    foreground_transform_parsed = parse_graph(foreground_transform)
528    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:
530def composition_blend_subtract(foreground, background, foreground_transform) -> Graph:
531    """Composition Blend Subtract
532
533    Subtracts the foreground image from the background image using subtractive blending.
534
535    Args:
536        foreground: Graph of Composition
537        background: Graph of Composition
538        foreground transform: Graph of Transform2
539        
540
541    Returns:
542        Graph: A graph node producing a Composition.
543    """
544    foreground_parsed = parse_graph(foreground)
545    background_parsed = parse_graph(background)
546    foreground_transform_parsed = parse_graph(foreground_transform)
547    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:
549def composition_blend_subtract_with_ok_lab(foreground, background, foreground_transform) -> Graph:
550    """Composition Blend Subtract with OkLab
551
552    Subtracts the foreground image from the background image using subtractive blending in OkLab color space.
553
554    Args:
555        foreground: Graph of Composition
556        background: Graph of Composition
557        foreground transform: Graph of Transform2
558        
559
560    Returns:
561        Graph: A graph node producing a Composition.
562    """
563    foreground_parsed = parse_graph(foreground)
564    background_parsed = parse_graph(background)
565    foreground_transform_parsed = parse_graph(foreground_transform)
566    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_factor(foreground, background, factor) -> Graph:
568def composition_blend_with_factor(foreground, background, factor) -> Graph:
569    """Composition Blend with Factor
570
571    Blends the foreground and background compositions together using a factor. Internally, this modifies the alpha of the foreground by multiplying by the factor on the alpha component and then performing an alpha blend.
572
573    Args:
574        foreground: Graph of Composition
575        background: Graph of Composition
576        factor: Graph of Composition
577        
578
579    Returns:
580        Graph: A graph node producing a Composition.
581    """
582    foreground_parsed = parse_graph(foreground)
583    background_parsed = parse_graph(background)
584    factor_parsed = parse_graph(factor)
585    return composition_blend_with_factor_internal(foreground_parsed, background_parsed, factor_parsed)

Composition Blend with Factor

Blends the foreground and background compositions together using a factor. Internally, this modifies the alpha of the foreground by multiplying by the factor on the alpha component and then performing an alpha blend.

Args: foreground: Graph of Composition background: Graph of Composition factor: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_blend_with_mask(foreground, background, mask) -> Graph:
587def composition_blend_with_mask(foreground, background, mask) -> Graph:
588    """Composition Blend with Mask
589
590    Given a mask. Blends between the foreground and background using the r component of the mask. 1 is foreground. 0 is background.
591
592    Args:
593        foreground: Graph of Composition
594        background: Graph of Composition
595        mask: Graph of Composition
596        
597
598    Returns:
599        Graph: A graph node producing a Composition.
600    """
601    foreground_parsed = parse_graph(foreground)
602    background_parsed = parse_graph(background)
603    mask_parsed = parse_graph(mask)
604    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:
606def composition_box_blur(composition, dimension) -> Graph:
607    """Composition Box Blur
608
609    Applies a box blur to an image. Dimension is the size. 1 corresponding to 3x3, 2 5x5 and so on.
610
611    Args:
612        composition: Graph of Composition
613        dimension: Graph of Int
614        
615
616    Returns:
617        Graph: A graph node producing a Composition.
618    """
619    composition_parsed = parse_graph(composition)
620    dimension_parsed = parse_int_graph(dimension)
621    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:
623def composition_box_blur_with_ok_lab(composition, dimension) -> Graph:
624    """Composition Box Blur with OkLab
625
626    Applies a box blur to an image in OkLab color space. Dimension is the size. 1 corresponding to 3x3, 2 5x5 and so on.
627
628    Args:
629        composition: Graph of Composition
630        dimension: Graph of Int
631        
632
633    Returns:
634        Graph: A graph node producing a Composition.
635    """
636    composition_parsed = parse_graph(composition)
637    dimension_parsed = parse_int_graph(dimension)
638    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:
640def composition_brightness_adjust(composition, scale) -> Graph:
641    """Composition Brightness Adjust
642
643    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.
644
645    Args:
646        composition: Graph of Composition
647        scale: Graph of Float
648        
649
650    Returns:
651        Graph: A graph node producing a Composition.
652    """
653    composition_parsed = parse_graph(composition)
654    scale_parsed = parse_float_graph(scale)
655    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:
657def composition_chroma_offset(composition, offset) -> Graph:
658    """Composition Chroma Offset
659
660    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.
661
662    Args:
663        composition: Graph of Composition
664        offset: Graph of Vector2f
665        
666
667    Returns:
668        Graph: A graph node producing a Composition.
669    """
670    composition_parsed = parse_graph(composition)
671    offset_parsed = parse_graph(offset)
672    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:
674def composition_color_convert(composition, color_profile) -> Graph:
675    """Composition Color Convert
676
677    Converts a Composition from one color space to another.
678
679    Args:
680        composition: Graph of Composition
681        color profile: Graph of ColorProfile
682        
683
684    Returns:
685        Graph: A graph node producing a Composition.
686    """
687    composition_parsed = parse_graph(composition)
688    color_profile_parsed = parse_graph(color_profile)
689    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:
691def composition_color_invert(composition) -> Graph:
692    """Composition Color Invert
693
694    Applies a color invert operation to a Composition. Taking 1 and subtracting each RGB operation against it.
695
696    Args:
697        composition: Graph of Composition
698        
699
700    Returns:
701        Graph: A graph node producing a Composition.
702    """
703    composition_parsed = parse_graph(composition)
704    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:
706def composition_color_profile(composition) -> Graph:
707    """Composition Color Profile
708
709    Gets the color profile associated with a Composition
710
711    Args:
712        composition: Graph of Composition
713        
714
715    Returns:
716        Graph: A graph node producing a ColorProfile.
717    """
718    composition_parsed = parse_graph(composition)
719    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:
721def composition_color_rect(color, color_profile, size) -> Graph:
722    """Composition Color Rect
723
724    Given a color and it's color proile. Creates a rectangle Composition of that color.
725
726    Args:
727        color: Graph of RGBAColor
728        color profile: Graph of ColorProfile
729        size: Graph of Vector2i
730        
731
732    Returns:
733        Graph: A graph node producing a Composition.
734    """
735    color_parsed = parse_graph(color)
736    color_profile_parsed = parse_graph(color_profile)
737    size_parsed = parse_graph(size)
738    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:
740def composition_color_threshold(composition, threshold) -> Graph:
741    """Composition Color Threshold
742
743    Applies a color threshold to a Composition
744
745    Args:
746        composition: Graph of Composition
747        threshold: Graph of Float
748        
749
750    Returns:
751        Graph: A graph node producing a Composition.
752    """
753    composition_parsed = parse_graph(composition)
754    threshold_parsed = parse_float_graph(threshold)
755    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_contrast_adjustment(composition, contrast) -> Graph:
757def composition_contrast_adjustment(composition, contrast) -> Graph:
758    """Composition Contrast Adjustment
759
760    Adjusts the contrast of a Composition
761
762    Args:
763        composition: Graph of Composition
764        contrast: Graph of Float
765        
766
767    Returns:
768        Graph: A graph node producing a Composition.
769    """
770    composition_parsed = parse_graph(composition)
771    contrast_parsed = parse_float_graph(contrast)
772    return composition_contrast_adjustment_internal(composition_parsed, contrast_parsed)

Composition Contrast Adjustment

Adjusts the contrast of a Composition

Args: composition: Graph of Composition contrast: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_convolution(composition, kernel, kernel_width, kernel_height) -> Graph:
774def composition_convolution(composition, kernel, kernel_width, kernel_height) -> Graph:
775    """Composition Convolution
776
777    Performs a convolution on an composition
778
779    Args:
780        The image to perform the convolution on: Graph of Composition
781        kernel: Graph of FloatList
782        kernel width: Graph of Int
783        kernel height: Graph of Int
784        
785
786    Returns:
787        Graph: A graph node producing a Composition.
788    """
789    composition_parsed = parse_graph(composition)
790    kernel_parsed = parse_graph(kernel)
791    kernel_width_parsed = parse_int_graph(kernel_width)
792    kernel_height_parsed = parse_int_graph(kernel_height)
793    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:
795def composition_crop(composition, rect) -> Graph:
796    """Composition Crop
797
798    Applies a crop to a Composition
799
800    Args:
801        composition: Graph of Composition
802        rect: Graph of Bounds2i
803        
804
805    Returns:
806        Graph: A graph node producing a Composition.
807    """
808    composition_parsed = parse_graph(composition)
809    rect_parsed = parse_graph(rect)
810    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:
812def composition_custom_transformer_shader(composition, function_body, helpers, input_color_profile, output_color_profile, inputs, needs_sample_capability) -> Graph:
813    """Composition Custom Transformer Shader
814
815    Given an input, runs a custom defined shader over that input.
816
817    Args:
818        composition: Graph of Composition
819        function body: Graph of String
820        helpers: Graph of String
821        input color profile: Graph of ColorProfile
822        output color profile: Graph of ColorProfile
823        inputs: Graph of Dictionary
824        needs sample capability: Graph of Bool
825        
826
827    Returns:
828        Graph: A graph node producing a Composition.
829    """
830    composition_parsed = parse_graph(composition)
831    function_body_parsed = parse_string_graph(function_body)
832    helpers_parsed = parse_string_graph(helpers)
833    input_color_profile_parsed = parse_graph(input_color_profile)
834    output_color_profile_parsed = parse_graph(output_color_profile)
835    inputs_parsed = parse_graph(inputs)
836    needs_sample_capability_parsed = parse_bool_graph(needs_sample_capability)
837    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:
839def composition_face_landmarks(composition) -> Graph:
840    """Composition Face Landmarks
841
842    Given an input image, returns the 468 3D face landmarks.
843
844    Args:
845        composition: Graph of Composition
846        
847
848    Returns:
849        Graph: A graph node producing a Point3fList.
850    """
851    composition_parsed = parse_graph(composition)
852    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:
854def composition_flip_horizontal(composition) -> Graph:
855    """Composition Flip Horizontal
856
857    Flips the image along the horizontal axis
858
859    Args:
860        composition: Graph of Composition
861        
862
863    Returns:
864        Graph: A graph node producing a Composition.
865    """
866    composition_parsed = parse_graph(composition)
867    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:
869def composition_flip_vertical(composition) -> Graph:
870    """Composition Flip Vertical
871
872    Flips the image vertically
873
874    Args:
875        composition: Graph of Composition
876        
877
878    Returns:
879        Graph: A graph node producing a Composition.
880    """
881    composition_parsed = parse_graph(composition)
882    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_asset(asset_id) -> Graph:
884def composition_from_asset(asset_id) -> Graph:
885    """Composition from Asset
886
887    Creates a composition from an asset in your catalog.
888
889    Args:
890        asset id: Graph of Int
891        
892
893    Returns:
894        Graph: A graph node producing a Composition.
895    """
896    asset_id_parsed = parse_int_graph(asset_id)
897    return composition_from_asset_internal(asset_id_parsed)

Composition from Asset

Creates a composition from an asset in your catalog.

Args: asset id: Graph of Int

Returns: Graph: A graph node producing a Composition.

def composition_from_image(image) -> Graph:
899def composition_from_image(image) -> Graph:
900    """Composition from Image
901
902    Creates an composition out of an image
903
904    Args:
905        image: Graph of Image
906        
907
908    Returns:
909        Graph: A graph node producing a Composition.
910    """
911    image_parsed = parse_graph(image)
912    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:
914def composition_gaussian_blur(composition, sigma) -> Graph:
915    """Composition Gaussian Blur
916
917    Applies a gaussian blur to an image. Sigma controls the blur intensity.
918
919    Args:
920        composition: Graph of Composition
921        sigma: Graph of Float
922        
923
924    Returns:
925        Graph: A graph node producing a Composition.
926    """
927    composition_parsed = parse_graph(composition)
928    sigma_parsed = parse_float_graph(sigma)
929    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:
931def composition_gaussian_blur_with_ok_lab(composition, sigma) -> Graph:
932    """Composition Gaussian Blur with OkLab
933
934    Applies a gaussian blur to an image in OkLab color space. Sigma controls the blur intensity.
935
936    Args:
937        composition: Graph of Composition
938        sigma: Graph of Float
939        
940
941    Returns:
942        Graph: A graph node producing a Composition.
943    """
944    composition_parsed = parse_graph(composition)
945    sigma_parsed = parse_float_graph(sigma)
946    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:
948def composition_grayscale(composition) -> Graph:
949    """Composition Grayscale
950
951    Applies grayscale to a Composition
952
953    Args:
954        composition: Graph of Composition
955        
956
957    Returns:
958        Graph: A graph node producing a Composition.
959    """
960    composition_parsed = parse_graph(composition)
961    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:
963def composition_l_curve(composition, l_curve) -> Graph:
964    """Composition Lightness Curve
965
966    Applies a curve to the L component in an OkLab color. Adjusting the lightness of the image.
967
968    Args:
969        composition: Graph of Composition
970        l curve: Graph of Curve
971        
972
973    Returns:
974        Graph: A graph node producing a Composition.
975    """
976    composition_parsed = parse_graph(composition)
977    l_curve_parsed = parse_graph(l_curve)
978    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:
 980def 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:
 981    """Composition RGBA Linear Transform
 982
 983    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.
 984
 985    Args:
 986        composition: Graph of Composition
 987        entry 0,0: Graph of Float
 988        entry 0,1: Graph of Float
 989        entry 0,2: Graph of Float
 990        entry 0,3: Graph of Float
 991        entry 1,0: Graph of Float
 992        entry 1,1: Graph of Float
 993        entry 1,2: Graph of Float
 994        entry 1,3: Graph of Float
 995        entry 2,0: Graph of Float
 996        entry 2,1: Graph of Float
 997        entry 2,2: Graph of Float
 998        entry 2,3: Graph of Float
 999        entry 3,0: Graph of Float
1000        entry 3,1: Graph of Float
1001        entry 3,2: Graph of Float
1002        entry 3,3: Graph of Float
1003        
1004
1005    Returns:
1006        Graph: A graph node producing a Composition.
1007    """
1008    composition_parsed = parse_graph(composition)
1009    entry_0_0_parsed = parse_float_graph(entry_0_0)
1010    entry_0_1_parsed = parse_float_graph(entry_0_1)
1011    entry_0_2_parsed = parse_float_graph(entry_0_2)
1012    entry_0_3_parsed = parse_float_graph(entry_0_3)
1013    entry_1_0_parsed = parse_float_graph(entry_1_0)
1014    entry_1_1_parsed = parse_float_graph(entry_1_1)
1015    entry_1_2_parsed = parse_float_graph(entry_1_2)
1016    entry_1_3_parsed = parse_float_graph(entry_1_3)
1017    entry_2_0_parsed = parse_float_graph(entry_2_0)
1018    entry_2_1_parsed = parse_float_graph(entry_2_1)
1019    entry_2_2_parsed = parse_float_graph(entry_2_2)
1020    entry_2_3_parsed = parse_float_graph(entry_2_3)
1021    entry_3_0_parsed = parse_float_graph(entry_3_0)
1022    entry_3_1_parsed = parse_float_graph(entry_3_1)
1023    entry_3_2_parsed = parse_float_graph(entry_3_2)
1024    entry_3_3_parsed = parse_float_graph(entry_3_3)
1025    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:
1027def composition_monet_women_with_parasol() -> Graph:
1028    """Monet's Women with a Parasol
1029
1030    Creates a composition from Monet's "Women with a Parasol" painting. Used frequently as a test asset.
1031
1032    Returns:
1033        Graph: A graph node producing a Composition.
1034    """
1035    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:
1037def composition_morphological_max(composition, dimension) -> Graph:
1038    """Composition Morphological Max
1039
1040    Apples a morphological max operation.
1041
1042    Args:
1043        composition: Graph of Composition
1044        dimension: Graph of Int
1045        
1046
1047    Returns:
1048        Graph: A graph node producing a Composition.
1049    """
1050    composition_parsed = parse_graph(composition)
1051    dimension_parsed = parse_int_graph(dimension)
1052    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:
1054def composition_morphological_min(composition, dimension) -> Graph:
1055    """Composition Morphological Min
1056
1057    Apples a morphological min operation.
1058
1059    Args:
1060        composition: Graph of Composition
1061        dimension: Graph of Int
1062        
1063
1064    Returns:
1065        Graph: A graph node producing a Composition.
1066    """
1067    composition_parsed = parse_graph(composition)
1068    dimension_parsed = parse_int_graph(dimension)
1069    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:
1071def composition_painter(painter) -> Graph:
1072    """Composition Painter
1073
1074    Creates a composition from a painter.
1075
1076    Args:
1077        painter: Graph of Painter
1078        
1079
1080    Returns:
1081        Graph: A graph node producing a Composition.
1082    """
1083    painter_parsed = parse_graph(painter)
1084    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:
1086def composition_passthrough(value) -> Graph:
1087    """Composition Passthrough
1088
1089    Responds with the value provided. Doing nothing to it.
1090
1091    Args:
1092        value: Graph of Composition
1093        
1094
1095    Returns:
1096        Graph: A graph node producing a Composition.
1097    """
1098    value_parsed = parse_graph(value)
1099    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:
1101def composition_perceptual_difference(composition, color) -> Graph:
1102    """Composition Perceptual Difference
1103
1104    Calculates the difference for each pixel to the OkLab color specified. Each r, g, b and a component in the output is the difference.
1105
1106    Args:
1107        composition: Graph of Composition
1108        color: Graph of OkLabColor
1109        
1110
1111    Returns:
1112        Graph: A graph node producing a Composition.
1113    """
1114    composition_parsed = parse_graph(composition)
1115    color_parsed = parse_graph(color)
1116    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_pixelate(composition, pixel_size) -> Graph:
1118def composition_pixelate(composition, pixel_size) -> Graph:
1119    """Composition Pixelate
1120
1121    Applies a pixelation effect to a composition.
1122
1123    Args:
1124        composition: Graph of Composition
1125        pixel size: Graph of Int
1126        
1127
1128    Returns:
1129        Graph: A graph node producing a Composition.
1130    """
1131    composition_parsed = parse_graph(composition)
1132    pixel_size_parsed = parse_int_graph(pixel_size)
1133    return composition_pixelate_internal(composition_parsed, pixel_size_parsed)

Composition Pixelate

Applies a pixelation effect to a composition.

Args: composition: Graph of Composition pixel size: Graph of Int

Returns: Graph: A graph node producing a Composition.

def composition_r_g_b_curve(composition, r_curve, g_curve, b_curve) -> Graph:
1135def composition_r_g_b_curve(composition, r_curve, g_curve, b_curve) -> Graph:
1136    """Composition RGB Curve
1137
1138    Applies a curve to the R, G, and B components
1139
1140    Args:
1141        composition: Graph of Composition
1142        r curve: Graph of Curve
1143        g curve: Graph of Curve
1144        b curve: Graph of Curve
1145        
1146
1147    Returns:
1148        Graph: A graph node producing a Composition.
1149    """
1150    composition_parsed = parse_graph(composition)
1151    r_curve_parsed = parse_graph(r_curve)
1152    g_curve_parsed = parse_graph(g_curve)
1153    b_curve_parsed = parse_graph(b_curve)
1154    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:
1156def composition_render_to_image(composition) -> Graph:
1157    """Composition Render to Image
1158
1159    Renders a Composition to an Image
1160
1161    Args:
1162        composition: Graph of Composition
1163        
1164
1165    Returns:
1166        Graph: A graph node producing a Image.
1167    """
1168    composition_parsed = parse_graph(composition)
1169    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:
1171def composition_rotate180(composition) -> Graph:
1172    """Composition Rotate 180
1173
1174    Rotates the image 180 degrees
1175
1176    Args:
1177        composition: Graph of Composition
1178        
1179
1180    Returns:
1181        Graph: A graph node producing a Composition.
1182    """
1183    composition_parsed = parse_graph(composition)
1184    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:
1186def composition_rotate90_clockwise(composition) -> Graph:
1187    """Composition Rotate 90 Clockwise
1188
1189    Rotates the image 90 degrees clockwise
1190
1191    Args:
1192        composition: Graph of Composition
1193        
1194
1195    Returns:
1196        Graph: A graph node producing a Composition.
1197    """
1198    composition_parsed = parse_graph(composition)
1199    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:
1201def composition_rotate90_counter_clockwise(composition) -> Graph:
1202    """Composition Rotate 90 Counter Clockwise
1203
1204    Rotates the image 90 degrees counter-clockwise
1205
1206    Args:
1207        composition: Graph of Composition
1208        
1209
1210    Returns:
1211        Graph: A graph node producing a Composition.
1212    """
1213    composition_parsed = parse_graph(composition)
1214    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:
1216def composition_saturation_adjust(composition, scale) -> Graph:
1217    """Composition Saturation Adjust
1218
1219    Adjusts the saturation of an image by a given factor. Internally, scales the chroma components in OkLab color space.
1220
1221    Args:
1222        composition: Graph of Composition
1223        scale: Graph of Float
1224        
1225
1226    Returns:
1227        Graph: A graph node producing a Composition.
1228    """
1229    composition_parsed = parse_graph(composition)
1230    scale_parsed = parse_float_graph(scale)
1231    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:
1233def composition_scale_nearest_neighbor(composition, size) -> Graph:
1234    """Composition Scale Nearest Neighbor
1235
1236    Uses the nearest neighbor algorithm to scale an image recipe
1237
1238    Args:
1239        composition: Graph of Composition
1240        size: Graph of Vector2i
1241        
1242
1243    Returns:
1244        Graph: A graph node producing a Composition.
1245    """
1246    composition_parsed = parse_graph(composition)
1247    size_parsed = parse_graph(size)
1248    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:
1250def composition_segment_facial_skin(composition) -> Graph:
1251    """Composition Segment Facial Skin
1252
1253    Given an input image. Returns a mask that segments out the facial skin in the image.
1254
1255    Args:
1256        composition: Graph of Composition
1257        
1258
1259    Returns:
1260        Graph: A graph node producing a Composition.
1261    """
1262    composition_parsed = parse_graph(composition)
1263    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:
1265def composition_segment_mouth_lips_eyes_eyebrows(composition) -> Graph:
1266    """Composition Segment Mouth Lips Eyes Eyebrows
1267
1268    Given an input image, returns a mask (all white) of the mouth, lips, eyes, and eyebrows area.
1269
1270    Args:
1271        composition: Graph of Composition
1272        
1273
1274    Returns:
1275        Graph: A graph node producing a Composition.
1276    """
1277    composition_parsed = parse_graph(composition)
1278    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:
1280def composition_segment_person(composition) -> Graph:
1281    """Composition Segment Person
1282
1283    Given an input image. Returns a mask that segments out the person in the image.
1284
1285    Args:
1286        composition: Graph of Composition
1287        
1288
1289    Returns:
1290        Graph: A graph node producing a Composition.
1291    """
1292    composition_parsed = parse_graph(composition)
1293    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:
1295def composition_segment_under_right_eye(composition) -> Graph:
1296    """Composition Segment Under Right Eye
1297
1298    Given an input image, returns a mask (all white) of the area under the right eye.
1299
1300    Args:
1301        composition: Graph of Composition
1302        
1303
1304    Returns:
1305        Graph: A graph node producing a Composition.
1306    """
1307    composition_parsed = parse_graph(composition)
1308    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_sharpen(composition, radius, strength) -> Graph:
1310def composition_sharpen(composition, radius, strength) -> Graph:
1311    """Composition Sharpen
1312
1313    Applies a sharpen filter to the composition.
1314
1315    Args:
1316        composition: Graph of Composition
1317        radius: Graph of Float
1318        strength: Graph of Float
1319        
1320
1321    Returns:
1322        Graph: A graph node producing a Composition.
1323    """
1324    composition_parsed = parse_graph(composition)
1325    radius_parsed = parse_float_graph(radius)
1326    strength_parsed = parse_float_graph(strength)
1327    return composition_sharpen_internal(composition_parsed, radius_parsed, strength_parsed)

Composition Sharpen

Applies a sharpen filter to the composition.

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

Returns: Graph: A graph node producing a Composition.

def composition_size(composition) -> Graph:
1329def composition_size(composition) -> Graph:
1330    """Composition Size
1331
1332    Gets the resulting size of a Composition
1333
1334    Args:
1335        composition: Graph of Composition
1336        
1337
1338    Returns:
1339        Graph: A graph node producing a Vector2i.
1340    """
1341    composition_parsed = parse_graph(composition)
1342    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:
1344def composition_sobel_edge_detection(composition) -> Graph:
1345    """Composition Sobel Edge Detection
1346
1347    Applies Sobel edge detection to an image.
1348
1349    Args:
1350        composition: Graph of Composition
1351        
1352
1353    Returns:
1354        Graph: A graph node producing a Composition.
1355    """
1356    composition_parsed = parse_graph(composition)
1357    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_swirl(composition, center, radius, amount) -> Graph:
1359def composition_swirl(composition, center, radius, amount) -> Graph:
1360    """Composition Swirl
1361
1362    Applies a swirl distortion to this composition
1363
1364    Args:
1365        composition: Graph of Composition
1366        center: Graph of Vector2f
1367        radius: Graph of Float
1368        amount: Graph of Float
1369        
1370
1371    Returns:
1372        Graph: A graph node producing a Composition.
1373    """
1374    composition_parsed = parse_graph(composition)
1375    center_parsed = parse_graph(center)
1376    radius_parsed = parse_float_graph(radius)
1377    amount_parsed = parse_float_graph(amount)
1378    return composition_swirl_internal(composition_parsed, center_parsed, radius_parsed, amount_parsed)

Composition Swirl

Applies a swirl distortion to this composition

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

Returns: Graph: A graph node producing a Composition.

def composition_target_white_kelvin(composition, kelvin) -> Graph:
1380def composition_target_white_kelvin(composition, kelvin) -> Graph:
1381    """Composition Target White Kelvin
1382
1383    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.
1384
1385    Args:
1386        composition: Graph of Composition
1387        kelvin: Graph of Float
1388        
1389
1390    Returns:
1391        Graph: A graph node producing a Composition.
1392    """
1393    composition_parsed = parse_graph(composition)
1394    kelvin_parsed = parse_float_graph(kelvin)
1395    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:
1397def composition_to_ok_lab_hist(composition) -> Graph:
1398    """Composition to OkLab Histogram
1399
1400    Creates an OkLab Histogram from the colors in a Composition.
1401
1402    Args:
1403        composition: Graph of Composition
1404        
1405
1406    Returns:
1407        Graph: A graph node producing a OkLabHist.
1408    """
1409    composition_parsed = parse_graph(composition)
1410    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:
1412def composition_uniform_lightness(composition, lightness) -> Graph:
1413    """Composition Uniform Lightness
1414
1415    Sets a uniform lightness to the entire image by using OkLab and setting the lightness to a constant number.
1416
1417    Args:
1418        composition: Graph of Composition
1419        lightness: Graph of Float
1420        
1421
1422    Returns:
1423        Graph: A graph node producing a Composition.
1424    """
1425    composition_parsed = parse_graph(composition)
1426    lightness_parsed = parse_float_graph(lightness)
1427    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:
1429def composition_vignette(composition, radius, softness, strength) -> Graph:
1430    """Composition Vignette
1431
1432    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.
1433
1434    Args:
1435        composition: Graph of Composition
1436        radius: Graph of Float
1437        softness: Graph of Float
1438        strength: Graph of Float
1439        
1440
1441    Returns:
1442        Graph: A graph node producing a Composition.
1443    """
1444    composition_parsed = parse_graph(composition)
1445    radius_parsed = parse_float_graph(radius)
1446    softness_parsed = parse_float_graph(softness)
1447    strength_parsed = parse_float_graph(strength)
1448    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 composition_zoom_blur(composition, center, strength) -> Graph:
1450def composition_zoom_blur(composition, center, strength) -> Graph:
1451    """Composition Zoom Blur
1452
1453    Performs a zoom blur on this composition
1454
1455    Args:
1456        composition: Graph of Composition
1457        center: Graph of Vector2f
1458        strength: Graph of Float
1459        
1460
1461    Returns:
1462        Graph: A graph node producing a Composition.
1463    """
1464    composition_parsed = parse_graph(composition)
1465    center_parsed = parse_graph(center)
1466    strength_parsed = parse_float_graph(strength)
1467    return composition_zoom_blur_internal(composition_parsed, center_parsed, strength_parsed)

Composition Zoom Blur

Performs a zoom blur on this composition

Args: composition: Graph of Composition center: Graph of Vector2f strength: Graph of Float

Returns: Graph: A graph node producing a Composition.

def curve_evaluate(curve, input) -> Graph:
1469def curve_evaluate(curve, input) -> Graph:
1470    """Curve Evaluate
1471
1472    Evaluates a curve at a given input value.
1473
1474    Args:
1475        curve: Graph of Curve
1476        input: Graph of Float
1477        
1478
1479    Returns:
1480        Graph: A graph node producing a Float.
1481    """
1482    curve_parsed = parse_graph(curve)
1483    input_parsed = parse_float_graph(input)
1484    return curve_evaluate_internal(curve_parsed, input_parsed)

Curve Evaluate

Evaluates a curve at a given input value.

Args: curve: Graph of Curve input: Graph of Float

Returns: Graph: A graph node producing a Float.

def curve_gamma(gamma) -> Graph:
1486def curve_gamma(gamma) -> Graph:
1487    """Curve Gamma
1488
1489    A gamma curve. The gamma parameter corresponding to y=x^gamma.
1490
1491    Args:
1492        gamma: Graph of Float
1493        
1494
1495    Returns:
1496        Graph: A graph node producing a Curve.
1497    """
1498    gamma_parsed = parse_float_graph(gamma)
1499    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:
1501def curve_identity() -> Graph:
1502    """Curve Identity
1503
1504    An identity curve, y=x
1505
1506    Returns:
1507        Graph: A graph node producing a Curve.
1508    """
1509    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:
1511def curve_pivoted_sigmoid(pivot, slope) -> Graph:
1512    """Curve Pivoted Sigmoid
1513
1514    A pivoted sigmoid contrast curve that anchors at the pivot and smoothly compresses shadows and highlights, with a slope parameter controlling midtone contrast.
1515
1516    Args:
1517        pivot: Graph of Float
1518        slope: Graph of Float
1519        
1520
1521    Returns:
1522        Graph: A graph node producing a Curve.
1523    """
1524    pivot_parsed = parse_float_graph(pivot)
1525    slope_parsed = parse_float_graph(slope)
1526    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:
1528def curve_s_curve(pivot, slope, toe, shoulder) -> Graph:
1529    """Curve S
1530
1531    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.
1532
1533    Args:
1534        pivot: Graph of Float
1535        slope: Graph of Float
1536        toe: Graph of Float
1537        shoulder: Graph of Float
1538        
1539
1540    Returns:
1541        Graph: A graph node producing a Curve.
1542    """
1543    pivot_parsed = parse_float_graph(pivot)
1544    slope_parsed = parse_float_graph(slope)
1545    toe_parsed = parse_float_graph(toe)
1546    shoulder_parsed = parse_float_graph(shoulder)
1547    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:
1549def dictionary_create() -> Graph:
1550    """Dictionary Create
1551
1552    Creates a new dictionary
1553
1554    Returns:
1555        Graph: A graph node producing a Dictionary.
1556    """
1557    return dictionary_create_internal()

Dictionary Create

Creates a new dictionary

Returns: Graph: A graph node producing a Dictionary.

def file_convert_m_p4_to_animated_web_p(mp4_byte, frame_rate) -> Graph:
1559def file_convert_m_p4_to_animated_web_p(mp4_byte, frame_rate) -> Graph:
1560    """File Convert MP4 to GIF
1561
1562    Takes an MP4 file and converts it to a GIF file. Returns a local file path to the converted GIF.
1563
1564    Args:
1565        mp4 bytes: Graph of ByteList
1566        frame rate: Graph of Int
1567        
1568
1569    Returns:
1570        Graph: A graph node producing a ByteList.
1571    """
1572    mp4_byte_parsed = parse_graph(mp4_byte)
1573    frame_rate_parsed = parse_int_graph(frame_rate)
1574    return file_convert_m_p4_to_animated_web_p_internal(mp4_byte_parsed, frame_rate_parsed)

File Convert MP4 to GIF

Takes an MP4 file and converts it to a GIF file. Returns a local file path to the converted GIF.

Args: mp4 bytes: Graph of ByteList frame rate: Graph of Int

Returns: Graph: A graph node producing a ByteList.

def file_convert_m_p4_to_gif(mp4_byte, frame_rate) -> Graph:
1576def file_convert_m_p4_to_gif(mp4_byte, frame_rate) -> Graph:
1577    """File Convert MP4 to GIF
1578
1579    Takes an MP4 file and converts it to a GIF file. Returns a local file path to the converted GIF.
1580
1581    Args:
1582        mp4 bytes: Graph of ByteList
1583        frame rate: Graph of Int
1584        
1585
1586    Returns:
1587        Graph: A graph node producing a ByteList.
1588    """
1589    mp4_byte_parsed = parse_graph(mp4_byte)
1590    frame_rate_parsed = parse_int_graph(frame_rate)
1591    return file_convert_m_p4_to_gif_internal(mp4_byte_parsed, frame_rate_parsed)

File Convert MP4 to GIF

Takes an MP4 file and converts it to a GIF file. Returns a local file path to the converted GIF.

Args: mp4 bytes: Graph of ByteList frame rate: Graph of Int

Returns: Graph: A graph node producing a ByteList.

def fill_custom(function_body, helpers, inputs) -> Graph:
1593def fill_custom(function_body, helpers, inputs) -> Graph:
1594    """Fill Custom
1595
1596    Creates a fill with a custom shader.
1597
1598    Args:
1599        function body: Graph of String
1600        helpers: Graph of String
1601        inputs: Graph of Dictionary
1602        
1603
1604    Returns:
1605        Graph: A graph node producing a Fill.
1606    """
1607    function_body_parsed = parse_string_graph(function_body)
1608    helpers_parsed = parse_string_graph(helpers)
1609    inputs_parsed = parse_graph(inputs)
1610    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:
1612def fill_solid(color) -> Graph:
1613    """Fill Solid
1614
1615    Creates a fill with a solid color.
1616
1617    Args:
1618        color: Graph of RGBAColor
1619        
1620
1621    Returns:
1622        Graph: A graph node producing a Fill.
1623    """
1624    color_parsed = parse_graph(color)
1625    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:
1627def float_add(float1, float2) -> Graph:
1628    """Float Add
1629
1630    Adds two floats together.
1631
1632    Args:
1633        float1: Graph of Float
1634        float2: Graph of Float
1635        
1636
1637    Returns:
1638        Graph: A graph node producing a Float.
1639    """
1640    float1_parsed = parse_float_graph(float1)
1641    float2_parsed = parse_float_graph(float2)
1642    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:
1644def float_add_to_dictionary(dictionary, key, value) -> Graph:
1645    """Float Add To Dictionary
1646
1647    Adds a Float to a Dictionary
1648
1649    Args:
1650        dictionary: Graph of Dictionary
1651        key: Graph of String
1652        value: Graph of Float
1653        
1654
1655    Returns:
1656        Graph: A graph node producing a Dictionary.
1657    """
1658    dictionary_parsed = parse_graph(dictionary)
1659    key_parsed = parse_string_graph(key)
1660    value_parsed = parse_float_graph(value)
1661    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:
1663def float_cos(angle) -> Graph:
1664    """Float Cosine
1665
1666    Computes the cosine of a float (in radians).
1667
1668    Args:
1669        Angle in radians: Graph of Float
1670        
1671
1672    Returns:
1673        Graph: A graph node producing a Float.
1674    """
1675    angle_parsed = parse_float_graph(angle)
1676    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:
1678def float_divide(float1, float2) -> Graph:
1679    """Float Divide
1680
1681    Adds two floats together.
1682
1683    Args:
1684        float1: Graph of Float
1685        float2: Graph of Float
1686        
1687
1688    Returns:
1689        Graph: A graph node producing a Float.
1690    """
1691    float1_parsed = parse_float_graph(float1)
1692    float2_parsed = parse_float_graph(float2)
1693    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_equals(float_1, float_2) -> Graph:
1695def float_equals(float_1, float_2) -> Graph:
1696    """Float Equals
1697
1698    Checks if two floats are equal
1699
1700    Args:
1701        First Float: Graph of Float
1702        Second Float: Graph of Float
1703        
1704
1705    Returns:
1706        Graph: A graph node producing a Bool.
1707    """
1708    float_1_parsed = parse_float_graph(float_1)
1709    float_2_parsed = parse_float_graph(float_2)
1710    return float_equals_internal(float_1_parsed, float_2_parsed)

Float Equals

Checks if two floats are equal

Args: First Float: Graph of Float Second Float: Graph of Float

Returns: Graph: A graph node producing a Bool.

def float_greater_than(float_1, float_2) -> Graph:
1712def float_greater_than(float_1, float_2) -> Graph:
1713    """Float Greater Than
1714
1715    Checks if the first float is greater than the second float
1716
1717    Args:
1718        First Float: Graph of Float
1719        Second Float: Graph of Float
1720        
1721
1722    Returns:
1723        Graph: A graph node producing a Bool.
1724    """
1725    float_1_parsed = parse_float_graph(float_1)
1726    float_2_parsed = parse_float_graph(float_2)
1727    return float_greater_than_internal(float_1_parsed, float_2_parsed)

Float Greater Than

Checks if the first float is greater than the second float

Args: First Float: Graph of Float Second Float: Graph of Float

Returns: Graph: A graph node producing a Bool.

def float_greater_than_or_equal(float_1, float_2) -> Graph:
1729def float_greater_than_or_equal(float_1, float_2) -> Graph:
1730    """Float Greater Than Or Equal
1731
1732    Checks if the first float is greater than or equal to the second float
1733
1734    Args:
1735        First Float: Graph of Float
1736        Second Float: Graph of Float
1737        
1738
1739    Returns:
1740        Graph: A graph node producing a Bool.
1741    """
1742    float_1_parsed = parse_float_graph(float_1)
1743    float_2_parsed = parse_float_graph(float_2)
1744    return float_greater_than_or_equal_internal(float_1_parsed, float_2_parsed)

Float Greater Than Or Equal

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

Args: First Float: Graph of Float Second Float: Graph of Float

Returns: Graph: A graph node producing a Bool.

def float_if(bool, input_1, input_2) -> Graph:
1746def float_if(bool, input_1, input_2) -> Graph:
1747    """Float If
1748
1749    If the boolean is true returns input 1, otherwise input 2. Type: Float
1750
1751    Args:
1752        bool: Graph of Bool
1753        input 1: Graph of Float
1754        input 2: Graph of Float
1755        
1756
1757    Returns:
1758        Graph: A graph node producing a Float.
1759    """
1760    bool_parsed = parse_bool_graph(bool)
1761    input_1_parsed = parse_float_graph(input_1)
1762    input_2_parsed = parse_float_graph(input_2)
1763    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:
1765def float_lerp(x, float1, float2) -> Graph:
1766    """Float Lerp
1767
1768    Lerps between two floats using the x parameter
1769
1770    Args:
1771        x: Graph of Float
1772        float1: Graph of Float
1773        float2: Graph of Float
1774        
1775
1776    Returns:
1777        Graph: A graph node producing a Float.
1778    """
1779    x_parsed = parse_float_graph(x)
1780    float1_parsed = parse_float_graph(float1)
1781    float2_parsed = parse_float_graph(float2)
1782    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_less_than(float_1, float_2) -> Graph:
1784def float_less_than(float_1, float_2) -> Graph:
1785    """Float Less Than
1786
1787    Checks if the first float is less than the second float
1788
1789    Args:
1790        First Float: Graph of Float
1791        Second Float: Graph of Float
1792        
1793
1794    Returns:
1795        Graph: A graph node producing a Bool.
1796    """
1797    float_1_parsed = parse_float_graph(float_1)
1798    float_2_parsed = parse_float_graph(float_2)
1799    return float_less_than_internal(float_1_parsed, float_2_parsed)

Float Less Than

Checks if the first float is less than the second float

Args: First Float: Graph of Float Second Float: Graph of Float

Returns: Graph: A graph node producing a Bool.

def float_less_than_or_equal(float_1, float_2) -> Graph:
1801def float_less_than_or_equal(float_1, float_2) -> Graph:
1802    """Float Less Than Or Equal
1803
1804    Checks if the first float is less than or equal to the second float
1805
1806    Args:
1807        First Float: Graph of Float
1808        Second Float: Graph of Float
1809        
1810
1811    Returns:
1812        Graph: A graph node producing a Bool.
1813    """
1814    float_1_parsed = parse_float_graph(float_1)
1815    float_2_parsed = parse_float_graph(float_2)
1816    return float_less_than_or_equal_internal(float_1_parsed, float_2_parsed)

Float Less Than Or Equal

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

Args: First Float: Graph of Float Second Float: Graph of Float

Returns: Graph: A graph node producing a Bool.

def float_max(float1, float2) -> Graph:
1818def float_max(float1, float2) -> Graph:
1819    """Float Max
1820
1821    Returns the maximum float.
1822
1823    Args:
1824        float1: Graph of Float
1825        float2: Graph of Float
1826        
1827
1828    Returns:
1829        Graph: A graph node producing a Float.
1830    """
1831    float1_parsed = parse_float_graph(float1)
1832    float2_parsed = parse_float_graph(float2)
1833    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:
1835def float_min(float1, float2) -> Graph:
1836    """Float Min
1837
1838    Returns the minimum float.
1839
1840    Args:
1841        float1: Graph of Float
1842        float2: Graph of Float
1843        
1844
1845    Returns:
1846        Graph: A graph node producing a Float.
1847    """
1848    float1_parsed = parse_float_graph(float1)
1849    float2_parsed = parse_float_graph(float2)
1850    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:
1852def float_multiply(float1, float2) -> Graph:
1853    """Float Multiply
1854
1855    Multiplies two floats together.
1856
1857    Args:
1858        float1: Graph of Float
1859        float2: Graph of Float
1860        
1861
1862    Returns:
1863        Graph: A graph node producing a Float.
1864    """
1865    float1_parsed = parse_float_graph(float1)
1866    float2_parsed = parse_float_graph(float2)
1867    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:
1869def float_passthrough(value) -> Graph:
1870    """Float Passthrough
1871
1872    Responds with the value provided. Doing nothing to it.
1873
1874    Args:
1875        value: Graph of Float
1876        
1877
1878    Returns:
1879        Graph: A graph node producing a Float.
1880    """
1881    value_parsed = parse_float_graph(value)
1882    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:
1884def float_pow(float1, float2) -> Graph:
1885    """Float Power
1886
1887    Raises float 1 to the power of float 2
1888
1889    Args:
1890        float 1: Graph of Float
1891        float 2: Graph of Float
1892        
1893
1894    Returns:
1895        Graph: A graph node producing a Float.
1896    """
1897    float1_parsed = parse_float_graph(float1)
1898    float2_parsed = parse_float_graph(float2)
1899    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:
1901def float_round_to_int(float) -> Graph:
1902    """Float Round to Int
1903
1904    Rounds the float to the nearest int
1905
1906    Args:
1907        float: Graph of Float
1908        
1909
1910    Returns:
1911        Graph: A graph node producing a Int.
1912    """
1913    float_parsed = parse_float_graph(float)
1914    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:
1916def float_sin(angle) -> Graph:
1917    """Float Sine
1918
1919    Computes the sine of a float (in radians).
1920
1921    Args:
1922        Angle in radians: Graph of Float
1923        
1924
1925    Returns:
1926        Graph: A graph node producing a Float.
1927    """
1928    angle_parsed = parse_float_graph(angle)
1929    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:
1931def float_square_root(number) -> Graph:
1932    """Float Square Root
1933
1934    Compares the square root of a number
1935
1936    Args:
1937        Number: Graph of Float
1938        
1939
1940    Returns:
1941        Graph: A graph node producing a Float.
1942    """
1943    number_parsed = parse_float_graph(number)
1944    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:
1946def float_squared(number) -> Graph:
1947    """Float Squared
1948
1949    Raises a float to the power of 2.
1950
1951    Args:
1952        Number: Graph of Float
1953        
1954
1955    Returns:
1956        Graph: A graph node producing a Float.
1957    """
1958    number_parsed = parse_float_graph(number)
1959    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:
1961def float_subtract(float1, float2) -> Graph:
1962    """Float Subtract
1963
1964    Adds two floats together.
1965
1966    Args:
1967        float1: Graph of Float
1968        float2: Graph of Float
1969        
1970
1971    Returns:
1972        Graph: A graph node producing a Float.
1973    """
1974    float1_parsed = parse_float_graph(float1)
1975    float2_parsed = parse_float_graph(float2)
1976    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:
1978def image_from_byte_list(bytes) -> Graph:
1979    """Image from Bytes
1980
1981    Given some bytes, parses an image
1982
1983    Args:
1984        bytes: Graph of ByteList
1985        
1986
1987    Returns:
1988        Graph: A graph node producing a Image.
1989    """
1990    bytes_parsed = parse_graph(bytes)
1991    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:
1993def image_to_byte_list(image) -> Graph:
1994    """Image to Byte List
1995
1996    Given an image, converts it to a byte list
1997
1998    Args:
1999        image: Graph of Image
2000        
2001
2002    Returns:
2003        Graph: A graph node producing a ByteList.
2004    """
2005    image_parsed = parse_graph(image)
2006    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:
2008def int_abs(number) -> Graph:
2009    """Int Absolute Value
2010
2011    Returns the absolute value of an int
2012
2013    Args:
2014        number: Graph of Int
2015        
2016
2017    Returns:
2018        Graph: A graph node producing a Int.
2019    """
2020    number_parsed = parse_int_graph(number)
2021    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:
2023def int_add(int_1, int_2) -> Graph:
2024    """Int Add
2025
2026    Adds to ints together
2027
2028    Args:
2029        First Int: Graph of Int
2030        Second Int: Graph of Int
2031        
2032
2033    Returns:
2034        Graph: A graph node producing a Int.
2035    """
2036    int_1_parsed = parse_int_graph(int_1)
2037    int_2_parsed = parse_int_graph(int_2)
2038    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:
2040def int_add_to_dictionary(dictionary, key, value) -> Graph:
2041    """Int Add To Dictionary
2042
2043    Adds a Int to a Dictionary
2044
2045    Args:
2046        dictionary: Graph of Dictionary
2047        key: Graph of String
2048        value: Graph of Int
2049        
2050
2051    Returns:
2052        Graph: A graph node producing a Dictionary.
2053    """
2054    dictionary_parsed = parse_graph(dictionary)
2055    key_parsed = parse_string_graph(key)
2056    value_parsed = parse_int_graph(value)
2057    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:
2059def int_equals(int_1, int_2) -> Graph:
2060    """Int Equals
2061
2062    Checks if two ints are equal
2063
2064    Args:
2065        First Int: Graph of Int
2066        Second Int: Graph of Int
2067        
2068
2069    Returns:
2070        Graph: A graph node producing a Bool.
2071    """
2072    int_1_parsed = parse_int_graph(int_1)
2073    int_2_parsed = parse_int_graph(int_2)
2074    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:
2076def int_greater_than(int_1, int_2) -> Graph:
2077    """Int Greater Than
2078
2079    Checks if the first int is greater than the second int
2080
2081    Args:
2082        First Int: Graph of Int
2083        Second Int: Graph of Int
2084        
2085
2086    Returns:
2087        Graph: A graph node producing a Bool.
2088    """
2089    int_1_parsed = parse_int_graph(int_1)
2090    int_2_parsed = parse_int_graph(int_2)
2091    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_greater_than_or_equal(int_1, int_2) -> Graph:
2093def int_greater_than_or_equal(int_1, int_2) -> Graph:
2094    """Int Greater Than Or Equal
2095
2096    Checks if the first int is greater than or equal to the second int
2097
2098    Args:
2099        First Int: Graph of Int
2100        Second Int: Graph of Int
2101        
2102
2103    Returns:
2104        Graph: A graph node producing a Bool.
2105    """
2106    int_1_parsed = parse_int_graph(int_1)
2107    int_2_parsed = parse_int_graph(int_2)
2108    return int_greater_than_or_equal_internal(int_1_parsed, int_2_parsed)

Int Greater Than Or Equal

Checks if the first int is greater than or equal to 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:
2110def int_if(bool, input_1, input_2) -> Graph:
2111    """Int If
2112
2113    If the boolean is true returns input 1, otherwise input 2. Type: Int
2114
2115    Args:
2116        bool: Graph of Bool
2117        input 1: Graph of Int
2118        input 2: Graph of Int
2119        
2120
2121    Returns:
2122        Graph: A graph node producing a Int.
2123    """
2124    bool_parsed = parse_bool_graph(bool)
2125    input_1_parsed = parse_int_graph(input_1)
2126    input_2_parsed = parse_int_graph(input_2)
2127    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:
2129def int_less_than(int_1, int_2) -> Graph:
2130    """Int Less Than
2131
2132    Checks if the first int is less than the second int
2133
2134    Args:
2135        First Int: Graph of Int
2136        Second Int: Graph of Int
2137        
2138
2139    Returns:
2140        Graph: A graph node producing a Bool.
2141    """
2142    int_1_parsed = parse_int_graph(int_1)
2143    int_2_parsed = parse_int_graph(int_2)
2144    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_less_than_or_equal(int_1, int_2) -> Graph:
2146def int_less_than_or_equal(int_1, int_2) -> Graph:
2147    """Int Less Than Or Equal
2148
2149    Checks if the first int is less than or equal to the second int
2150
2151    Args:
2152        First Int: Graph of Int
2153        Second Int: Graph of Int
2154        
2155
2156    Returns:
2157        Graph: A graph node producing a Bool.
2158    """
2159    int_1_parsed = parse_int_graph(int_1)
2160    int_2_parsed = parse_int_graph(int_2)
2161    return int_less_than_or_equal_internal(int_1_parsed, int_2_parsed)

Int Less Than Or Equal

Checks if the first int is less than or equal to 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:
2163def int_max(int1, int2) -> Graph:
2164    """Int Max
2165
2166    Returns the maximum int.
2167
2168    Args:
2169        int1: Graph of Int
2170        int2: Graph of Int
2171        
2172
2173    Returns:
2174        Graph: A graph node producing a Int.
2175    """
2176    int1_parsed = parse_int_graph(int1)
2177    int2_parsed = parse_int_graph(int2)
2178    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:
2180def int_min(int1, int2) -> Graph:
2181    """Int Min
2182
2183    Returns the minimum int.
2184
2185    Args:
2186        int1: Graph of Int
2187        int2: Graph of Int
2188        
2189
2190    Returns:
2191        Graph: A graph node producing a Int.
2192    """
2193    int1_parsed = parse_int_graph(int1)
2194    int2_parsed = parse_int_graph(int2)
2195    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:
2197def int_multiply(int_1, int_2) -> Graph:
2198    """Int Multiply
2199
2200    Multiplies two integers together
2201
2202    Args:
2203        First Int: Graph of Int
2204        Second Int: Graph of Int
2205        
2206
2207    Returns:
2208        Graph: A graph node producing a Int.
2209    """
2210    int_1_parsed = parse_int_graph(int_1)
2211    int_2_parsed = parse_int_graph(int_2)
2212    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:
2214def int_passthrough(value) -> Graph:
2215    """Int Passthrough
2216
2217    Responds with the value provided. Doing nothing to it.
2218
2219    Args:
2220        value: Graph of Int
2221        
2222
2223    Returns:
2224        Graph: A graph node producing a Int.
2225    """
2226    value_parsed = parse_int_graph(value)
2227    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:
2229def int_subtract(int_1, int_2) -> Graph:
2230    """Int Subtract
2231
2232    Subtracts one int from another
2233
2234    Args:
2235        int 1: Graph of Int
2236        int 2: Graph of Int
2237        
2238
2239    Returns:
2240        Graph: A graph node producing a Int.
2241    """
2242    int_1_parsed = parse_int_graph(int_1)
2243    int_2_parsed = parse_int_graph(int_2)
2244    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:
2246def int_to_float(int) -> Graph:
2247    """Int To Float
2248
2249    Converts an Int to a Float
2250
2251    Args:
2252        int: Graph of Int
2253        
2254
2255    Returns:
2256        Graph: A graph node producing a Float.
2257    """
2258    int_parsed = parse_int_graph(int)
2259    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:
2261def monet_network_download_u_r_l_from_asset_i_d(asset_id) -> Graph:
2262    """Monet Network Download URL from Asset ID
2263
2264    Creates a Download URL from asset ID in the Monet Network
2265
2266    Args:
2267        asset id: Graph of Int
2268        
2269
2270    Returns:
2271        Graph: A graph node producing a String.
2272    """
2273    asset_id_parsed = parse_int_graph(asset_id)
2274    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:
2276def not_(bool) -> Graph:
2277    """Not
2278
2279    Returns the opposite of a boolean
2280
2281    Args:
2282        Bool: Graph of Bool
2283        
2284
2285    Returns:
2286        Graph: A graph node producing a Bool.
2287    """
2288    bool_parsed = parse_bool_graph(bool)
2289    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:
2291def null_value() -> Graph:
2292    """Null Value
2293
2294    Returns a null value
2295
2296    Returns:
2297        Graph: A graph node producing a Null.
2298    """
2299    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:
2301def ok_lab_color_from_components(l, a, b) -> Graph:
2302    """OkLab Color from Components
2303
2304    Given the L, a and b creates the color
2305
2306    Args:
2307        l: Graph of Float
2308        a: Graph of Float
2309        b: Graph of Float
2310        
2311
2312    Returns:
2313        Graph: A graph node producing a OkLabColor.
2314    """
2315    l_parsed = parse_float_graph(l)
2316    a_parsed = parse_float_graph(a)
2317    b_parsed = parse_float_graph(b)
2318    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_hist_lightness_quantile(hist, quantile) -> Graph:
2320def ok_lab_hist_lightness_quantile(hist, quantile) -> Graph:
2321    """OkLab Histogram Lightness Quantile
2322
2323    Given an OkLab histogram and a quantile, returns the lightness value that corresponds to the quantile.
2324
2325    Args:
2326        hist: Graph of OkLabHist
2327        quantile: Graph of Float
2328        
2329
2330    Returns:
2331        Graph: A graph node producing a Float.
2332    """
2333    hist_parsed = parse_graph(hist)
2334    quantile_parsed = parse_float_graph(quantile)
2335    return ok_lab_hist_lightness_quantile_internal(hist_parsed, quantile_parsed)

OkLab Histogram Lightness Quantile

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

Args: hist: Graph of OkLabHist quantile: Graph of Float

Returns: Graph: A graph node producing a Float.

def ok_lab_to_r_g_b(ok_lab, color_profile) -> Graph:
2337def ok_lab_to_r_g_b(ok_lab, color_profile) -> Graph:
2338    """OkLab to RGB
2339
2340    Converts an OkLab color to an RGB color
2341
2342    Args:
2343        OkLab: Graph of OkLabColor
2344        color profile: Graph of ColorProfile
2345        
2346
2347    Returns:
2348        Graph: A graph node producing a RGBColor.
2349    """
2350    ok_lab_parsed = parse_graph(ok_lab)
2351    color_profile_parsed = parse_graph(color_profile)
2352    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:
2354def or_(bool1, bool2) -> Graph:
2355    """Or
2356
2357    Returns true if either inputs are true.
2358
2359    Args:
2360        bool1: Graph of Bool
2361        bool2: Graph of Bool
2362        
2363
2364    Returns:
2365        Graph: A graph node producing a Bool.
2366    """
2367    bool1_parsed = parse_bool_graph(bool1)
2368    bool2_parsed = parse_bool_graph(bool2)
2369    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_ellipse_with_render_style(painter, center, dimensions, rotation, render_style, instances) -> Graph:
2371def painter_add_ellipse_with_render_style(painter, center, dimensions, rotation, render_style, instances) -> Graph:
2372    """Painter Add Ellipse with Render Style
2373
2374    Adds an ellipse to the painter and draws it with the render style. Set some transforms on the ellipse as well.
2375
2376    Args:
2377        painter: Graph of Painter
2378        center point of the ellipse: Graph of Point2f
2379        width (a) and height (b) of the ellipse: Graph of Vector2f
2380        rotation angle in radians: Graph of Float
2381        render style: Graph of RenderStyle
2382        instances: Graph of Transform2List
2383        
2384
2385    Returns:
2386        Graph: A graph node producing a Painter.
2387    """
2388    painter_parsed = parse_graph(painter)
2389    center_parsed = parse_graph(center)
2390    dimensions_parsed = parse_graph(dimensions)
2391    rotation_parsed = parse_float_graph(rotation)
2392    render_style_parsed = parse_graph(render_style)
2393    instances_parsed = parse_graph(instances)
2394    return painter_add_ellipse_with_render_style_internal(painter_parsed, center_parsed, dimensions_parsed, rotation_parsed, render_style_parsed, instances_parsed)

Painter Add Ellipse with Render Style

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

Args: painter: Graph of Painter center point of the ellipse: Graph of Point2f width (a) and height (b) of the ellipse: Graph of Vector2f rotation angle in radians: Graph of Float render style: Graph of RenderStyle instances: Graph of Transform2List

Returns: Graph: A graph node producing a Painter.

def painter_add_path_with_render_style(painter, path, render_style, instances) -> Graph:
2396def painter_add_path_with_render_style(painter, path, render_style, instances) -> Graph:
2397    """Painter Add Path with Render Style
2398
2399    Adds a path to the painter and draws it with the render style. Set some transforms on the path as well.
2400
2401    Args:
2402        painter: Graph of Painter
2403        path: Graph of Path
2404        render style: Graph of RenderStyle
2405        instances: Graph of Transform2List
2406        
2407
2408    Returns:
2409        Graph: A graph node producing a Painter.
2410    """
2411    painter_parsed = parse_graph(painter)
2412    path_parsed = parse_graph(path)
2413    render_style_parsed = parse_graph(render_style)
2414    instances_parsed = parse_graph(instances)
2415    return painter_add_path_with_render_style_internal(painter_parsed, path_parsed, render_style_parsed, instances_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

Returns: Graph: A graph node producing a Painter.

def painter_add_rectangle_with_render_style(painter, center, dimensions, rotation, render_style, instances) -> Graph:
2417def painter_add_rectangle_with_render_style(painter, center, dimensions, rotation, render_style, instances) -> Graph:
2418    """Painter Add Rectangle with Render Style
2419
2420    Adds a rectangle to the painter and draws it with the render style. Set some transforms on the rectangle as well.
2421
2422    Args:
2423        painter: Graph of Painter
2424        center point of the rectangle: Graph of Point2f
2425        width and height of the rectangle: Graph of Vector2f
2426        rotation angle in radians: Graph of Float
2427        render style: Graph of RenderStyle
2428        instances: Graph of Transform2List
2429        
2430
2431    Returns:
2432        Graph: A graph node producing a Painter.
2433    """
2434    painter_parsed = parse_graph(painter)
2435    center_parsed = parse_graph(center)
2436    dimensions_parsed = parse_graph(dimensions)
2437    rotation_parsed = parse_float_graph(rotation)
2438    render_style_parsed = parse_graph(render_style)
2439    instances_parsed = parse_graph(instances)
2440    return painter_add_rectangle_with_render_style_internal(painter_parsed, center_parsed, dimensions_parsed, rotation_parsed, render_style_parsed, instances_parsed)

Painter Add Rectangle with Render Style

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

Args: painter: Graph of Painter center point of the rectangle: Graph of Point2f width and height of the rectangle: Graph of Vector2f rotation angle in radians: Graph of Float render style: Graph of RenderStyle instances: Graph of Transform2List

Returns: Graph: A graph node producing a Painter.

def painter_new(color_profile) -> Graph:
2442def painter_new(color_profile) -> Graph:
2443    """Painter New
2444
2445    Creates a new painter.
2446
2447    Args:
2448        color profile: Graph of ColorProfile
2449        
2450
2451    Returns:
2452        Graph: A graph node producing a Painter.
2453    """
2454    color_profile_parsed = parse_graph(color_profile)
2455    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_line_to_point(path, point) -> Graph:
2457def path_line_to_point(path, point) -> Graph:
2458    """Path Line to Point
2459
2460    Moves the path from it's current point to another at another point with a line.
2461
2462    Args:
2463        path: Graph of Path
2464        point: Graph of Point2f
2465        
2466
2467    Returns:
2468        Graph: A graph node producing a Path.
2469    """
2470    path_parsed = parse_graph(path)
2471    point_parsed = parse_graph(point)
2472    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:
2474def path_move_to_point(path, point) -> Graph:
2475    """Path Move to Point
2476
2477    Moves the path to a specified point without drawing anything.
2478
2479    Args:
2480        path: Graph of Path
2481        point: Graph of Point2f
2482        
2483
2484    Returns:
2485        Graph: A graph node producing a Path.
2486    """
2487    path_parsed = parse_graph(path)
2488    point_parsed = parse_graph(point)
2489    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:
2491def path_new() -> Graph:
2492    """Path New
2493
2494    Creates a new empty path.
2495
2496    Returns:
2497        Graph: A graph node producing a Path.
2498    """
2499    return path_new_internal()

Path New

Creates a new empty path.

Returns: Graph: A graph node producing a Path.

def pi() -> Graph:
2501def pi() -> Graph:
2502    """Pi
2503
2504    Returns π as a float
2505
2506    Returns:
2507        Graph: A graph node producing a Float.
2508    """
2509    return pi_internal()

Pi

Returns π as a float

Returns: Graph: A graph node producing a Float.

def point2f_from_components(x, y) -> Graph:
2511def point2f_from_components(x, y) -> Graph:
2512    """Point 2 Float from Components
2513
2514    Given an x and y creates a point
2515
2516    Args:
2517        x: Graph of Float
2518        y: Graph of Float
2519        
2520
2521    Returns:
2522        Graph: A graph node producing a Point2f.
2523    """
2524    x_parsed = parse_float_graph(x)
2525    y_parsed = parse_float_graph(y)
2526    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:
2528def r_g_b_a_color_add_to_dictionary(dictionary, key, value) -> Graph:
2529    """RGBA Color Add To Dictionary
2530
2531    Adds a RGBA Color to a Dictionary
2532
2533    Args:
2534        dictionary: Graph of Dictionary
2535        key: Graph of String
2536        value: Graph of RGBAColor
2537        
2538
2539    Returns:
2540        Graph: A graph node producing a Dictionary.
2541    """
2542    dictionary_parsed = parse_graph(dictionary)
2543    key_parsed = parse_string_graph(key)
2544    value_parsed = parse_graph(value)
2545    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:
2547def r_g_b_a_color_from_components(r, g, b, a) -> Graph:
2548    """RGBA Color from Components
2549
2550    Given the r, g, b and a creates the color
2551
2552    Args:
2553        red: Graph of Float
2554        green: Graph of Float
2555        blue: Graph of Float
2556        alpha: Graph of Float
2557        
2558
2559    Returns:
2560        Graph: A graph node producing a RGBAColor.
2561    """
2562    r_parsed = parse_float_graph(r)
2563    g_parsed = parse_float_graph(g)
2564    b_parsed = parse_float_graph(b)
2565    a_parsed = parse_float_graph(a)
2566    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:
2568def r_g_b_a_color_passthrough(value) -> Graph:
2569    """RGBA Color Passthrough
2570
2571    Responds with the value provided. Doing nothing to it.
2572
2573    Args:
2574        value: Graph of RGBAColor
2575        
2576
2577    Returns:
2578        Graph: A graph node producing a RGBAColor.
2579    """
2580    value_parsed = parse_graph(value)
2581    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:
2583def r_g_b_color_add_to_dictionary(dictionary, key, value) -> Graph:
2584    """RGB Color Add To Dictionary
2585
2586    Adds a RGB Color to a Dictionary
2587
2588    Args:
2589        dictionary: Graph of Dictionary
2590        key: Graph of String
2591        value: Graph of RGBColor
2592        
2593
2594    Returns:
2595        Graph: A graph node producing a Dictionary.
2596    """
2597    dictionary_parsed = parse_graph(dictionary)
2598    key_parsed = parse_string_graph(key)
2599    value_parsed = parse_graph(value)
2600    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:
2602def r_g_b_color_from_components(r, g, b) -> Graph:
2603    """RGB Color from Components
2604
2605    Given the r, g and b creates the color
2606
2607    Args:
2608        red: Graph of Float
2609        green: Graph of Float
2610        blue: Graph of Float
2611        
2612
2613    Returns:
2614        Graph: A graph node producing a RGBColor.
2615    """
2616    r_parsed = parse_float_graph(r)
2617    g_parsed = parse_float_graph(g)
2618    b_parsed = parse_float_graph(b)
2619    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:
2621def r_g_b_color_passthrough(value) -> Graph:
2622    """RGB Color Passthrough
2623
2624    Responds with the value provided. Doing nothing to it.
2625
2626    Args:
2627        value: Graph of RGBColor
2628        
2629
2630    Returns:
2631        Graph: A graph node producing a RGBColor.
2632    """
2633    value_parsed = parse_graph(value)
2634    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:
2636def r_g_b_to_ok_lab(rgb, color_profile) -> Graph:
2637    """RGB to OkLab
2638
2639    Converts an RGB color to an OkLab color
2640
2641    Args:
2642        RGB: Graph of RGBColor
2643        color profile: Graph of ColorProfile
2644        
2645
2646    Returns:
2647        Graph: A graph node producing a OkLabColor.
2648    """
2649    rgb_parsed = parse_graph(rgb)
2650    color_profile_parsed = parse_graph(color_profile)
2651    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:
2653def render_style_brush_and_fill(brush, fill) -> Graph:
2654    """Render Style Brush and Fill
2655
2656    Creates a render style that will have a brush and a fill.
2657
2658    Args:
2659        brush: Graph of Brush
2660        fill: Graph of Fill
2661        
2662
2663    Returns:
2664        Graph: A graph node producing a RenderStyle.
2665    """
2666    brush_parsed = parse_graph(brush)
2667    fill_parsed = parse_graph(fill)
2668    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:
2670def render_style_brush_only(brush) -> Graph:
2671    """Render Style Brush Only
2672
2673    Creates a render style that will only have a brush.
2674
2675    Args:
2676        brush: Graph of Brush
2677        
2678
2679    Returns:
2680        Graph: A graph node producing a RenderStyle.
2681    """
2682    brush_parsed = parse_graph(brush)
2683    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:
2685def render_style_fill_only(fill) -> Graph:
2686    """Render Style Fill Only
2687
2688    Creates a render style that will only have a fill.
2689
2690    Args:
2691        fill: Graph of Fill
2692        
2693
2694    Returns:
2695        Graph: A graph node producing a RenderStyle.
2696    """
2697    fill_parsed = parse_graph(fill)
2698    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:
2700def sequence_adjust_speed(sequence, factor) -> Graph:
2701    """Sequence Adjust Speed
2702
2703    Adjusts the speed of a sequence by a speed factor.
2704
2705    Args:
2706        sequence: Graph of Sequence
2707        factor: Graph of Float
2708        
2709
2710    Returns:
2711        Graph: A graph node producing a Sequence.
2712    """
2713    sequence_parsed = parse_graph(sequence)
2714    factor_parsed = parse_float_graph(factor)
2715    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_composition_at_time(sequence, time) -> Graph:
2717def sequence_composition_at_time(sequence, time) -> Graph:
2718    """Sequence Composition at Time
2719
2720    Extracts an composition from a sequence at a particular time
2721
2722    Args:
2723        sequence: Graph of Sequence
2724        time: Graph of Float
2725        
2726
2727    Returns:
2728        Graph: A graph node producing a Composition.
2729    """
2730    sequence_parsed = parse_graph(sequence)
2731    time_parsed = parse_float_graph(time)
2732    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:
2734def sequence_concatenate(sequence_1, sequence_2) -> Graph:
2735    """Sequence Concatenate
2736
2737    Given two sequences, combines them into one by playing the first one and then the second one.
2738
2739    Args:
2740        sequence 1: Graph of Sequence
2741        sequence 2: Graph of Sequence
2742        
2743
2744    Returns:
2745        Graph: A graph node producing a Sequence.
2746    """
2747    sequence_1_parsed = parse_graph(sequence_1)
2748    sequence_2_parsed = parse_graph(sequence_2)
2749    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:
2751def sequence_duration(sequence) -> Graph:
2752    """Sequence Duration
2753
2754    Gets the duration from a sequence
2755
2756    Args:
2757        sequence: Graph of Sequence
2758        
2759
2760    Returns:
2761        Graph: A graph node producing a Float.
2762    """
2763    sequence_parsed = parse_graph(sequence)
2764    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:
2766def sequence_from_composition_and_duration(composition, duration) -> Graph:
2767    """Sequence from Composition and Duration
2768
2769    Give a Composition and a Duration. Returns a Sequence.
2770
2771    Args:
2772        composition: Graph of Composition
2773        duration: Graph of Float
2774        
2775
2776    Returns:
2777        Graph: A graph node producing a Sequence.
2778    """
2779    composition_parsed = parse_graph(composition)
2780    duration_parsed = parse_float_graph(duration)
2781    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:
2783def sequence_from_u_r_l(url) -> Graph:
2784    """Sequence from URL
2785
2786    Creates a sequence from URL
2787
2788    Args:
2789        url: Graph of String
2790        
2791
2792    Returns:
2793        Graph: A graph node producing a Sequence.
2794    """
2795    url_parsed = parse_string_graph(url)
2796    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:
2798def sequence_graph(duration, time, frame) -> Graph:
2799    """Sequence Graph
2800
2801    Creates a sequence that runs the graph to get the duration and the frame for each time.
2802
2803    Args:
2804        duration: Graph of Float
2805        time: Graph of Float
2806        frame: Graph of Composition
2807        
2808
2809    Returns:
2810        Graph: A graph node producing a Sequence.
2811    """
2812    duration_parsed = parse_float_graph(duration)
2813    time_parsed = parse_float_graph(time)
2814    frame_parsed = parse_graph(frame)
2815    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:
2817def sequence_grayscale(sequence) -> Graph:
2818    """Sequence Grayscale
2819
2820    Creates a sequence that converts the video to grayscale
2821
2822    Args:
2823        sequence: Graph of Sequence
2824        
2825
2826    Returns:
2827        Graph: A graph node producing a Sequence.
2828    """
2829    sequence_parsed = parse_graph(sequence)
2830    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:
2832def sequence_passthrough(value) -> Graph:
2833    """Sequence Passthrough
2834
2835    Responds with the value provided. Doing nothing to it.
2836
2837    Args:
2838        value: Graph of Sequence
2839        
2840
2841    Returns:
2842        Graph: A graph node producing a Sequence.
2843    """
2844    value_parsed = parse_graph(value)
2845    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:
2847def sequence_reverse(sequence) -> Graph:
2848    """Sequence Reverse
2849
2850    Given a sequence. Reverses it.
2851
2852    Args:
2853        sequence: Graph of Sequence
2854        
2855
2856    Returns:
2857        Graph: A graph node producing a Sequence.
2858    """
2859    sequence_parsed = parse_graph(sequence)
2860    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) -> Graph:
2862def sequence_to_mp4(sequence, frame_rate) -> Graph:
2863    """Sequence To MP4
2864
2865    Given a sequence. Converts it to MP4 return a local file to where that MP4 is stored.
2866
2867    Args:
2868        sequence: Graph of Sequence
2869        frame rate: Graph of Int
2870        
2871
2872    Returns:
2873        Graph: A graph node producing a ByteList.
2874    """
2875    sequence_parsed = parse_graph(sequence)
2876    frame_rate_parsed = parse_int_graph(frame_rate)
2877    return sequence_to_mp4_internal(sequence_parsed, frame_rate_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: Graph of Int

Returns: Graph: A graph node producing a ByteList.

def sequence_trim_back(sequence, amount) -> Graph:
2879def sequence_trim_back(sequence, amount) -> Graph:
2880    """Sequence Trim Back
2881
2882    Given a sequence. Trims from the back.
2883
2884    Args:
2885        sequence: Graph of Sequence
2886        amount: Graph of Float
2887        
2888
2889    Returns:
2890        Graph: A graph node producing a Sequence.
2891    """
2892    sequence_parsed = parse_graph(sequence)
2893    amount_parsed = parse_float_graph(amount)
2894    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:
2896def sequence_trim_front(sequence, amount) -> Graph:
2897    """Sequence Trim Front
2898
2899    Given a sequence. Trims from the front.
2900
2901    Args:
2902        sequence: Graph of Sequence
2903        amount: Graph of Float
2904        
2905
2906    Returns:
2907        Graph: A graph node producing a Sequence.
2908    """
2909    sequence_parsed = parse_graph(sequence)
2910    amount_parsed = parse_float_graph(amount)
2911    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:
2913def string_if(bool, input_1, input_2) -> Graph:
2914    """String If
2915
2916    If the boolean is true returns input 1, otherwise input 2. Type: String
2917
2918    Args:
2919        bool: Graph of Bool
2920        input 1: Graph of String
2921        input 2: Graph of String
2922        
2923
2924    Returns:
2925        Graph: A graph node producing a String.
2926    """
2927    bool_parsed = parse_bool_graph(bool)
2928    input_1_parsed = parse_string_graph(input_1)
2929    input_2_parsed = parse_string_graph(input_2)
2930    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:
2932def transform2_identity() -> Graph:
2933    """Transform 2D Identity
2934
2935    Creates a 2D transform that is the identity transform.
2936
2937    Returns:
2938        Graph: A graph node producing a Transform2.
2939    """
2940    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_if(bool, input_1, input_2) -> Graph:
2942def transform2_if(bool, input_1, input_2) -> Graph:
2943    """Transform 2D If
2944
2945    If the boolean is true returns input 1, otherwise input 2. Type: Transform2
2946
2947    Args:
2948        bool: Graph of Bool
2949        input 1: Graph of Transform2
2950        input 2: Graph of Transform2
2951        
2952
2953    Returns:
2954        Graph: A graph node producing a Transform2.
2955    """
2956    bool_parsed = parse_bool_graph(bool)
2957    input_1_parsed = parse_graph(input_1)
2958    input_2_parsed = parse_graph(input_2)
2959    return transform2_if_internal(bool_parsed, input_1_parsed, input_2_parsed)

Transform 2D If

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

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

Returns: Graph: A graph node producing a Transform2.

def transform2_rotate(transform, angle) -> Graph:
2961def transform2_rotate(transform, angle) -> Graph:
2962    """Transform 2D Rotate
2963
2964    Applies a rotation to a 2D transform. Rotation is in radians.
2965
2966    Args:
2967        transform: Graph of Transform2
2968        angle in radians: Graph of Float
2969        
2970
2971    Returns:
2972        Graph: A graph node producing a Transform2.
2973    """
2974    transform_parsed = parse_graph(transform)
2975    angle_parsed = parse_float_graph(angle)
2976    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:
2978def transform2_scale(transform, scale) -> Graph:
2979    """Transform 2D Scale
2980
2981    Applies a scale to a 2D transform.
2982
2983    Args:
2984        transform: Graph of Transform2
2985        scale: Graph of Vector2f
2986        
2987
2988    Returns:
2989        Graph: A graph node producing a Transform2.
2990    """
2991    transform_parsed = parse_graph(transform)
2992    scale_parsed = parse_graph(scale)
2993    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:
2995def transform2_to_list(item) -> Graph:
2996    """Transform 2D to List
2997
2998    Converts Transform 2D to a single item list
2999
3000    Args:
3001        item: Graph of Transform2
3002        
3003
3004    Returns:
3005        Graph: A graph node producing a Transform2List.
3006    """
3007    item_parsed = parse_graph(item)
3008    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:
3010def transform2_translation(transform, translation) -> Graph:
3011    """Transform 2D Translation
3012
3013    Applies a translation to a 2D transform.
3014
3015    Args:
3016        transform: Graph of Transform2
3017        translation: Graph of Vector2f
3018        
3019
3020    Returns:
3021        Graph: A graph node producing a Transform2.
3022    """
3023    transform_parsed = parse_graph(transform)
3024    translation_parsed = parse_graph(translation)
3025    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_byte_list(bytes, url, content_type) -> Graph:
3027def upload_byte_list(bytes, url, content_type) -> Graph:
3028    """Upload Byte List
3029
3030    Given bytes and a URL. Performs a PUT request and uploads the bytes
3031
3032    Args:
3033        bytes: Graph of ByteList
3034        url: Graph of String
3035        content type: Graph of String
3036        
3037
3038    Returns:
3039        Graph: A graph node producing a Void.
3040    """
3041    bytes_parsed = parse_graph(bytes)
3042    url_parsed = parse_string_graph(url)
3043    content_type_parsed = parse_string_graph(content_type)
3044    return upload_byte_list_internal(bytes_parsed, url_parsed, content_type_parsed)

Upload Byte List

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

Args: bytes: Graph of ByteList url: Graph of String content type: Graph of String

Returns: Graph: A graph node producing a Void.

def upload_file_path(path, url, content_type) -> Graph:
3046def upload_file_path(path, url, content_type) -> Graph:
3047    """Upload File Path
3048
3049    Reads a file from a local path on disk and uploads its contents to a URL via PUT request
3050
3051    Args:
3052        local file path to read: Graph of String
3053        url: Graph of String
3054        content type: Graph of String
3055        
3056
3057    Returns:
3058        Graph: A graph node producing a Void.
3059    """
3060    path_parsed = parse_string_graph(path)
3061    url_parsed = parse_string_graph(url)
3062    content_type_parsed = parse_string_graph(content_type)
3063    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:
3065def vector2_int_to_vector2_float(vector) -> Graph:
3066    """Vector 2 Int to Vector 2 Float
3067
3068    Given a Vector 2 Int. Creates a Vector 2 Float.
3069
3070    Args:
3071        vector: Graph of Vector2i
3072        
3073
3074    Returns:
3075        Graph: A graph node producing a Vector2f.
3076    """
3077    vector_parsed = parse_graph(vector)
3078    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:
3080def vector2f_add(lhs, rhs) -> Graph:
3081    """Vector 2 Float Add
3082
3083    Add two Vector 2s of Floats
3084
3085    Args:
3086        The vector on the left hand side of the add: Graph of Vector2f
3087        The vector on the right hand side of the add: Graph of Vector2f
3088        
3089
3090    Returns:
3091        Graph: A graph node producing a Vector2f.
3092    """
3093    lhs_parsed = parse_graph(lhs)
3094    rhs_parsed = parse_graph(rhs)
3095    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:
3097def vector2f_add_to_dictionary(dictionary, key, value) -> Graph:
3098    """Vector 2 Float Add To Dictionary
3099
3100    Adds a Vector 2 Float to a Dictionary
3101
3102    Args:
3103        dictionary: Graph of Dictionary
3104        key: Graph of String
3105        value: Graph of Vector2f
3106        
3107
3108    Returns:
3109        Graph: A graph node producing a Dictionary.
3110    """
3111    dictionary_parsed = parse_graph(dictionary)
3112    key_parsed = parse_string_graph(key)
3113    value_parsed = parse_graph(value)
3114    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:
3116def vector2f_from_components(x, y) -> Graph:
3117    """Vector 2 Float from Components
3118
3119    Given an x and y creates a vector.
3120
3121    Args:
3122        x: Graph of Float
3123        y: Graph of Float
3124        
3125
3126    Returns:
3127        Graph: A graph node producing a Vector2f.
3128    """
3129    x_parsed = parse_float_graph(x)
3130    y_parsed = parse_float_graph(y)
3131    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:
3133def vector2f_normalize(vector) -> Graph:
3134    """Vector 2 Float Normalize
3135
3136    Normalizes a Vector. Converting it's length to 1.
3137
3138    Args:
3139        Vector: Graph of Vector2f
3140        
3141
3142    Returns:
3143        Graph: A graph node producing a Vector2f.
3144    """
3145    vector_parsed = parse_graph(vector)
3146    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:
3148def vector2f_passthrough(value) -> Graph:
3149    """Vector 2 Float Passthrough
3150
3151    Responds with the value provided. Doing nothing to it.
3152
3153    Args:
3154        value: Graph of Vector2f
3155        
3156
3157    Returns:
3158        Graph: A graph node producing a Vector2f.
3159    """
3160    value_parsed = parse_graph(value)
3161    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:
3163def vector2f_scalar_multiply(vector, scalar) -> Graph:
3164    """Vector 2 Float Scalar Multiply
3165
3166    Multiplies each element of the Vector as a scalar
3167
3168    Args:
3169        Vector: Graph of Vector2f
3170        Scalar: Graph of Float
3171        
3172
3173    Returns:
3174        Graph: A graph node producing a Vector2f.
3175    """
3176    vector_parsed = parse_graph(vector)
3177    scalar_parsed = parse_float_graph(scalar)
3178    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:
3180def vector2f_x(vector) -> Graph:
3181    """Vector 2 Float get X
3182
3183    Retrieves the X component of a Vector 2 Float.
3184
3185    Args:
3186        vector: Graph of Vector2f
3187        
3188
3189    Returns:
3190        Graph: A graph node producing a Float.
3191    """
3192    vector_parsed = parse_graph(vector)
3193    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:
3195def vector2f_y(vector) -> Graph:
3196    """Vector 2 Float get Y
3197
3198    Retrieves the Y component of a Vector 2 Float.
3199
3200    Args:
3201        vector: Graph of Vector2f
3202        
3203
3204    Returns:
3205        Graph: A graph node producing a Float.
3206    """
3207    vector_parsed = parse_graph(vector)
3208    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:
3210def vector2i_add(lhs, rhs) -> Graph:
3211    """Vector 2 Int Add
3212
3213    Add two Vector 2s of Ints
3214
3215    Args:
3216        The vector on the left hand side of the add: Graph of Vector2i
3217        The vector on the right hand side of the add: Graph of Vector2i
3218        
3219
3220    Returns:
3221        Graph: A graph node producing a Vector2i.
3222    """
3223    lhs_parsed = parse_graph(lhs)
3224    rhs_parsed = parse_graph(rhs)
3225    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:
3227def vector2i_add_to_dictionary(dictionary, key, value) -> Graph:
3228    """Vector 2 Int Add To Dictionary
3229
3230    Adds a Vector 2 Int to a Dictionary
3231
3232    Args:
3233        dictionary: Graph of Dictionary
3234        key: Graph of String
3235        value: Graph of Vector2i
3236        
3237
3238    Returns:
3239        Graph: A graph node producing a Dictionary.
3240    """
3241    dictionary_parsed = parse_graph(dictionary)
3242    key_parsed = parse_string_graph(key)
3243    value_parsed = parse_graph(value)
3244    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:
3246def vector2i_from_components(x, y) -> Graph:
3247    """Vector 2 Int from Components
3248
3249    Given an x and y creates a vector.
3250
3251    Args:
3252        x: Graph of Int
3253        y: Graph of Int
3254        
3255
3256    Returns:
3257        Graph: A graph node producing a Vector2i.
3258    """
3259    x_parsed = parse_int_graph(x)
3260    y_parsed = parse_int_graph(y)
3261    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:
3263def vector2i_passthrough(value) -> Graph:
3264    """Vector 2 Int Passthrough
3265
3266    Responds with the value provided. Doing nothing to it.
3267
3268    Args:
3269        value: Graph of Vector2i
3270        
3271
3272    Returns:
3273        Graph: A graph node producing a Vector2i.
3274    """
3275    value_parsed = parse_graph(value)
3276    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:
3278def vector2i_to_vector2f(vector) -> Graph:
3279    """Vector 2 Int to Vector 2 Float
3280
3281    Given a Vector 2 Int. Creates a Vector 2 Float.
3282
3283    Args:
3284        vector: Graph of Vector2i
3285        
3286
3287    Returns:
3288        Graph: A graph node producing a Vector2f.
3289    """
3290    vector_parsed = parse_graph(vector)
3291    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:
3293def vector2i_x(vector) -> Graph:
3294    """Vector 2 Int get X
3295
3296    Retrieves the X component of a Vector 2 Int.
3297
3298    Args:
3299        vector: Graph of Vector2i
3300        
3301
3302    Returns:
3303        Graph: A graph node producing a Int.
3304    """
3305    vector_parsed = parse_graph(vector)
3306    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:
3308def vector2i_y(vector) -> Graph:
3309    """Vector 2 Int get Y
3310
3311    Retrieves the Y component of a Vector 2 Int.
3312
3313    Args:
3314        vector: Graph of Vector2i
3315        
3316
3317    Returns:
3318        Graph: A graph node producing a Int.
3319    """
3320    vector_parsed = parse_graph(vector)
3321    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:
3323def vector3f_add(lhs, rhs) -> Graph:
3324    """Vector 3 Float Add
3325
3326    Add two Vector 3s of Floats
3327
3328    Args:
3329        The vector on the left hand side of the add: Graph of Vector3f
3330        The vector on the right hand side of the add: Graph of Vector3f
3331        
3332
3333    Returns:
3334        Graph: A graph node producing a Vector3f.
3335    """
3336    lhs_parsed = parse_graph(lhs)
3337    rhs_parsed = parse_graph(rhs)
3338    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:
3340def vector3f_from_components(x, y, z) -> Graph:
3341    """Vector 3 Float from Components
3342
3343    Given an x, y and z creates a vector floats.
3344
3345    Args:
3346        x: Graph of Float
3347        y: Graph of Float
3348        z: Graph of Float
3349        
3350
3351    Returns:
3352        Graph: A graph node producing a Vector3f.
3353    """
3354    x_parsed = parse_float_graph(x)
3355    y_parsed = parse_float_graph(y)
3356    z_parsed = parse_float_graph(z)
3357    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:
3359def vector3f_normalize(vector) -> Graph:
3360    """Vector 3 Normalize
3361
3362    Normalizes a Vector 3 Float. Converting it's length to 1.
3363
3364    Args:
3365        Vector: Graph of Vector3f
3366        
3367
3368    Returns:
3369        Graph: A graph node producing a Vector3f.
3370    """
3371    vector_parsed = parse_graph(vector)
3372    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:
3374def vector3f_x(vector) -> Graph:
3375    """Vector 3D Float X
3376
3377    Gets the value in the x component for the provided vector
3378
3379    Args:
3380        vector: Graph of Vector3f
3381        
3382
3383    Returns:
3384        Graph: A graph node producing a Float.
3385    """
3386    vector_parsed = parse_graph(vector)
3387    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:
3389def vector3f_y(vector) -> Graph:
3390    """Vector 3D Y Float
3391
3392    Gets the value in the y component for the provided vector
3393
3394    Args:
3395        vector: Graph of Vector3f
3396        
3397
3398    Returns:
3399        Graph: A graph node producing a Float.
3400    """
3401    vector_parsed = parse_graph(vector)
3402    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:
3404def vector3f_z(vector) -> Graph:
3405    """Vector 3D Float Z
3406
3407    Gets the value in the z component for the provided vector
3408
3409    Args:
3410        vector: Graph of Vector3f
3411        
3412
3413    Returns:
3414        Graph: A graph node producing a Float.
3415    """
3416    vector_parsed = parse_graph(vector)
3417    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:
3419def xor(bool1, bool2) -> Graph:
3420    """Exclusive Or
3421
3422    Returns true if either the inputs are true. But false if both are true.
3423
3424    Args:
3425        the first bool: Graph of Bool
3426        The second bool: Graph of Bool
3427        
3428
3429    Returns:
3430        Graph: A graph node producing a Bool.
3431    """
3432    bool1_parsed = parse_bool_graph(bool1)
3433    bool2_parsed = parse_bool_graph(bool2)
3434    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.