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

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

def size(self, /):

The type of the None singleton.

def to_image_bytes(self, /, context):

The type of the None singleton.

def int_constant(value) -> 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:
79def abs(number) -> Graph:
80    """Absolute Value
81
82    Returns the absolute value of a float
83
84    Args:
85        number: Graph of Float
86        
87
88    Returns:
89        Graph: A graph node producing a Float.
90    """
91    number_parsed = parse_float_graph(number)
92    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:
 94def and_(bool1, bool2) -> Graph:
 95    """And
 96
 97    Returns true if both inputs are true.
 98
 99    Args:
100        the first bool: Graph of Bool
101        The second bool: Graph of Bool
102        
103
104    Returns:
105        Graph: A graph node producing a Bool.
106    """
107    bool1_parsed = parse_bool_graph(bool1)
108    bool2_parsed = parse_bool_graph(bool2)
109    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:
111def bool_add_to_dictionary(dictionary, key, value) -> Graph:
112    """Bool Add To Dictionary
113
114    Adds a Bool to a Dictionary
115
116    Args:
117        dictionary: Graph of Dictionary
118        key: Graph of String
119        value: Graph of Bool
120        
121
122    Returns:
123        Graph: A graph node producing a Dictionary.
124    """
125    dictionary_parsed = parse_graph(dictionary)
126    key_parsed = parse_string_graph(key)
127    value_parsed = parse_bool_graph(value)
128    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:
130def bool_if(bool, input_1, input_2) -> Graph:
131    """Bool If
132
133    If the boolean is true returns input 1, otherwise input 2. Type: Bool
134
135    Args:
136        bool: Graph of Bool
137        input 1: Graph of Bool
138        input 2: Graph of Bool
139        
140
141    Returns:
142        Graph: A graph node producing a Bool.
143    """
144    bool_parsed = parse_bool_graph(bool)
145    input_1_parsed = parse_bool_graph(input_1)
146    input_2_parsed = parse_bool_graph(input_2)
147    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:
149def bounds2f_from_x_y_width_height(x, y, width, height) -> Graph:
150    """Bounds 2D Float from X, Y, Width & Height
151
152    Creates the bounds of a 2D float region from its X, Y, Width and Height.
153
154    Args:
155        x: Graph of Float
156        y: Graph of Float
157        width: Graph of Float
158        height: Graph of Float
159        
160
161    Returns:
162        Graph: A graph node producing a Bounds2f.
163    """
164    x_parsed = parse_float_graph(x)
165    y_parsed = parse_float_graph(y)
166    width_parsed = parse_float_graph(width)
167    height_parsed = parse_float_graph(height)
168    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:
170def bounds2i_from_x_y_width_height(x, y, width, height) -> Graph:
171    """Bounds 2D Int from X, Y, Width & Height
172
173    Creates the bounds of a 2D array from its X, Y, Width and Height.
174
175    Args:
176        x: Graph of Int
177        y: Graph of Int
178        width: Graph of Int
179        height: Graph of Int
180        
181
182    Returns:
183        Graph: A graph node producing a Bounds2i.
184    """
185    x_parsed = parse_int_graph(x)
186    y_parsed = parse_int_graph(y)
187    width_parsed = parse_int_graph(width)
188    height_parsed = parse_int_graph(height)
189    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:
191def brush_solid(color, radius) -> Graph:
192    """Brush Solid
193
194    Creates a brush with a color and radius. Will stroke with the solid color.
195
196    Args:
197        color: Graph of RGBAColor
198        radius: Graph of Float
199        
200
201    Returns:
202        Graph: A graph node producing a Brush.
203    """
204    color_parsed = parse_graph(color)
205    radius_parsed = parse_float_graph(radius)
206    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:
208def byte_list_from_u_r_l(url) -> Graph:
209    """Byte List from URL
210
211    Given a URL. Performs a GET request and downloads the result as bytes.
212
213    Args:
214        url: Graph of String
215        
216
217    Returns:
218        Graph: A graph node producing a ByteList.
219    """
220    url_parsed = parse_string_graph(url)
221    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:
223def color_profile_b_t709() -> Graph:
224    """Color Profile BT.709
225
226    Creates a BT.709 Color Profile
227
228    Returns:
229        Graph: A graph node producing a ColorProfile.
230    """
231    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:
233def color_profile_ok_lab_a() -> Graph:
234    """Color Profile OkLabA
235
236    Creates an OkLabA color profile. OkLab with also an alpha component.
237
238    Returns:
239        Graph: A graph node producing a ColorProfile.
240    """
241    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:
243def color_profile_p3() -> Graph:
244    """Color Profile P3
245
246    Creates a P3 Color Profile
247
248    Returns:
249        Graph: A graph node producing a ColorProfile.
250    """
251    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:
253def color_profile_p_n_g_s_r_g_b() -> Graph:
254    """Color Profile PNG sRGB
255
256    Creates a color profile that is the same one as PNG sRGB.
257
258    Returns:
259        Graph: A graph node producing a ColorProfile.
260    """
261    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:
263def color_profile_s_r_g_b() -> Graph:
264    """Color Profile sRGB
265
266    Creates an sRGB Color Profile
267
268    Returns:
269        Graph: A graph node producing a ColorProfile.
270    """
271    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:
273def composition_absolute_value(image) -> Graph:
274    """Composition Absolute Value
275
276    Takes the absolute value of all the pixels in the image.
277
278    Args:
279        image: Graph of Composition
280        
281
282    Returns:
283        Graph: A graph node producing a Composition.
284    """
285    image_parsed = parse_graph(image)
286    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:
288def composition_bilinear_interpolation(composition, size) -> Graph:
289    """Composition Scale Bilinear Interpolation
290
291    Uses the bilinear interpolation algorithm to scale an image recipe
292
293    Args:
294        composition: Graph of Composition
295        size: Graph of Vector2i
296        
297
298    Returns:
299        Graph: A graph node producing a Composition.
300    """
301    composition_parsed = parse_graph(composition)
302    size_parsed = parse_graph(size)
303    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:
305def composition_blend_add(foreground, background, foreground_transform) -> Graph:
306    """Composition Blend Add
307
308    Adds the foreground and background images together using additive blending.
309
310    Args:
311        foreground: Graph of Composition
312        background: Graph of Composition
313        foreground transform: Graph of Transform2
314        
315
316    Returns:
317        Graph: A graph node producing a Composition.
318    """
319    foreground_parsed = parse_graph(foreground)
320    background_parsed = parse_graph(background)
321    foreground_transform_parsed = parse_graph(foreground_transform)
322    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:
324def composition_blend_add_with_ok_lab(foreground, background, foreground_transform) -> Graph:
325    """Composition Blend Add with OkLab
326
327    Adds the foreground and background images together using additive blending in OkLab color space.
328
329    Args:
330        foreground: Graph of Composition
331        background: Graph of Composition
332        foreground transform: Graph of Transform2
333        
334
335    Returns:
336        Graph: A graph node producing a Composition.
337    """
338    foreground_parsed = parse_graph(foreground)
339    background_parsed = parse_graph(background)
340    foreground_transform_parsed = parse_graph(foreground_transform)
341    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:
343def composition_blend_alpha(foreground, background, foreground_transform) -> Graph:
344    """Composition Blend Alpha
345
346    Blends between the foreground and background using the alpha component of the foreground. 1 is foreground. 0 is background.
347
348    Args:
349        foreground: Graph of Composition
350        background: Graph of Composition
351        foreground transform: Graph of Transform2
352        
353
354    Returns:
355        Graph: A graph node producing a Composition.
356    """
357    foreground_parsed = parse_graph(foreground)
358    background_parsed = parse_graph(background)
359    foreground_transform_parsed = parse_graph(foreground_transform)
360    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:
362def composition_blend_alpha_with_ok_lab(foreground, background, foreground_transform) -> Graph:
363    """Composition Blend Alpha with OkLab
364
365    Blends between the foreground and background using the alpha component of the foreground in OkLab color space. 1 is foreground. 0 is background.
366
367    Args:
368        foreground: Graph of Composition
369        background: Graph of Composition
370        foreground transform: Graph of Transform2
371        
372
373    Returns:
374        Graph: A graph node producing a Composition.
375    """
376    foreground_parsed = parse_graph(foreground)
377    background_parsed = parse_graph(background)
378    foreground_transform_parsed = parse_graph(foreground_transform)
379    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_max(foreground, background, foreground_transform) -> Graph:
381def composition_blend_max(foreground, background, foreground_transform) -> Graph:
382    """Composition Blend Max
383
384    Blends the foreground and background images using maximum value blending.
385
386    Args:
387        foreground: Graph of Composition
388        background: Graph of Composition
389        foreground transform: Graph of Transform2
390        
391
392    Returns:
393        Graph: A graph node producing a Composition.
394    """
395    foreground_parsed = parse_graph(foreground)
396    background_parsed = parse_graph(background)
397    foreground_transform_parsed = parse_graph(foreground_transform)
398    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:
400def composition_blend_max_with_ok_lab(foreground, background, foreground_transform) -> Graph:
401    """Composition Blend Max with OkLab
402
403    Blends the foreground and background images using maximum value blending in OkLab color space.
404
405    Args:
406        foreground: Graph of Composition
407        background: Graph of Composition
408        foreground transform: Graph of Transform2
409        
410
411    Returns:
412        Graph: A graph node producing a Composition.
413    """
414    foreground_parsed = parse_graph(foreground)
415    background_parsed = parse_graph(background)
416    foreground_transform_parsed = parse_graph(foreground_transform)
417    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:
419def composition_blend_min(foreground, background, foreground_transform) -> Graph:
420    """Composition Blend Min
421
422    Blends the foreground and background images using minimum blending, taking the minimum value for each pixel.
423
424    Args:
425        foreground: Graph of Composition
426        background: Graph of Composition
427        foreground transform: Graph of Transform2
428        
429
430    Returns:
431        Graph: A graph node producing a Composition.
432    """
433    foreground_parsed = parse_graph(foreground)
434    background_parsed = parse_graph(background)
435    foreground_transform_parsed = parse_graph(foreground_transform)
436    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:
438def composition_blend_min_with_ok_lab(foreground, background, foreground_transform) -> Graph:
439    """Composition Blend Min with OkLab
440
441    Blends the foreground and background images using minimum blending in OkLab color space, taking the minimum value for each pixel.
442
443    Args:
444        foreground: Graph of Composition
445        background: Graph of Composition
446        foreground transform: Graph of Transform2
447        
448
449    Returns:
450        Graph: A graph node producing a Composition.
451    """
452    foreground_parsed = parse_graph(foreground)
453    background_parsed = parse_graph(background)
454    foreground_transform_parsed = parse_graph(foreground_transform)
455    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:
457def composition_blend_multiply(foreground, background, foreground_transform) -> Graph:
458    """Composition Blend Multiply
459
460    Multiplies the foreground and background images together using multiply blending.
461
462    Args:
463        foreground: Graph of Composition
464        background: Graph of Composition
465        foreground transform: Graph of Transform2
466        
467
468    Returns:
469        Graph: A graph node producing a Composition.
470    """
471    foreground_parsed = parse_graph(foreground)
472    background_parsed = parse_graph(background)
473    foreground_transform_parsed = parse_graph(foreground_transform)
474    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:
476def composition_blend_multiply_with_ok_lab(foreground, background, foreground_transform) -> Graph:
477    """Composition Blend Multiply with OkLab
478
479    Multiplies the foreground and background images together using multiply blending in OkLab color space.
480
481    Args:
482        foreground: Graph of Composition
483        background: Graph of Composition
484        foreground transform: Graph of Transform2
485        
486
487    Returns:
488        Graph: A graph node producing a Composition.
489    """
490    foreground_parsed = parse_graph(foreground)
491    background_parsed = parse_graph(background)
492    foreground_transform_parsed = parse_graph(foreground_transform)
493    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:
495def composition_blend_subtract(foreground, background, foreground_transform) -> Graph:
496    """Composition Blend Subtract
497
498    Subtracts the foreground image from the background image using subtractive blending.
499
500    Args:
501        foreground: Graph of Composition
502        background: Graph of Composition
503        foreground transform: Graph of Transform2
504        
505
506    Returns:
507        Graph: A graph node producing a Composition.
508    """
509    foreground_parsed = parse_graph(foreground)
510    background_parsed = parse_graph(background)
511    foreground_transform_parsed = parse_graph(foreground_transform)
512    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:
514def composition_blend_subtract_with_ok_lab(foreground, background, foreground_transform) -> Graph:
515    """Composition Blend Subtract with OkLab
516
517    Subtracts the foreground image from the background image using subtractive blending in OkLab color space.
518
519    Args:
520        foreground: Graph of Composition
521        background: Graph of Composition
522        foreground transform: Graph of Transform2
523        
524
525    Returns:
526        Graph: A graph node producing a Composition.
527    """
528    foreground_parsed = parse_graph(foreground)
529    background_parsed = parse_graph(background)
530    foreground_transform_parsed = parse_graph(foreground_transform)
531    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:
533def composition_blend_with_factor(foreground, background, factor) -> Graph:
534    """Composition Blend with Factor
535
536    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.
537
538    Args:
539        foreground: Graph of Composition
540        background: Graph of Composition
541        factor: Graph of Composition
542        
543
544    Returns:
545        Graph: A graph node producing a Composition.
546    """
547    foreground_parsed = parse_graph(foreground)
548    background_parsed = parse_graph(background)
549    factor_parsed = parse_graph(factor)
550    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_box_blur(composition, dimension) -> Graph:
552def composition_box_blur(composition, dimension) -> Graph:
553    """Composition Box Blur
554
555    Applies a box blur to an image. Dimension is the size. 1 corresponding to 3x3, 2 5x5 and so on.
556
557    Args:
558        composition: Graph of Composition
559        dimension: Graph of Int
560        
561
562    Returns:
563        Graph: A graph node producing a Composition.
564    """
565    composition_parsed = parse_graph(composition)
566    dimension_parsed = parse_int_graph(dimension)
567    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:
569def composition_box_blur_with_ok_lab(composition, dimension) -> Graph:
570    """Composition Box Blur with OkLab
571
572    Applies a box blur to an image in OkLab color space. Dimension is the size. 1 corresponding to 3x3, 2 5x5 and so on.
573
574    Args:
575        composition: Graph of Composition
576        dimension: Graph of Int
577        
578
579    Returns:
580        Graph: A graph node producing a Composition.
581    """
582    composition_parsed = parse_graph(composition)
583    dimension_parsed = parse_int_graph(dimension)
584    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:
586def composition_brightness_adjust(composition, scale) -> Graph:
587    """Composition Brightness Adjust
588
589    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.
590
591    Args:
592        composition: Graph of Composition
593        scale: Graph of Float
594        
595
596    Returns:
597        Graph: A graph node producing a Composition.
598    """
599    composition_parsed = parse_graph(composition)
600    scale_parsed = parse_float_graph(scale)
601    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:
603def composition_chroma_offset(composition, offset) -> Graph:
604    """Composition Chroma Offset
605
606    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.
607
608    Args:
609        composition: Graph of Composition
610        offset: Graph of Vector2f
611        
612
613    Returns:
614        Graph: A graph node producing a Composition.
615    """
616    composition_parsed = parse_graph(composition)
617    offset_parsed = parse_graph(offset)
618    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:
620def composition_color_convert(composition, color_profile) -> Graph:
621    """Composition Color Convert
622
623    Converts a Composition from one color space to another.
624
625    Args:
626        composition: Graph of Composition
627        color profile: Graph of ColorProfile
628        
629
630    Returns:
631        Graph: A graph node producing a Composition.
632    """
633    composition_parsed = parse_graph(composition)
634    color_profile_parsed = parse_graph(color_profile)
635    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:
637def composition_color_invert(composition) -> Graph:
638    """Composition Color Invert
639
640    Applies a color invert operation to a Composition. Taking 1 and subtracting each RGB operation against it.
641
642    Args:
643        composition: Graph of Composition
644        
645
646    Returns:
647        Graph: A graph node producing a Composition.
648    """
649    composition_parsed = parse_graph(composition)
650    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:
652def composition_color_profile(composition) -> Graph:
653    """Composition Color Profile
654
655    Gets the color profile associated with a Composition
656
657    Args:
658        composition: Graph of Composition
659        
660
661    Returns:
662        Graph: A graph node producing a ColorProfile.
663    """
664    composition_parsed = parse_graph(composition)
665    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:
667def composition_color_rect(color, color_profile, size) -> Graph:
668    """Composition Color Rect
669
670    Given a color and it's color proile. Creates a rectangle Composition of that color.
671
672    Args:
673        color: Graph of RGBAColor
674        color profile: Graph of ColorProfile
675        size: Graph of Vector2i
676        
677
678    Returns:
679        Graph: A graph node producing a Composition.
680    """
681    color_parsed = parse_graph(color)
682    color_profile_parsed = parse_graph(color_profile)
683    size_parsed = parse_graph(size)
684    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:
686def composition_color_threshold(composition, threshold) -> Graph:
687    """Composition Color Threshold
688
689    Applies a color threshold to a Composition
690
691    Args:
692        composition: Graph of Composition
693        threshold: Graph of Float
694        
695
696    Returns:
697        Graph: A graph node producing a Composition.
698    """
699    composition_parsed = parse_graph(composition)
700    threshold_parsed = parse_float_graph(threshold)
701    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:
703def composition_contrast_adjustment(composition, contrast) -> Graph:
704    """Composition Contrast Adjustment
705
706    Adjusts the contrast of a Composition
707
708    Args:
709        composition: Graph of Composition
710        contrast: Graph of Float
711        
712
713    Returns:
714        Graph: A graph node producing a Composition.
715    """
716    composition_parsed = parse_graph(composition)
717    contrast_parsed = parse_float_graph(contrast)
718    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:
720def composition_convolution(composition, kernel, kernel_width, kernel_height) -> Graph:
721    """Composition Convolution
722
723    Performs a convolution on an composition
724
725    Args:
726        The image to perform the convolution on: Graph of Composition
727        kernel: Graph of FloatList
728        kernel width: Graph of Int
729        kernel height: Graph of Int
730        
731
732    Returns:
733        Graph: A graph node producing a Composition.
734    """
735    composition_parsed = parse_graph(composition)
736    kernel_parsed = parse_graph(kernel)
737    kernel_width_parsed = parse_int_graph(kernel_width)
738    kernel_height_parsed = parse_int_graph(kernel_height)
739    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:
741def composition_crop(composition, rect) -> Graph:
742    """Composition Crop
743
744    Applies a crop to a Composition
745
746    Args:
747        composition: Graph of Composition
748        rect: Graph of Bounds2i
749        
750
751    Returns:
752        Graph: A graph node producing a Composition.
753    """
754    composition_parsed = parse_graph(composition)
755    rect_parsed = parse_graph(rect)
756    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:
758def composition_custom_transformer_shader(composition, function_body, helpers, input_color_profile, output_color_profile, inputs, needs_sample_capability) -> Graph:
759    """Composition Custom Transformer Shader
760
761    Given an input, runs a custom defined shader over that input.
762
763    Args:
764        composition: Graph of Composition
765        function body: Graph of String
766        helpers: Graph of String
767        input color profile: Graph of ColorProfile
768        output color profile: Graph of ColorProfile
769        inputs: Graph of Dictionary
770        needs sample capability: Graph of Bool
771        
772
773    Returns:
774        Graph: A graph node producing a Composition.
775    """
776    composition_parsed = parse_graph(composition)
777    function_body_parsed = parse_string_graph(function_body)
778    helpers_parsed = parse_string_graph(helpers)
779    input_color_profile_parsed = parse_graph(input_color_profile)
780    output_color_profile_parsed = parse_graph(output_color_profile)
781    inputs_parsed = parse_graph(inputs)
782    needs_sample_capability_parsed = parse_bool_graph(needs_sample_capability)
783    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_flip_horizontal(composition) -> Graph:
785def composition_flip_horizontal(composition) -> Graph:
786    """Composition Flip Horizontal
787
788    Flips the image along the horizontal axis
789
790    Args:
791        composition: Graph of Composition
792        
793
794    Returns:
795        Graph: A graph node producing a Composition.
796    """
797    composition_parsed = parse_graph(composition)
798    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:
800def composition_flip_vertical(composition) -> Graph:
801    """Composition Flip Vertical
802
803    Flips the image vertically
804
805    Args:
806        composition: Graph of Composition
807        
808
809    Returns:
810        Graph: A graph node producing a Composition.
811    """
812    composition_parsed = parse_graph(composition)
813    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:
815def composition_from_asset(asset_id) -> Graph:
816    """Composition from Asset
817
818    Creates a composition from an asset in your catalog.
819
820    Args:
821        asset id: Graph of Int
822        
823
824    Returns:
825        Graph: A graph node producing a Composition.
826    """
827    asset_id_parsed = parse_int_graph(asset_id)
828    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:
830def composition_from_image(image) -> Graph:
831    """Composition from Image
832
833    Creates an composition out of an image
834
835    Args:
836        image: Graph of Image
837        
838
839    Returns:
840        Graph: A graph node producing a Composition.
841    """
842    image_parsed = parse_graph(image)
843    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:
845def composition_gaussian_blur(composition, sigma) -> Graph:
846    """Composition Gaussian Blur
847
848    Applies a gaussian blur to an image. Sigma controls the blur intensity.
849
850    Args:
851        composition: Graph of Composition
852        sigma: Graph of Float
853        
854
855    Returns:
856        Graph: A graph node producing a Composition.
857    """
858    composition_parsed = parse_graph(composition)
859    sigma_parsed = parse_float_graph(sigma)
860    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:
862def composition_gaussian_blur_with_ok_lab(composition, sigma) -> Graph:
863    """Composition Gaussian Blur with OkLab
864
865    Applies a gaussian blur to an image in OkLab color space. Sigma controls the blur intensity.
866
867    Args:
868        composition: Graph of Composition
869        sigma: Graph of Float
870        
871
872    Returns:
873        Graph: A graph node producing a Composition.
874    """
875    composition_parsed = parse_graph(composition)
876    sigma_parsed = parse_float_graph(sigma)
877    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:
879def composition_grayscale(composition) -> Graph:
880    """Composition Grayscale
881
882    Applies grayscale to a Composition
883
884    Args:
885        composition: Graph of Composition
886        
887
888    Returns:
889        Graph: A graph node producing a Composition.
890    """
891    composition_parsed = parse_graph(composition)
892    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_if(bool, input_1, input_2) -> Graph:
894def composition_if(bool, input_1, input_2) -> Graph:
895    """Composition If
896
897    If the boolean is true returns input 1, otherwise input 2. Type: Composition
898
899    Args:
900        bool: Graph of Bool
901        input 1: Graph of Composition
902        input 2: Graph of Composition
903        
904
905    Returns:
906        Graph: A graph node producing a Composition.
907    """
908    bool_parsed = parse_bool_graph(bool)
909    input_1_parsed = parse_graph(input_1)
910    input_2_parsed = parse_graph(input_2)
911    return composition_if_internal(bool_parsed, input_1_parsed, input_2_parsed)

Composition If

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

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

Returns: Graph: A graph node producing a Composition.

def composition_l_curve(composition, l_curve) -> Graph:
913def composition_l_curve(composition, l_curve) -> Graph:
914    """Composition Lightness Curve
915
916    Applies a curve to the L component in an OkLab color. Adjusting the lightness of the image.
917
918    Args:
919        composition: Graph of Composition
920        l curve: Graph of Curve
921        
922
923    Returns:
924        Graph: A graph node producing a Composition.
925    """
926    composition_parsed = parse_graph(composition)
927    l_curve_parsed = parse_graph(l_curve)
928    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:
930def 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:
931    """Composition RGBA Linear Transform
932
933    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.
934
935    Args:
936        composition: Graph of Composition
937        entry 0,0: Graph of Float
938        entry 0,1: Graph of Float
939        entry 0,2: Graph of Float
940        entry 0,3: Graph of Float
941        entry 1,0: Graph of Float
942        entry 1,1: Graph of Float
943        entry 1,2: Graph of Float
944        entry 1,3: Graph of Float
945        entry 2,0: Graph of Float
946        entry 2,1: Graph of Float
947        entry 2,2: Graph of Float
948        entry 2,3: Graph of Float
949        entry 3,0: Graph of Float
950        entry 3,1: Graph of Float
951        entry 3,2: Graph of Float
952        entry 3,3: Graph of Float
953        
954
955    Returns:
956        Graph: A graph node producing a Composition.
957    """
958    composition_parsed = parse_graph(composition)
959    entry_0_0_parsed = parse_float_graph(entry_0_0)
960    entry_0_1_parsed = parse_float_graph(entry_0_1)
961    entry_0_2_parsed = parse_float_graph(entry_0_2)
962    entry_0_3_parsed = parse_float_graph(entry_0_3)
963    entry_1_0_parsed = parse_float_graph(entry_1_0)
964    entry_1_1_parsed = parse_float_graph(entry_1_1)
965    entry_1_2_parsed = parse_float_graph(entry_1_2)
966    entry_1_3_parsed = parse_float_graph(entry_1_3)
967    entry_2_0_parsed = parse_float_graph(entry_2_0)
968    entry_2_1_parsed = parse_float_graph(entry_2_1)
969    entry_2_2_parsed = parse_float_graph(entry_2_2)
970    entry_2_3_parsed = parse_float_graph(entry_2_3)
971    entry_3_0_parsed = parse_float_graph(entry_3_0)
972    entry_3_1_parsed = parse_float_graph(entry_3_1)
973    entry_3_2_parsed = parse_float_graph(entry_3_2)
974    entry_3_3_parsed = parse_float_graph(entry_3_3)
975    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:
977def composition_monet_women_with_parasol() -> Graph:
978    """Monet's Women with a Parasol
979
980    Creates a composition from Monet's "Women with a Parasol" painting. Used frequently as a test asset.
981
982    Returns:
983        Graph: A graph node producing a Composition.
984    """
985    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:
 987def composition_morphological_max(composition, dimension) -> Graph:
 988    """Composition Morphological Max
 989
 990    Apples a morphological max operation.
 991
 992    Args:
 993        composition: Graph of Composition
 994        dimension: Graph of Int
 995        
 996
 997    Returns:
 998        Graph: A graph node producing a Composition.
 999    """
1000    composition_parsed = parse_graph(composition)
1001    dimension_parsed = parse_int_graph(dimension)
1002    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:
1004def composition_morphological_min(composition, dimension) -> Graph:
1005    """Composition Morphological Min
1006
1007    Apples a morphological min operation.
1008
1009    Args:
1010        composition: Graph of Composition
1011        dimension: Graph of Int
1012        
1013
1014    Returns:
1015        Graph: A graph node producing a Composition.
1016    """
1017    composition_parsed = parse_graph(composition)
1018    dimension_parsed = parse_int_graph(dimension)
1019    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:
1021def composition_painter(painter) -> Graph:
1022    """Composition Painter
1023
1024    Creates a composition from a painter.
1025
1026    Args:
1027        painter: Graph of Painter
1028        
1029
1030    Returns:
1031        Graph: A graph node producing a Composition.
1032    """
1033    painter_parsed = parse_graph(painter)
1034    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:
1036def composition_passthrough(value) -> Graph:
1037    """Composition Passthrough
1038
1039    Responds with the value provided. Doing nothing to it.
1040
1041    Args:
1042        value: Graph of Composition
1043        
1044
1045    Returns:
1046        Graph: A graph node producing a Composition.
1047    """
1048    value_parsed = parse_graph(value)
1049    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:
1051def composition_perceptual_difference(composition, color) -> Graph:
1052    """Composition Perceptual Difference
1053
1054    Calculates the difference for each pixel to the OkLab color specified. Each r, g, b and a component in the output is the difference.
1055
1056    Args:
1057        composition: Graph of Composition
1058        color: Graph of OkLabColor
1059        
1060
1061    Returns:
1062        Graph: A graph node producing a Composition.
1063    """
1064    composition_parsed = parse_graph(composition)
1065    color_parsed = parse_graph(color)
1066    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:
1068def composition_pixelate(composition, pixel_size) -> Graph:
1069    """Composition Pixelate
1070
1071    Applies a pixelation effect to a composition.
1072
1073    Args:
1074        composition: Graph of Composition
1075        pixel size: Graph of Int
1076        
1077
1078    Returns:
1079        Graph: A graph node producing a Composition.
1080    """
1081    composition_parsed = parse_graph(composition)
1082    pixel_size_parsed = parse_int_graph(pixel_size)
1083    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:
1085def composition_r_g_b_curve(composition, r_curve, g_curve, b_curve) -> Graph:
1086    """Composition RGB Curve
1087
1088    Applies a curve to the R, G, and B components
1089
1090    Args:
1091        composition: Graph of Composition
1092        r curve: Graph of Curve
1093        g curve: Graph of Curve
1094        b curve: Graph of Curve
1095        
1096
1097    Returns:
1098        Graph: A graph node producing a Composition.
1099    """
1100    composition_parsed = parse_graph(composition)
1101    r_curve_parsed = parse_graph(r_curve)
1102    g_curve_parsed = parse_graph(g_curve)
1103    b_curve_parsed = parse_graph(b_curve)
1104    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:
1106def composition_render_to_image(composition) -> Graph:
1107    """Composition Render to Image
1108
1109    Renders a Composition to an Image
1110
1111    Args:
1112        composition: Graph of Composition
1113        
1114
1115    Returns:
1116        Graph: A graph node producing a Image.
1117    """
1118    composition_parsed = parse_graph(composition)
1119    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:
1121def composition_rotate180(composition) -> Graph:
1122    """Composition Rotate 180
1123
1124    Rotates the image 180 degrees
1125
1126    Args:
1127        composition: Graph of Composition
1128        
1129
1130    Returns:
1131        Graph: A graph node producing a Composition.
1132    """
1133    composition_parsed = parse_graph(composition)
1134    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:
1136def composition_rotate90_clockwise(composition) -> Graph:
1137    """Composition Rotate 90 Clockwise
1138
1139    Rotates the image 90 degrees clockwise
1140
1141    Args:
1142        composition: Graph of Composition
1143        
1144
1145    Returns:
1146        Graph: A graph node producing a Composition.
1147    """
1148    composition_parsed = parse_graph(composition)
1149    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:
1151def composition_rotate90_counter_clockwise(composition) -> Graph:
1152    """Composition Rotate 90 Counter Clockwise
1153
1154    Rotates the image 90 degrees counter-clockwise
1155
1156    Args:
1157        composition: Graph of Composition
1158        
1159
1160    Returns:
1161        Graph: A graph node producing a Composition.
1162    """
1163    composition_parsed = parse_graph(composition)
1164    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_s_a_m3_image(composition, prompt, positive_points, negative_points) -> Graph:
1166def composition_s_a_m3_image(composition, prompt, positive_points, negative_points) -> Graph:
1167    """Composition SAM3 Image
1168
1169    Runs the SAM3 model on an image
1170
1171    Args:
1172        composition: Graph of Composition
1173        prompt: Graph of String
1174        positive points: Graph of Point2iList
1175        negative points: Graph of Point2iList
1176        
1177
1178    Returns:
1179        Graph: A graph node producing a ByteList.
1180    """
1181    composition_parsed = parse_graph(composition)
1182    prompt_parsed = parse_string_graph(prompt)
1183    positive_points_parsed = parse_graph(positive_points)
1184    negative_points_parsed = parse_graph(negative_points)
1185    return composition_s_a_m3_image_internal(composition_parsed, prompt_parsed, positive_points_parsed, negative_points_parsed)

Composition SAM3 Image

Runs the SAM3 model on an image

Args: composition: Graph of Composition prompt: Graph of String positive points: Graph of Point2iList negative points: Graph of Point2iList

Returns: Graph: A graph node producing a ByteList.

def composition_saturation_adjust(composition, scale) -> Graph:
1187def composition_saturation_adjust(composition, scale) -> Graph:
1188    """Composition Saturation Adjust
1189
1190    Adjusts the saturation of an image by a given factor. Internally, scales the chroma components in OkLab color space.
1191
1192    Args:
1193        composition: Graph of Composition
1194        scale: Graph of Float
1195        
1196
1197    Returns:
1198        Graph: A graph node producing a Composition.
1199    """
1200    composition_parsed = parse_graph(composition)
1201    scale_parsed = parse_float_graph(scale)
1202    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:
1204def composition_scale_nearest_neighbor(composition, size) -> Graph:
1205    """Composition Scale Nearest Neighbor
1206
1207    Uses the nearest neighbor algorithm to scale an image recipe
1208
1209    Args:
1210        composition: Graph of Composition
1211        size: Graph of Vector2i
1212        
1213
1214    Returns:
1215        Graph: A graph node producing a Composition.
1216    """
1217    composition_parsed = parse_graph(composition)
1218    size_parsed = parse_graph(size)
1219    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(composition, prompt, positive_points, negative_points) -> Graph:
1221def composition_segment(composition, prompt, positive_points, negative_points) -> Graph:
1222    """Composition Segment
1223
1224    Segments objects in a composition using SAM3. Accepts a text prompt and lists of positive/negative click points.
1225
1226    Args:
1227        composition: Graph of Composition
1228        prompt: Graph of String
1229        positive points: Graph of Point2iList
1230        negative points: Graph of Point2iList
1231        
1232
1233    Returns:
1234        Graph: A graph node producing a Composition.
1235    """
1236    composition_parsed = parse_graph(composition)
1237    prompt_parsed = parse_string_graph(prompt)
1238    positive_points_parsed = parse_graph(positive_points)
1239    negative_points_parsed = parse_graph(negative_points)
1240    return composition_segment_internal(composition_parsed, prompt_parsed, positive_points_parsed, negative_points_parsed)

Composition Segment

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

Args: composition: Graph of Composition prompt: Graph of String positive points: Graph of Point2iList negative points: Graph of Point2iList

Returns: Graph: A graph node producing a Composition.

def composition_sharpen(composition, radius, strength) -> Graph:
1242def composition_sharpen(composition, radius, strength) -> Graph:
1243    """Composition Sharpen
1244
1245    Applies a sharpen filter to the composition.
1246
1247    Args:
1248        composition: Graph of Composition
1249        radius: Graph of Float
1250        strength: Graph of Float
1251        
1252
1253    Returns:
1254        Graph: A graph node producing a Composition.
1255    """
1256    composition_parsed = parse_graph(composition)
1257    radius_parsed = parse_float_graph(radius)
1258    strength_parsed = parse_float_graph(strength)
1259    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:
1261def composition_size(composition) -> Graph:
1262    """Composition Size
1263
1264    Gets the resulting size of a Composition
1265
1266    Args:
1267        composition: Graph of Composition
1268        
1269
1270    Returns:
1271        Graph: A graph node producing a Vector2i.
1272    """
1273    composition_parsed = parse_graph(composition)
1274    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:
1276def composition_sobel_edge_detection(composition) -> Graph:
1277    """Composition Sobel Edge Detection
1278
1279    Applies Sobel edge detection to an image.
1280
1281    Args:
1282        composition: Graph of Composition
1283        
1284
1285    Returns:
1286        Graph: A graph node producing a Composition.
1287    """
1288    composition_parsed = parse_graph(composition)
1289    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:
1291def composition_swirl(composition, center, radius, amount) -> Graph:
1292    """Composition Swirl
1293
1294    Applies a swirl distortion to this composition
1295
1296    Args:
1297        composition: Graph of Composition
1298        center: Graph of Vector2f
1299        radius: Graph of Float
1300        amount: Graph of Float
1301        
1302
1303    Returns:
1304        Graph: A graph node producing a Composition.
1305    """
1306    composition_parsed = parse_graph(composition)
1307    center_parsed = parse_graph(center)
1308    radius_parsed = parse_float_graph(radius)
1309    amount_parsed = parse_float_graph(amount)
1310    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:
1312def composition_target_white_kelvin(composition, kelvin) -> Graph:
1313    """Composition Target White Kelvin
1314
1315    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.
1316
1317    Args:
1318        composition: Graph of Composition
1319        kelvin: Graph of Float
1320        
1321
1322    Returns:
1323        Graph: A graph node producing a Composition.
1324    """
1325    composition_parsed = parse_graph(composition)
1326    kelvin_parsed = parse_float_graph(kelvin)
1327    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:
1329def composition_to_ok_lab_hist(composition) -> Graph:
1330    """Composition to OkLab Histogram
1331
1332    Creates an OkLab Histogram from the colors in a Composition.
1333
1334    Args:
1335        composition: Graph of Composition
1336        
1337
1338    Returns:
1339        Graph: A graph node producing a OkLabHist.
1340    """
1341    composition_parsed = parse_graph(composition)
1342    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:
1344def composition_uniform_lightness(composition, lightness) -> Graph:
1345    """Composition Uniform Lightness
1346
1347    Sets a uniform lightness to the entire image by using OkLab and setting the lightness to a constant number.
1348
1349    Args:
1350        composition: Graph of Composition
1351        lightness: Graph of Float
1352        
1353
1354    Returns:
1355        Graph: A graph node producing a Composition.
1356    """
1357    composition_parsed = parse_graph(composition)
1358    lightness_parsed = parse_float_graph(lightness)
1359    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:
1361def composition_vignette(composition, radius, softness, strength) -> Graph:
1362    """Composition Vignette
1363
1364    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.
1365
1366    Args:
1367        composition: Graph of Composition
1368        radius: Graph of Float
1369        softness: Graph of Float
1370        strength: Graph of Float
1371        
1372
1373    Returns:
1374        Graph: A graph node producing a Composition.
1375    """
1376    composition_parsed = parse_graph(composition)
1377    radius_parsed = parse_float_graph(radius)
1378    softness_parsed = parse_float_graph(softness)
1379    strength_parsed = parse_float_graph(strength)
1380    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:
1382def composition_zoom_blur(composition, center, strength) -> Graph:
1383    """Composition Zoom Blur
1384
1385    Performs a zoom blur on this composition
1386
1387    Args:
1388        composition: Graph of Composition
1389        center: Graph of Vector2f
1390        strength: Graph of Float
1391        
1392
1393    Returns:
1394        Graph: A graph node producing a Composition.
1395    """
1396    composition_parsed = parse_graph(composition)
1397    center_parsed = parse_graph(center)
1398    strength_parsed = parse_float_graph(strength)
1399    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:
1401def curve_evaluate(curve, input) -> Graph:
1402    """Curve Evaluate
1403
1404    Evaluates a curve at a given input value.
1405
1406    Args:
1407        curve: Graph of Curve
1408        input: Graph of Float
1409        
1410
1411    Returns:
1412        Graph: A graph node producing a Float.
1413    """
1414    curve_parsed = parse_graph(curve)
1415    input_parsed = parse_float_graph(input)
1416    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:
1418def curve_gamma(gamma) -> Graph:
1419    """Curve Gamma
1420
1421    A gamma curve. The gamma parameter corresponding to y=x^gamma.
1422
1423    Args:
1424        gamma: Graph of Float
1425        
1426
1427    Returns:
1428        Graph: A graph node producing a Curve.
1429    """
1430    gamma_parsed = parse_float_graph(gamma)
1431    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:
1433def curve_identity() -> Graph:
1434    """Curve Identity
1435
1436    An identity curve, y=x
1437
1438    Returns:
1439        Graph: A graph node producing a Curve.
1440    """
1441    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:
1443def curve_pivoted_sigmoid(pivot, slope) -> Graph:
1444    """Curve Pivoted Sigmoid
1445
1446    A pivoted sigmoid contrast curve that anchors at the pivot and smoothly compresses shadows and highlights, with a slope parameter controlling midtone contrast.
1447
1448    Args:
1449        pivot: Graph of Float
1450        slope: Graph of Float
1451        
1452
1453    Returns:
1454        Graph: A graph node producing a Curve.
1455    """
1456    pivot_parsed = parse_float_graph(pivot)
1457    slope_parsed = parse_float_graph(slope)
1458    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:
1460def curve_s_curve(pivot, slope, toe, shoulder) -> Graph:
1461    """Curve S
1462
1463    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.
1464
1465    Args:
1466        pivot: Graph of Float
1467        slope: Graph of Float
1468        toe: Graph of Float
1469        shoulder: Graph of Float
1470        
1471
1472    Returns:
1473        Graph: A graph node producing a Curve.
1474    """
1475    pivot_parsed = parse_float_graph(pivot)
1476    slope_parsed = parse_float_graph(slope)
1477    toe_parsed = parse_float_graph(toe)
1478    shoulder_parsed = parse_float_graph(shoulder)
1479    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:
1481def dictionary_create() -> Graph:
1482    """Dictionary Create
1483
1484    Creates a new dictionary
1485
1486    Returns:
1487        Graph: A graph node producing a Dictionary.
1488    """
1489    return dictionary_create_internal()

Dictionary Create

Creates a new dictionary

Returns: Graph: A graph node producing a Dictionary.

def file_convert_image_to_bmp(image_bytes) -> Graph:
1491def file_convert_image_to_bmp(image_bytes) -> Graph:
1492    """File Convert Image to BMP
1493
1494    Converts any image format (JPEG, PNG, WebP, TIFF, HEIC, etc.) to BMP. Returns BMP bytes.
1495
1496    Args:
1497        image bytes (any format): Graph of ByteList
1498        
1499
1500    Returns:
1501        Graph: A graph node producing a ByteList.
1502    """
1503    image_bytes_parsed = parse_graph(image_bytes)
1504    return file_convert_image_to_bmp_internal(image_bytes_parsed)

File Convert Image to BMP

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

Args: image bytes (any format): Graph of ByteList

Returns: Graph: A graph node producing a ByteList.

def file_convert_image_to_heic(image_bytes, quality) -> Graph:
1506def file_convert_image_to_heic(image_bytes, quality) -> Graph:
1507    """File Convert Image to HEIC
1508
1509    Converts any image format (JPEG, PNG, WebP, TIFF, BMP, etc.) to HEIC. Returns HEIC bytes.
1510
1511    Args:
1512        image bytes (any format): Graph of ByteList
1513        HEIC quality (1-100): Graph of Int
1514        
1515
1516    Returns:
1517        Graph: A graph node producing a ByteList.
1518    """
1519    image_bytes_parsed = parse_graph(image_bytes)
1520    quality_parsed = parse_int_graph(quality)
1521    return file_convert_image_to_heic_internal(image_bytes_parsed, quality_parsed)

File Convert Image to HEIC

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

Args: image bytes (any format): Graph of ByteList HEIC quality (1-100): Graph of Int

Returns: Graph: A graph node producing a ByteList.

def file_convert_image_to_jpeg(image_bytes, quality) -> Graph:
1523def file_convert_image_to_jpeg(image_bytes, quality) -> Graph:
1524    """File Convert Image to JPEG
1525
1526    Converts any image format (PNG, WebP, TIFF, BMP, HEIC, etc.) to JPEG. Returns JPEG bytes.
1527
1528    Args:
1529        image bytes (any format): Graph of ByteList
1530        JPEG quality (1-100): Graph of Int
1531        
1532
1533    Returns:
1534        Graph: A graph node producing a ByteList.
1535    """
1536    image_bytes_parsed = parse_graph(image_bytes)
1537    quality_parsed = parse_int_graph(quality)
1538    return file_convert_image_to_jpeg_internal(image_bytes_parsed, quality_parsed)

File Convert Image to JPEG

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

Args: image bytes (any format): Graph of ByteList JPEG quality (1-100): Graph of Int

Returns: Graph: A graph node producing a ByteList.

def file_convert_image_to_png(image_bytes) -> Graph:
1540def file_convert_image_to_png(image_bytes) -> Graph:
1541    """File Convert Image to PNG
1542
1543    Converts any image format (JPEG, WebP, TIFF, BMP, HEIC, etc.) to PNG. Returns PNG bytes.
1544
1545    Args:
1546        image bytes (any format): Graph of ByteList
1547        
1548
1549    Returns:
1550        Graph: A graph node producing a ByteList.
1551    """
1552    image_bytes_parsed = parse_graph(image_bytes)
1553    return file_convert_image_to_png_internal(image_bytes_parsed)

File Convert Image to PNG

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

Args: image bytes (any format): Graph of ByteList

Returns: Graph: A graph node producing a ByteList.

def file_convert_image_to_tiff(image_bytes) -> Graph:
1555def file_convert_image_to_tiff(image_bytes) -> Graph:
1556    """File Convert Image to TIFF
1557
1558    Converts any image format (JPEG, PNG, WebP, BMP, HEIC, etc.) to TIFF. Returns TIFF bytes.
1559
1560    Args:
1561        image bytes (any format): Graph of ByteList
1562        
1563
1564    Returns:
1565        Graph: A graph node producing a ByteList.
1566    """
1567    image_bytes_parsed = parse_graph(image_bytes)
1568    return file_convert_image_to_tiff_internal(image_bytes_parsed)

File Convert Image to TIFF

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

Args: image bytes (any format): Graph of ByteList

Returns: Graph: A graph node producing a ByteList.

def file_convert_image_to_web_p(image_bytes, quality) -> Graph:
1570def file_convert_image_to_web_p(image_bytes, quality) -> Graph:
1571    """File Convert Image to WebP
1572
1573    Converts any image format (JPEG, PNG, TIFF, BMP, HEIC, etc.) to WebP. Returns WebP bytes.
1574
1575    Args:
1576        image bytes (any format): Graph of ByteList
1577        WebP quality (1-100): Graph of Int
1578        
1579
1580    Returns:
1581        Graph: A graph node producing a ByteList.
1582    """
1583    image_bytes_parsed = parse_graph(image_bytes)
1584    quality_parsed = parse_int_graph(quality)
1585    return file_convert_image_to_web_p_internal(image_bytes_parsed, quality_parsed)

File Convert Image to WebP

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

Args: image bytes (any format): Graph of ByteList WebP quality (1-100): Graph of Int

Returns: Graph: A graph node producing a ByteList.

def file_convert_video_to_animated_web_p(video_bytes) -> Graph:
1587def file_convert_video_to_animated_web_p(video_bytes) -> Graph:
1588    """File Convert Video to Animated WebP
1589
1590    Converts any video format (MP4, MOV, WebM, AVI, MKV) to an animated WebP. Returns animated WebP bytes.
1591
1592    Args:
1593        video bytes (any format): Graph of ByteList
1594        
1595
1596    Returns:
1597        Graph: A graph node producing a ByteList.
1598    """
1599    video_bytes_parsed = parse_graph(video_bytes)
1600    return file_convert_video_to_animated_web_p_internal(video_bytes_parsed)

File Convert Video to Animated WebP

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

Args: video bytes (any format): Graph of ByteList

Returns: Graph: A graph node producing a ByteList.

def file_convert_video_to_gif(video_bytes, frame_rate) -> Graph:
1602def file_convert_video_to_gif(video_bytes, frame_rate) -> Graph:
1603    """File Convert Video to GIF
1604
1605    Converts any video format (MP4, MOV, WebM, AVI, MKV) to a GIF. Returns GIF bytes.
1606
1607    Args:
1608        video bytes (any format): Graph of ByteList
1609        frame rate: Graph of Int
1610        
1611
1612    Returns:
1613        Graph: A graph node producing a ByteList.
1614    """
1615    video_bytes_parsed = parse_graph(video_bytes)
1616    frame_rate_parsed = parse_int_graph(frame_rate)
1617    return file_convert_video_to_gif_internal(video_bytes_parsed, frame_rate_parsed)

File Convert Video to GIF

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

Args: video bytes (any format): Graph of ByteList frame rate: Graph of Int

Returns: Graph: A graph node producing a ByteList.

def file_convert_video_to_m_p4(video_bytes) -> Graph:
1619def file_convert_video_to_m_p4(video_bytes) -> Graph:
1620    """File Convert Video to MP4
1621
1622    Converts any video format (MOV, WebM, AVI, MKV) to MP4. Returns MP4 bytes.
1623
1624    Args:
1625        video bytes (any format): Graph of ByteList
1626        
1627
1628    Returns:
1629        Graph: A graph node producing a ByteList.
1630    """
1631    video_bytes_parsed = parse_graph(video_bytes)
1632    return file_convert_video_to_m_p4_internal(video_bytes_parsed)

File Convert Video to MP4

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

Args: video bytes (any format): Graph of ByteList

Returns: Graph: A graph node producing a ByteList.

def file_convert_video_to_web_m(video_bytes) -> Graph:
1634def file_convert_video_to_web_m(video_bytes) -> Graph:
1635    """File Convert Video to WebM
1636
1637    Converts any video format (MP4, MOV, AVI, MKV) to WebM. Returns WebM bytes.
1638
1639    Args:
1640        video bytes (any format): Graph of ByteList
1641        
1642
1643    Returns:
1644        Graph: A graph node producing a ByteList.
1645    """
1646    video_bytes_parsed = parse_graph(video_bytes)
1647    return file_convert_video_to_web_m_internal(video_bytes_parsed)

File Convert Video to WebM

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

Args: video bytes (any format): Graph of ByteList

Returns: Graph: A graph node producing a ByteList.

def fill_custom(function_body, helpers, inputs) -> Graph:
1649def fill_custom(function_body, helpers, inputs) -> Graph:
1650    """Fill Custom
1651
1652    Creates a fill with a custom shader.
1653
1654    Args:
1655        function body: Graph of String
1656        helpers: Graph of String
1657        inputs: Graph of Dictionary
1658        
1659
1660    Returns:
1661        Graph: A graph node producing a Fill.
1662    """
1663    function_body_parsed = parse_string_graph(function_body)
1664    helpers_parsed = parse_string_graph(helpers)
1665    inputs_parsed = parse_graph(inputs)
1666    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:
1668def fill_solid(color) -> Graph:
1669    """Fill Solid
1670
1671    Creates a fill with a solid color.
1672
1673    Args:
1674        color: Graph of RGBAColor
1675        
1676
1677    Returns:
1678        Graph: A graph node producing a Fill.
1679    """
1680    color_parsed = parse_graph(color)
1681    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:
1683def float_add(float1, float2) -> Graph:
1684    """Float Add
1685
1686    Adds two floats together.
1687
1688    Args:
1689        float1: Graph of Float
1690        float2: Graph of Float
1691        
1692
1693    Returns:
1694        Graph: A graph node producing a Float.
1695    """
1696    float1_parsed = parse_float_graph(float1)
1697    float2_parsed = parse_float_graph(float2)
1698    return float_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:
1700def float_add_to_dictionary(dictionary, key, value) -> Graph:
1701    """Float Add To Dictionary
1702
1703    Adds a Float to a Dictionary
1704
1705    Args:
1706        dictionary: Graph of Dictionary
1707        key: Graph of String
1708        value: Graph of Float
1709        
1710
1711    Returns:
1712        Graph: A graph node producing a Dictionary.
1713    """
1714    dictionary_parsed = parse_graph(dictionary)
1715    key_parsed = parse_string_graph(key)
1716    value_parsed = parse_float_graph(value)
1717    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:
1719def float_cos(angle) -> Graph:
1720    """Float Cosine
1721
1722    Computes the cosine of a float (in radians).
1723
1724    Args:
1725        Angle in radians: Graph of Float
1726        
1727
1728    Returns:
1729        Graph: A graph node producing a Float.
1730    """
1731    angle_parsed = parse_float_graph(angle)
1732    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:
1734def float_divide(float1, float2) -> Graph:
1735    """Float Divide
1736
1737    Adds two floats together.
1738
1739    Args:
1740        float1: Graph of Float
1741        float2: Graph of Float
1742        
1743
1744    Returns:
1745        Graph: A graph node producing a Float.
1746    """
1747    float1_parsed = parse_float_graph(float1)
1748    float2_parsed = parse_float_graph(float2)
1749    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:
1751def float_equals(float_1, float_2) -> Graph:
1752    """Float Equals
1753
1754    Checks if two floats are equal
1755
1756    Args:
1757        First Float: Graph of Float
1758        Second Float: Graph of Float
1759        
1760
1761    Returns:
1762        Graph: A graph node producing a Bool.
1763    """
1764    float_1_parsed = parse_float_graph(float_1)
1765    float_2_parsed = parse_float_graph(float_2)
1766    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:
1768def float_greater_than(float_1, float_2) -> Graph:
1769    """Float Greater Than
1770
1771    Checks if the first float is greater than the second float
1772
1773    Args:
1774        First Float: Graph of Float
1775        Second Float: Graph of Float
1776        
1777
1778    Returns:
1779        Graph: A graph node producing a Bool.
1780    """
1781    float_1_parsed = parse_float_graph(float_1)
1782    float_2_parsed = parse_float_graph(float_2)
1783    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:
1785def float_greater_than_or_equal(float_1, float_2) -> Graph:
1786    """Float Greater Than Or Equal
1787
1788    Checks if the first float is greater than or equal to the second float
1789
1790    Args:
1791        First Float: Graph of Float
1792        Second Float: Graph of Float
1793        
1794
1795    Returns:
1796        Graph: A graph node producing a Bool.
1797    """
1798    float_1_parsed = parse_float_graph(float_1)
1799    float_2_parsed = parse_float_graph(float_2)
1800    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:
1802def float_if(bool, input_1, input_2) -> Graph:
1803    """Float If
1804
1805    If the boolean is true returns input 1, otherwise input 2. Type: Float
1806
1807    Args:
1808        bool: Graph of Bool
1809        input 1: Graph of Float
1810        input 2: Graph of Float
1811        
1812
1813    Returns:
1814        Graph: A graph node producing a Float.
1815    """
1816    bool_parsed = parse_bool_graph(bool)
1817    input_1_parsed = parse_float_graph(input_1)
1818    input_2_parsed = parse_float_graph(input_2)
1819    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:
1821def float_lerp(x, float1, float2) -> Graph:
1822    """Float Lerp
1823
1824    Lerps between two floats using the x parameter
1825
1826    Args:
1827        x: Graph of Float
1828        float1: Graph of Float
1829        float2: Graph of Float
1830        
1831
1832    Returns:
1833        Graph: A graph node producing a Float.
1834    """
1835    x_parsed = parse_float_graph(x)
1836    float1_parsed = parse_float_graph(float1)
1837    float2_parsed = parse_float_graph(float2)
1838    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:
1840def float_less_than(float_1, float_2) -> Graph:
1841    """Float Less Than
1842
1843    Checks if the first float is less than the second float
1844
1845    Args:
1846        First Float: Graph of Float
1847        Second Float: Graph of Float
1848        
1849
1850    Returns:
1851        Graph: A graph node producing a Bool.
1852    """
1853    float_1_parsed = parse_float_graph(float_1)
1854    float_2_parsed = parse_float_graph(float_2)
1855    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:
1857def float_less_than_or_equal(float_1, float_2) -> Graph:
1858    """Float Less Than Or Equal
1859
1860    Checks if the first float is less than or equal to the second float
1861
1862    Args:
1863        First Float: Graph of Float
1864        Second Float: Graph of Float
1865        
1866
1867    Returns:
1868        Graph: A graph node producing a Bool.
1869    """
1870    float_1_parsed = parse_float_graph(float_1)
1871    float_2_parsed = parse_float_graph(float_2)
1872    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:
1874def float_max(float1, float2) -> Graph:
1875    """Float Max
1876
1877    Returns the maximum float.
1878
1879    Args:
1880        float1: Graph of Float
1881        float2: Graph of Float
1882        
1883
1884    Returns:
1885        Graph: A graph node producing a Float.
1886    """
1887    float1_parsed = parse_float_graph(float1)
1888    float2_parsed = parse_float_graph(float2)
1889    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:
1891def float_min(float1, float2) -> Graph:
1892    """Float Min
1893
1894    Returns the minimum float.
1895
1896    Args:
1897        float1: Graph of Float
1898        float2: Graph of Float
1899        
1900
1901    Returns:
1902        Graph: A graph node producing a Float.
1903    """
1904    float1_parsed = parse_float_graph(float1)
1905    float2_parsed = parse_float_graph(float2)
1906    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:
1908def float_multiply(float1, float2) -> Graph:
1909    """Float Multiply
1910
1911    Multiplies two floats together.
1912
1913    Args:
1914        float1: Graph of Float
1915        float2: Graph of Float
1916        
1917
1918    Returns:
1919        Graph: A graph node producing a Float.
1920    """
1921    float1_parsed = parse_float_graph(float1)
1922    float2_parsed = parse_float_graph(float2)
1923    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:
1925def float_passthrough(value) -> Graph:
1926    """Float Passthrough
1927
1928    Responds with the value provided. Doing nothing to it.
1929
1930    Args:
1931        value: Graph of Float
1932        
1933
1934    Returns:
1935        Graph: A graph node producing a Float.
1936    """
1937    value_parsed = parse_float_graph(value)
1938    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:
1940def float_pow(float1, float2) -> Graph:
1941    """Float Power
1942
1943    Raises float 1 to the power of float 2
1944
1945    Args:
1946        float 1: Graph of Float
1947        float 2: Graph of Float
1948        
1949
1950    Returns:
1951        Graph: A graph node producing a Float.
1952    """
1953    float1_parsed = parse_float_graph(float1)
1954    float2_parsed = parse_float_graph(float2)
1955    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:
1957def float_round_to_int(float) -> Graph:
1958    """Float Round to Int
1959
1960    Rounds the float to the nearest int
1961
1962    Args:
1963        float: Graph of Float
1964        
1965
1966    Returns:
1967        Graph: A graph node producing a Int.
1968    """
1969    float_parsed = parse_float_graph(float)
1970    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:
1972def float_sin(angle) -> Graph:
1973    """Float Sine
1974
1975    Computes the sine of a float (in radians).
1976
1977    Args:
1978        Angle in radians: Graph of Float
1979        
1980
1981    Returns:
1982        Graph: A graph node producing a Float.
1983    """
1984    angle_parsed = parse_float_graph(angle)
1985    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:
1987def float_square_root(number) -> Graph:
1988    """Float Square Root
1989
1990    Compares the square root of a number
1991
1992    Args:
1993        Number: Graph of Float
1994        
1995
1996    Returns:
1997        Graph: A graph node producing a Float.
1998    """
1999    number_parsed = parse_float_graph(number)
2000    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:
2002def float_squared(number) -> Graph:
2003    """Float Squared
2004
2005    Raises a float to the power of 2.
2006
2007    Args:
2008        Number: Graph of Float
2009        
2010
2011    Returns:
2012        Graph: A graph node producing a Float.
2013    """
2014    number_parsed = parse_float_graph(number)
2015    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:
2017def float_subtract(float1, float2) -> Graph:
2018    """Float Subtract
2019
2020    Adds two floats together.
2021
2022    Args:
2023        float1: Graph of Float
2024        float2: Graph of Float
2025        
2026
2027    Returns:
2028        Graph: A graph node producing a Float.
2029    """
2030    float1_parsed = parse_float_graph(float1)
2031    float2_parsed = parse_float_graph(float2)
2032    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:
2034def image_from_byte_list(bytes) -> Graph:
2035    """Image from Bytes
2036
2037    Given some bytes, parses an image
2038
2039    Args:
2040        bytes: Graph of ByteList
2041        
2042
2043    Returns:
2044        Graph: A graph node producing a Image.
2045    """
2046    bytes_parsed = parse_graph(bytes)
2047    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:
2049def image_to_byte_list(image) -> Graph:
2050    """Image to Byte List
2051
2052    Given an image, converts it to a byte list
2053
2054    Args:
2055        image: Graph of Image
2056        
2057
2058    Returns:
2059        Graph: A graph node producing a ByteList.
2060    """
2061    image_parsed = parse_graph(image)
2062    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:
2064def int_abs(number) -> Graph:
2065    """Int Absolute Value
2066
2067    Returns the absolute value of an int
2068
2069    Args:
2070        number: Graph of Int
2071        
2072
2073    Returns:
2074        Graph: A graph node producing a Int.
2075    """
2076    number_parsed = parse_int_graph(number)
2077    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:
2079def int_add(int_1, int_2) -> Graph:
2080    """Int Add
2081
2082    Adds to ints together
2083
2084    Args:
2085        First Int: Graph of Int
2086        Second Int: Graph of Int
2087        
2088
2089    Returns:
2090        Graph: A graph node producing a Int.
2091    """
2092    int_1_parsed = parse_int_graph(int_1)
2093    int_2_parsed = parse_int_graph(int_2)
2094    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:
2096def int_add_to_dictionary(dictionary, key, value) -> Graph:
2097    """Int Add To Dictionary
2098
2099    Adds a Int to a Dictionary
2100
2101    Args:
2102        dictionary: Graph of Dictionary
2103        key: Graph of String
2104        value: Graph of Int
2105        
2106
2107    Returns:
2108        Graph: A graph node producing a Dictionary.
2109    """
2110    dictionary_parsed = parse_graph(dictionary)
2111    key_parsed = parse_string_graph(key)
2112    value_parsed = parse_int_graph(value)
2113    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:
2115def int_equals(int_1, int_2) -> Graph:
2116    """Int Equals
2117
2118    Checks if two ints are equal
2119
2120    Args:
2121        First Int: Graph of Int
2122        Second Int: Graph of Int
2123        
2124
2125    Returns:
2126        Graph: A graph node producing a Bool.
2127    """
2128    int_1_parsed = parse_int_graph(int_1)
2129    int_2_parsed = parse_int_graph(int_2)
2130    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:
2132def int_greater_than(int_1, int_2) -> Graph:
2133    """Int Greater Than
2134
2135    Checks if the first int is greater than the second int
2136
2137    Args:
2138        First Int: Graph of Int
2139        Second Int: Graph of Int
2140        
2141
2142    Returns:
2143        Graph: A graph node producing a Bool.
2144    """
2145    int_1_parsed = parse_int_graph(int_1)
2146    int_2_parsed = parse_int_graph(int_2)
2147    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:
2149def int_greater_than_or_equal(int_1, int_2) -> Graph:
2150    """Int Greater Than Or Equal
2151
2152    Checks if the first int is greater than or equal to the second int
2153
2154    Args:
2155        First Int: Graph of Int
2156        Second Int: Graph of Int
2157        
2158
2159    Returns:
2160        Graph: A graph node producing a Bool.
2161    """
2162    int_1_parsed = parse_int_graph(int_1)
2163    int_2_parsed = parse_int_graph(int_2)
2164    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:
2166def int_if(bool, input_1, input_2) -> Graph:
2167    """Int If
2168
2169    If the boolean is true returns input 1, otherwise input 2. Type: Int
2170
2171    Args:
2172        bool: Graph of Bool
2173        input 1: Graph of Int
2174        input 2: Graph of Int
2175        
2176
2177    Returns:
2178        Graph: A graph node producing a Int.
2179    """
2180    bool_parsed = parse_bool_graph(bool)
2181    input_1_parsed = parse_int_graph(input_1)
2182    input_2_parsed = parse_int_graph(input_2)
2183    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:
2185def int_less_than(int_1, int_2) -> Graph:
2186    """Int Less Than
2187
2188    Checks if the first int is less than the second int
2189
2190    Args:
2191        First Int: Graph of Int
2192        Second Int: Graph of Int
2193        
2194
2195    Returns:
2196        Graph: A graph node producing a Bool.
2197    """
2198    int_1_parsed = parse_int_graph(int_1)
2199    int_2_parsed = parse_int_graph(int_2)
2200    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:
2202def int_less_than_or_equal(int_1, int_2) -> Graph:
2203    """Int Less Than Or Equal
2204
2205    Checks if the first int is less than or equal to the second int
2206
2207    Args:
2208        First Int: Graph of Int
2209        Second Int: Graph of Int
2210        
2211
2212    Returns:
2213        Graph: A graph node producing a Bool.
2214    """
2215    int_1_parsed = parse_int_graph(int_1)
2216    int_2_parsed = parse_int_graph(int_2)
2217    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:
2219def int_max(int1, int2) -> Graph:
2220    """Int Max
2221
2222    Returns the maximum int.
2223
2224    Args:
2225        int1: Graph of Int
2226        int2: Graph of Int
2227        
2228
2229    Returns:
2230        Graph: A graph node producing a Int.
2231    """
2232    int1_parsed = parse_int_graph(int1)
2233    int2_parsed = parse_int_graph(int2)
2234    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:
2236def int_min(int1, int2) -> Graph:
2237    """Int Min
2238
2239    Returns the minimum int.
2240
2241    Args:
2242        int1: Graph of Int
2243        int2: Graph of Int
2244        
2245
2246    Returns:
2247        Graph: A graph node producing a Int.
2248    """
2249    int1_parsed = parse_int_graph(int1)
2250    int2_parsed = parse_int_graph(int2)
2251    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:
2253def int_multiply(int_1, int_2) -> Graph:
2254    """Int Multiply
2255
2256    Multiplies two integers together
2257
2258    Args:
2259        First Int: Graph of Int
2260        Second Int: Graph of Int
2261        
2262
2263    Returns:
2264        Graph: A graph node producing a Int.
2265    """
2266    int_1_parsed = parse_int_graph(int_1)
2267    int_2_parsed = parse_int_graph(int_2)
2268    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:
2270def int_passthrough(value) -> Graph:
2271    """Int Passthrough
2272
2273    Responds with the value provided. Doing nothing to it.
2274
2275    Args:
2276        value: Graph of Int
2277        
2278
2279    Returns:
2280        Graph: A graph node producing a Int.
2281    """
2282    value_parsed = parse_int_graph(value)
2283    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:
2285def int_subtract(int_1, int_2) -> Graph:
2286    """Int Subtract
2287
2288    Subtracts one int from another
2289
2290    Args:
2291        int 1: Graph of Int
2292        int 2: Graph of Int
2293        
2294
2295    Returns:
2296        Graph: A graph node producing a Int.
2297    """
2298    int_1_parsed = parse_int_graph(int_1)
2299    int_2_parsed = parse_int_graph(int_2)
2300    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:
2302def int_to_float(int) -> Graph:
2303    """Int To Float
2304
2305    Converts an Int to a Float
2306
2307    Args:
2308        int: Graph of Int
2309        
2310
2311    Returns:
2312        Graph: A graph node producing a Float.
2313    """
2314    int_parsed = parse_int_graph(int)
2315    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:
2317def monet_network_download_u_r_l_from_asset_i_d(asset_id) -> Graph:
2318    """Monet Network Download URL from Asset ID
2319
2320    Creates a Download URL from asset ID in the Monet Network
2321
2322    Args:
2323        asset id: Graph of Int
2324        
2325
2326    Returns:
2327        Graph: A graph node producing a String.
2328    """
2329    asset_id_parsed = parse_int_graph(asset_id)
2330    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:
2332def not_(bool) -> Graph:
2333    """Not
2334
2335    Returns the opposite of a boolean
2336
2337    Args:
2338        Bool: Graph of Bool
2339        
2340
2341    Returns:
2342        Graph: A graph node producing a Bool.
2343    """
2344    bool_parsed = parse_bool_graph(bool)
2345    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:
2347def null_value() -> Graph:
2348    """Null Value
2349
2350    Returns a null value
2351
2352    Returns:
2353        Graph: A graph node producing a Null.
2354    """
2355    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:
2357def ok_lab_color_from_components(l, a, b) -> Graph:
2358    """OkLab Color from Components
2359
2360    Given the L, a and b creates the color
2361
2362    Args:
2363        l: Graph of Float
2364        a: Graph of Float
2365        b: Graph of Float
2366        
2367
2368    Returns:
2369        Graph: A graph node producing a OkLabColor.
2370    """
2371    l_parsed = parse_float_graph(l)
2372    a_parsed = parse_float_graph(a)
2373    b_parsed = parse_float_graph(b)
2374    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:
2376def ok_lab_hist_lightness_quantile(hist, quantile) -> Graph:
2377    """OkLab Histogram Lightness Quantile
2378
2379    Given an OkLab histogram and a quantile, returns the lightness value that corresponds to the quantile.
2380
2381    Args:
2382        hist: Graph of OkLabHist
2383        quantile: Graph of Float
2384        
2385
2386    Returns:
2387        Graph: A graph node producing a Float.
2388    """
2389    hist_parsed = parse_graph(hist)
2390    quantile_parsed = parse_float_graph(quantile)
2391    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:
2393def ok_lab_to_r_g_b(ok_lab, color_profile) -> Graph:
2394    """OkLab to RGB
2395
2396    Converts an OkLab color to an RGB color
2397
2398    Args:
2399        OkLab: Graph of OkLabColor
2400        color profile: Graph of ColorProfile
2401        
2402
2403    Returns:
2404        Graph: A graph node producing a RGBColor.
2405    """
2406    ok_lab_parsed = parse_graph(ok_lab)
2407    color_profile_parsed = parse_graph(color_profile)
2408    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:
2410def or_(bool1, bool2) -> Graph:
2411    """Or
2412
2413    Returns true if either inputs are true.
2414
2415    Args:
2416        bool1: Graph of Bool
2417        bool2: Graph of Bool
2418        
2419
2420    Returns:
2421        Graph: A graph node producing a Bool.
2422    """
2423    bool1_parsed = parse_bool_graph(bool1)
2424    bool2_parsed = parse_bool_graph(bool2)
2425    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:
2427def painter_add_ellipse_with_render_style(painter, center, dimensions, rotation, render_style, instances) -> Graph:
2428    """Painter Add Ellipse with Render Style
2429
2430    Adds an ellipse to the painter and draws it with the render style. Set some transforms on the ellipse as well.
2431
2432    Args:
2433        painter: Graph of Painter
2434        center point of the ellipse: Graph of Point2f
2435        width (a) and height (b) of the ellipse: Graph of Vector2f
2436        rotation angle in radians: Graph of Float
2437        render style: Graph of RenderStyle
2438        instances: Graph of Transform2List
2439        
2440
2441    Returns:
2442        Graph: A graph node producing a Painter.
2443    """
2444    painter_parsed = parse_graph(painter)
2445    center_parsed = parse_graph(center)
2446    dimensions_parsed = parse_graph(dimensions)
2447    rotation_parsed = parse_float_graph(rotation)
2448    render_style_parsed = parse_graph(render_style)
2449    instances_parsed = parse_graph(instances)
2450    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:
2452def painter_add_path_with_render_style(painter, path, render_style, instances) -> Graph:
2453    """Painter Add Path with Render Style
2454
2455    Adds a path to the painter and draws it with the render style. Set some transforms on the path as well.
2456
2457    Args:
2458        painter: Graph of Painter
2459        path: Graph of Path
2460        render style: Graph of RenderStyle
2461        instances: Graph of Transform2List
2462        
2463
2464    Returns:
2465        Graph: A graph node producing a Painter.
2466    """
2467    painter_parsed = parse_graph(painter)
2468    path_parsed = parse_graph(path)
2469    render_style_parsed = parse_graph(render_style)
2470    instances_parsed = parse_graph(instances)
2471    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:
2473def painter_add_rectangle_with_render_style(painter, center, dimensions, rotation, render_style, instances) -> Graph:
2474    """Painter Add Rectangle with Render Style
2475
2476    Adds a rectangle to the painter and draws it with the render style. Set some transforms on the rectangle as well.
2477
2478    Args:
2479        painter: Graph of Painter
2480        center point of the rectangle: Graph of Point2f
2481        width and height of the rectangle: Graph of Vector2f
2482        rotation angle in radians: Graph of Float
2483        render style: Graph of RenderStyle
2484        instances: Graph of Transform2List
2485        
2486
2487    Returns:
2488        Graph: A graph node producing a Painter.
2489    """
2490    painter_parsed = parse_graph(painter)
2491    center_parsed = parse_graph(center)
2492    dimensions_parsed = parse_graph(dimensions)
2493    rotation_parsed = parse_float_graph(rotation)
2494    render_style_parsed = parse_graph(render_style)
2495    instances_parsed = parse_graph(instances)
2496    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:
2498def painter_new(color_profile) -> Graph:
2499    """Painter New
2500
2501    Creates a new painter.
2502
2503    Args:
2504        color profile: Graph of ColorProfile
2505        
2506
2507    Returns:
2508        Graph: A graph node producing a Painter.
2509    """
2510    color_profile_parsed = parse_graph(color_profile)
2511    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:
2513def path_line_to_point(path, point) -> Graph:
2514    """Path Line to Point
2515
2516    Moves the path from it's current point to another at another point with a line.
2517
2518    Args:
2519        path: Graph of Path
2520        point: Graph of Point2f
2521        
2522
2523    Returns:
2524        Graph: A graph node producing a Path.
2525    """
2526    path_parsed = parse_graph(path)
2527    point_parsed = parse_graph(point)
2528    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:
2530def path_move_to_point(path, point) -> Graph:
2531    """Path Move to Point
2532
2533    Moves the path to a specified point without drawing anything.
2534
2535    Args:
2536        path: Graph of Path
2537        point: Graph of Point2f
2538        
2539
2540    Returns:
2541        Graph: A graph node producing a Path.
2542    """
2543    path_parsed = parse_graph(path)
2544    point_parsed = parse_graph(point)
2545    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:
2547def path_new() -> Graph:
2548    """Path New
2549
2550    Creates a new empty path.
2551
2552    Returns:
2553        Graph: A graph node producing a Path.
2554    """
2555    return path_new_internal()

Path New

Creates a new empty path.

Returns: Graph: A graph node producing a Path.

def pi() -> Graph:
2557def pi() -> Graph:
2558    """Pi
2559
2560    Returns π as a float
2561
2562    Returns:
2563        Graph: A graph node producing a Float.
2564    """
2565    return pi_internal()

Pi

Returns π as a float

Returns: Graph: A graph node producing a Float.

def point2f_from_components(x, y) -> Graph:
2567def point2f_from_components(x, y) -> Graph:
2568    """Point 2 Float from Components
2569
2570    Given an x and y creates a point
2571
2572    Args:
2573        x: Graph of Float
2574        y: Graph of Float
2575        
2576
2577    Returns:
2578        Graph: A graph node producing a Point2f.
2579    """
2580    x_parsed = parse_float_graph(x)
2581    y_parsed = parse_float_graph(y)
2582    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:
2584def r_g_b_a_color_add_to_dictionary(dictionary, key, value) -> Graph:
2585    """RGBA Color Add To Dictionary
2586
2587    Adds a RGBA Color to a Dictionary
2588
2589    Args:
2590        dictionary: Graph of Dictionary
2591        key: Graph of String
2592        value: Graph of RGBAColor
2593        
2594
2595    Returns:
2596        Graph: A graph node producing a Dictionary.
2597    """
2598    dictionary_parsed = parse_graph(dictionary)
2599    key_parsed = parse_string_graph(key)
2600    value_parsed = parse_graph(value)
2601    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:
2603def r_g_b_a_color_from_components(r, g, b, a) -> Graph:
2604    """RGBA Color from Components
2605
2606    Given the r, g, b and a creates the color
2607
2608    Args:
2609        red: Graph of Float
2610        green: Graph of Float
2611        blue: Graph of Float
2612        alpha: Graph of Float
2613        
2614
2615    Returns:
2616        Graph: A graph node producing a RGBAColor.
2617    """
2618    r_parsed = parse_float_graph(r)
2619    g_parsed = parse_float_graph(g)
2620    b_parsed = parse_float_graph(b)
2621    a_parsed = parse_float_graph(a)
2622    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:
2624def r_g_b_a_color_passthrough(value) -> Graph:
2625    """RGBA Color Passthrough
2626
2627    Responds with the value provided. Doing nothing to it.
2628
2629    Args:
2630        value: Graph of RGBAColor
2631        
2632
2633    Returns:
2634        Graph: A graph node producing a RGBAColor.
2635    """
2636    value_parsed = parse_graph(value)
2637    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:
2639def r_g_b_color_add_to_dictionary(dictionary, key, value) -> Graph:
2640    """RGB Color Add To Dictionary
2641
2642    Adds a RGB Color to a Dictionary
2643
2644    Args:
2645        dictionary: Graph of Dictionary
2646        key: Graph of String
2647        value: Graph of RGBColor
2648        
2649
2650    Returns:
2651        Graph: A graph node producing a Dictionary.
2652    """
2653    dictionary_parsed = parse_graph(dictionary)
2654    key_parsed = parse_string_graph(key)
2655    value_parsed = parse_graph(value)
2656    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:
2658def r_g_b_color_from_components(r, g, b) -> Graph:
2659    """RGB Color from Components
2660
2661    Given the r, g and b creates the color
2662
2663    Args:
2664        red: Graph of Float
2665        green: Graph of Float
2666        blue: Graph of Float
2667        
2668
2669    Returns:
2670        Graph: A graph node producing a RGBColor.
2671    """
2672    r_parsed = parse_float_graph(r)
2673    g_parsed = parse_float_graph(g)
2674    b_parsed = parse_float_graph(b)
2675    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:
2677def r_g_b_color_passthrough(value) -> Graph:
2678    """RGB Color Passthrough
2679
2680    Responds with the value provided. Doing nothing to it.
2681
2682    Args:
2683        value: Graph of RGBColor
2684        
2685
2686    Returns:
2687        Graph: A graph node producing a RGBColor.
2688    """
2689    value_parsed = parse_graph(value)
2690    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:
2692def r_g_b_to_ok_lab(rgb, color_profile) -> Graph:
2693    """RGB to OkLab
2694
2695    Converts an RGB color to an OkLab color
2696
2697    Args:
2698        RGB: Graph of RGBColor
2699        color profile: Graph of ColorProfile
2700        
2701
2702    Returns:
2703        Graph: A graph node producing a OkLabColor.
2704    """
2705    rgb_parsed = parse_graph(rgb)
2706    color_profile_parsed = parse_graph(color_profile)
2707    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:
2709def render_style_brush_and_fill(brush, fill) -> Graph:
2710    """Render Style Brush and Fill
2711
2712    Creates a render style that will have a brush and a fill.
2713
2714    Args:
2715        brush: Graph of Brush
2716        fill: Graph of Fill
2717        
2718
2719    Returns:
2720        Graph: A graph node producing a RenderStyle.
2721    """
2722    brush_parsed = parse_graph(brush)
2723    fill_parsed = parse_graph(fill)
2724    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:
2726def render_style_brush_only(brush) -> Graph:
2727    """Render Style Brush Only
2728
2729    Creates a render style that will only have a brush.
2730
2731    Args:
2732        brush: Graph of Brush
2733        
2734
2735    Returns:
2736        Graph: A graph node producing a RenderStyle.
2737    """
2738    brush_parsed = parse_graph(brush)
2739    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:
2741def render_style_fill_only(fill) -> Graph:
2742    """Render Style Fill Only
2743
2744    Creates a render style that will only have a fill.
2745
2746    Args:
2747        fill: Graph of Fill
2748        
2749
2750    Returns:
2751        Graph: A graph node producing a RenderStyle.
2752    """
2753    fill_parsed = parse_graph(fill)
2754    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:
2756def sequence_adjust_speed(sequence, factor) -> Graph:
2757    """Sequence Adjust Speed
2758
2759    Adjusts the speed of a sequence by a speed factor.
2760
2761    Args:
2762        sequence: Graph of Sequence
2763        factor: Graph of Float
2764        
2765
2766    Returns:
2767        Graph: A graph node producing a Sequence.
2768    """
2769    sequence_parsed = parse_graph(sequence)
2770    factor_parsed = parse_float_graph(factor)
2771    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:
2773def sequence_composition_at_time(sequence, time) -> Graph:
2774    """Sequence Composition at Time
2775
2776    Extracts an composition from a sequence at a particular time
2777
2778    Args:
2779        sequence: Graph of Sequence
2780        time: Graph of Float
2781        
2782
2783    Returns:
2784        Graph: A graph node producing a Composition.
2785    """
2786    sequence_parsed = parse_graph(sequence)
2787    time_parsed = parse_float_graph(time)
2788    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:
2790def sequence_concatenate(sequence_1, sequence_2) -> Graph:
2791    """Sequence Concatenate
2792
2793    Given two sequences, combines them into one by playing the first one and then the second one.
2794
2795    Args:
2796        sequence 1: Graph of Sequence
2797        sequence 2: Graph of Sequence
2798        
2799
2800    Returns:
2801        Graph: A graph node producing a Sequence.
2802    """
2803    sequence_1_parsed = parse_graph(sequence_1)
2804    sequence_2_parsed = parse_graph(sequence_2)
2805    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:
2807def sequence_duration(sequence) -> Graph:
2808    """Sequence Duration
2809
2810    Gets the duration from a sequence
2811
2812    Args:
2813        sequence: Graph of Sequence
2814        
2815
2816    Returns:
2817        Graph: A graph node producing a Float.
2818    """
2819    sequence_parsed = parse_graph(sequence)
2820    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:
2822def sequence_from_composition_and_duration(composition, duration) -> Graph:
2823    """Sequence from Composition and Duration
2824
2825    Give a Composition and a Duration. Returns a Sequence.
2826
2827    Args:
2828        composition: Graph of Composition
2829        duration: Graph of Float
2830        
2831
2832    Returns:
2833        Graph: A graph node producing a Sequence.
2834    """
2835    composition_parsed = parse_graph(composition)
2836    duration_parsed = parse_float_graph(duration)
2837    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:
2839def sequence_from_u_r_l(url) -> Graph:
2840    """Sequence from URL
2841
2842    Creates a sequence from URL
2843
2844    Args:
2845        url: Graph of String
2846        
2847
2848    Returns:
2849        Graph: A graph node producing a Sequence.
2850    """
2851    url_parsed = parse_string_graph(url)
2852    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:
2854def sequence_graph(duration, time, frame) -> Graph:
2855    """Sequence Graph
2856
2857    Creates a sequence that runs the graph to get the duration and the frame for each time.
2858
2859    Args:
2860        duration: Graph of Float
2861        time: Graph of Float
2862        frame: Graph of Composition
2863        
2864
2865    Returns:
2866        Graph: A graph node producing a Sequence.
2867    """
2868    duration_parsed = parse_float_graph(duration)
2869    time_parsed = parse_float_graph(time)
2870    frame_parsed = parse_graph(frame)
2871    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:
2873def sequence_grayscale(sequence) -> Graph:
2874    """Sequence Grayscale
2875
2876    Creates a sequence that converts the video to grayscale
2877
2878    Args:
2879        sequence: Graph of Sequence
2880        
2881
2882    Returns:
2883        Graph: A graph node producing a Sequence.
2884    """
2885    sequence_parsed = parse_graph(sequence)
2886    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:
2888def sequence_passthrough(value) -> Graph:
2889    """Sequence Passthrough
2890
2891    Responds with the value provided. Doing nothing to it.
2892
2893    Args:
2894        value: Graph of Sequence
2895        
2896
2897    Returns:
2898        Graph: A graph node producing a Sequence.
2899    """
2900    value_parsed = parse_graph(value)
2901    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:
2903def sequence_reverse(sequence) -> Graph:
2904    """Sequence Reverse
2905
2906    Given a sequence. Reverses it.
2907
2908    Args:
2909        sequence: Graph of Sequence
2910        
2911
2912    Returns:
2913        Graph: A graph node producing a Sequence.
2914    """
2915    sequence_parsed = parse_graph(sequence)
2916    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:
2918def sequence_to_mp4(sequence, frame_rate) -> Graph:
2919    """Sequence To MP4
2920
2921    Given a sequence. Converts it to MP4 return a local file to where that MP4 is stored.
2922
2923    Args:
2924        sequence: Graph of Sequence
2925        frame rate: Graph of Int
2926        
2927
2928    Returns:
2929        Graph: A graph node producing a ByteList.
2930    """
2931    sequence_parsed = parse_graph(sequence)
2932    frame_rate_parsed = parse_int_graph(frame_rate)
2933    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:
2935def sequence_trim_back(sequence, amount) -> Graph:
2936    """Sequence Trim Back
2937
2938    Given a sequence. Trims from the back.
2939
2940    Args:
2941        sequence: Graph of Sequence
2942        amount: Graph of Float
2943        
2944
2945    Returns:
2946        Graph: A graph node producing a Sequence.
2947    """
2948    sequence_parsed = parse_graph(sequence)
2949    amount_parsed = parse_float_graph(amount)
2950    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:
2952def sequence_trim_front(sequence, amount) -> Graph:
2953    """Sequence Trim Front
2954
2955    Given a sequence. Trims from the front.
2956
2957    Args:
2958        sequence: Graph of Sequence
2959        amount: Graph of Float
2960        
2961
2962    Returns:
2963        Graph: A graph node producing a Sequence.
2964    """
2965    sequence_parsed = parse_graph(sequence)
2966    amount_parsed = parse_float_graph(amount)
2967    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:
2969def string_if(bool, input_1, input_2) -> Graph:
2970    """String If
2971
2972    If the boolean is true returns input 1, otherwise input 2. Type: String
2973
2974    Args:
2975        bool: Graph of Bool
2976        input 1: Graph of String
2977        input 2: Graph of String
2978        
2979
2980    Returns:
2981        Graph: A graph node producing a String.
2982    """
2983    bool_parsed = parse_bool_graph(bool)
2984    input_1_parsed = parse_string_graph(input_1)
2985    input_2_parsed = parse_string_graph(input_2)
2986    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:
2988def transform2_identity() -> Graph:
2989    """Transform 2D Identity
2990
2991    Creates a 2D transform that is the identity transform.
2992
2993    Returns:
2994        Graph: A graph node producing a Transform2.
2995    """
2996    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:
2998def transform2_if(bool, input_1, input_2) -> Graph:
2999    """Transform 2D If
3000
3001    If the boolean is true returns input 1, otherwise input 2. Type: Transform2
3002
3003    Args:
3004        bool: Graph of Bool
3005        input 1: Graph of Transform2
3006        input 2: Graph of Transform2
3007        
3008
3009    Returns:
3010        Graph: A graph node producing a Transform2.
3011    """
3012    bool_parsed = parse_bool_graph(bool)
3013    input_1_parsed = parse_graph(input_1)
3014    input_2_parsed = parse_graph(input_2)
3015    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:
3017def transform2_rotate(transform, angle) -> Graph:
3018    """Transform 2D Rotate
3019
3020    Applies a rotation to a 2D transform. Rotation is in radians.
3021
3022    Args:
3023        transform: Graph of Transform2
3024        angle in radians: Graph of Float
3025        
3026
3027    Returns:
3028        Graph: A graph node producing a Transform2.
3029    """
3030    transform_parsed = parse_graph(transform)
3031    angle_parsed = parse_float_graph(angle)
3032    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:
3034def transform2_scale(transform, scale) -> Graph:
3035    """Transform 2D Scale
3036
3037    Applies a scale to a 2D transform.
3038
3039    Args:
3040        transform: Graph of Transform2
3041        scale: Graph of Vector2f
3042        
3043
3044    Returns:
3045        Graph: A graph node producing a Transform2.
3046    """
3047    transform_parsed = parse_graph(transform)
3048    scale_parsed = parse_graph(scale)
3049    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:
3051def transform2_to_list(item) -> Graph:
3052    """Transform 2D to List
3053
3054    Converts Transform 2D to a single item list
3055
3056    Args:
3057        item: Graph of Transform2
3058        
3059
3060    Returns:
3061        Graph: A graph node producing a Transform2List.
3062    """
3063    item_parsed = parse_graph(item)
3064    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:
3066def transform2_translation(transform, translation) -> Graph:
3067    """Transform 2D Translation
3068
3069    Applies a translation to a 2D transform.
3070
3071    Args:
3072        transform: Graph of Transform2
3073        translation: Graph of Vector2f
3074        
3075
3076    Returns:
3077        Graph: A graph node producing a Transform2.
3078    """
3079    transform_parsed = parse_graph(transform)
3080    translation_parsed = parse_graph(translation)
3081    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:
3083def upload_byte_list(bytes, url, content_type) -> Graph:
3084    """Upload Byte List
3085
3086    Given bytes and a URL. Performs a PUT request and uploads the bytes
3087
3088    Args:
3089        bytes: Graph of ByteList
3090        url: Graph of String
3091        content type: Graph of String
3092        
3093
3094    Returns:
3095        Graph: A graph node producing a Void.
3096    """
3097    bytes_parsed = parse_graph(bytes)
3098    url_parsed = parse_string_graph(url)
3099    content_type_parsed = parse_string_graph(content_type)
3100    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:
3102def upload_file_path(path, url, content_type) -> Graph:
3103    """Upload File Path
3104
3105    Reads a file from a local path on disk and uploads its contents to a URL via PUT request
3106
3107    Args:
3108        local file path to read: Graph of String
3109        url: Graph of String
3110        content type: Graph of String
3111        
3112
3113    Returns:
3114        Graph: A graph node producing a Void.
3115    """
3116    path_parsed = parse_string_graph(path)
3117    url_parsed = parse_string_graph(url)
3118    content_type_parsed = parse_string_graph(content_type)
3119    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:
3121def vector2_int_to_vector2_float(vector) -> Graph:
3122    """Vector 2 Int to Vector 2 Float
3123
3124    Given a Vector 2 Int. Creates a Vector 2 Float.
3125
3126    Args:
3127        vector: Graph of Vector2i
3128        
3129
3130    Returns:
3131        Graph: A graph node producing a Vector2f.
3132    """
3133    vector_parsed = parse_graph(vector)
3134    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:
3136def vector2f_add(lhs, rhs) -> Graph:
3137    """Vector 2 Float Add
3138
3139    Add two Vector 2s of Floats
3140
3141    Args:
3142        The vector on the left hand side of the add: Graph of Vector2f
3143        The vector on the right hand side of the add: Graph of Vector2f
3144        
3145
3146    Returns:
3147        Graph: A graph node producing a Vector2f.
3148    """
3149    lhs_parsed = parse_graph(lhs)
3150    rhs_parsed = parse_graph(rhs)
3151    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:
3153def vector2f_add_to_dictionary(dictionary, key, value) -> Graph:
3154    """Vector 2 Float Add To Dictionary
3155
3156    Adds a Vector 2 Float to a Dictionary
3157
3158    Args:
3159        dictionary: Graph of Dictionary
3160        key: Graph of String
3161        value: Graph of Vector2f
3162        
3163
3164    Returns:
3165        Graph: A graph node producing a Dictionary.
3166    """
3167    dictionary_parsed = parse_graph(dictionary)
3168    key_parsed = parse_string_graph(key)
3169    value_parsed = parse_graph(value)
3170    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:
3172def vector2f_from_components(x, y) -> Graph:
3173    """Vector 2 Float from Components
3174
3175    Given an x and y creates a vector.
3176
3177    Args:
3178        x: Graph of Float
3179        y: Graph of Float
3180        
3181
3182    Returns:
3183        Graph: A graph node producing a Vector2f.
3184    """
3185    x_parsed = parse_float_graph(x)
3186    y_parsed = parse_float_graph(y)
3187    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:
3189def vector2f_normalize(vector) -> Graph:
3190    """Vector 2 Float Normalize
3191
3192    Normalizes a Vector. Converting it's length to 1.
3193
3194    Args:
3195        Vector: Graph of Vector2f
3196        
3197
3198    Returns:
3199        Graph: A graph node producing a Vector2f.
3200    """
3201    vector_parsed = parse_graph(vector)
3202    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:
3204def vector2f_passthrough(value) -> Graph:
3205    """Vector 2 Float Passthrough
3206
3207    Responds with the value provided. Doing nothing to it.
3208
3209    Args:
3210        value: Graph of Vector2f
3211        
3212
3213    Returns:
3214        Graph: A graph node producing a Vector2f.
3215    """
3216    value_parsed = parse_graph(value)
3217    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:
3219def vector2f_scalar_multiply(vector, scalar) -> Graph:
3220    """Vector 2 Float Scalar Multiply
3221
3222    Multiplies each element of the Vector as a scalar
3223
3224    Args:
3225        Vector: Graph of Vector2f
3226        Scalar: Graph of Float
3227        
3228
3229    Returns:
3230        Graph: A graph node producing a Vector2f.
3231    """
3232    vector_parsed = parse_graph(vector)
3233    scalar_parsed = parse_float_graph(scalar)
3234    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:
3236def vector2f_x(vector) -> Graph:
3237    """Vector 2 Float get X
3238
3239    Retrieves the X component of a Vector 2 Float.
3240
3241    Args:
3242        vector: Graph of Vector2f
3243        
3244
3245    Returns:
3246        Graph: A graph node producing a Float.
3247    """
3248    vector_parsed = parse_graph(vector)
3249    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:
3251def vector2f_y(vector) -> Graph:
3252    """Vector 2 Float get Y
3253
3254    Retrieves the Y component of a Vector 2 Float.
3255
3256    Args:
3257        vector: Graph of Vector2f
3258        
3259
3260    Returns:
3261        Graph: A graph node producing a Float.
3262    """
3263    vector_parsed = parse_graph(vector)
3264    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:
3266def vector2i_add(lhs, rhs) -> Graph:
3267    """Vector 2 Int Add
3268
3269    Add two Vector 2s of Ints
3270
3271    Args:
3272        The vector on the left hand side of the add: Graph of Vector2i
3273        The vector on the right hand side of the add: Graph of Vector2i
3274        
3275
3276    Returns:
3277        Graph: A graph node producing a Vector2i.
3278    """
3279    lhs_parsed = parse_graph(lhs)
3280    rhs_parsed = parse_graph(rhs)
3281    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:
3283def vector2i_add_to_dictionary(dictionary, key, value) -> Graph:
3284    """Vector 2 Int Add To Dictionary
3285
3286    Adds a Vector 2 Int to a Dictionary
3287
3288    Args:
3289        dictionary: Graph of Dictionary
3290        key: Graph of String
3291        value: Graph of Vector2i
3292        
3293
3294    Returns:
3295        Graph: A graph node producing a Dictionary.
3296    """
3297    dictionary_parsed = parse_graph(dictionary)
3298    key_parsed = parse_string_graph(key)
3299    value_parsed = parse_graph(value)
3300    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:
3302def vector2i_from_components(x, y) -> Graph:
3303    """Vector 2 Int from Components
3304
3305    Given an x and y creates a vector.
3306
3307    Args:
3308        x: Graph of Int
3309        y: Graph of Int
3310        
3311
3312    Returns:
3313        Graph: A graph node producing a Vector2i.
3314    """
3315    x_parsed = parse_int_graph(x)
3316    y_parsed = parse_int_graph(y)
3317    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:
3319def vector2i_passthrough(value) -> Graph:
3320    """Vector 2 Int Passthrough
3321
3322    Responds with the value provided. Doing nothing to it.
3323
3324    Args:
3325        value: Graph of Vector2i
3326        
3327
3328    Returns:
3329        Graph: A graph node producing a Vector2i.
3330    """
3331    value_parsed = parse_graph(value)
3332    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:
3334def vector2i_to_vector2f(vector) -> Graph:
3335    """Vector 2 Int to Vector 2 Float
3336
3337    Given a Vector 2 Int. Creates a Vector 2 Float.
3338
3339    Args:
3340        vector: Graph of Vector2i
3341        
3342
3343    Returns:
3344        Graph: A graph node producing a Vector2f.
3345    """
3346    vector_parsed = parse_graph(vector)
3347    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:
3349def vector2i_x(vector) -> Graph:
3350    """Vector 2 Int get X
3351
3352    Retrieves the X component of a Vector 2 Int.
3353
3354    Args:
3355        vector: Graph of Vector2i
3356        
3357
3358    Returns:
3359        Graph: A graph node producing a Int.
3360    """
3361    vector_parsed = parse_graph(vector)
3362    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:
3364def vector2i_y(vector) -> Graph:
3365    """Vector 2 Int get Y
3366
3367    Retrieves the Y component of a Vector 2 Int.
3368
3369    Args:
3370        vector: Graph of Vector2i
3371        
3372
3373    Returns:
3374        Graph: A graph node producing a Int.
3375    """
3376    vector_parsed = parse_graph(vector)
3377    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:
3379def vector3f_add(lhs, rhs) -> Graph:
3380    """Vector 3 Float Add
3381
3382    Add two Vector 3s of Floats
3383
3384    Args:
3385        The vector on the left hand side of the add: Graph of Vector3f
3386        The vector on the right hand side of the add: Graph of Vector3f
3387        
3388
3389    Returns:
3390        Graph: A graph node producing a Vector3f.
3391    """
3392    lhs_parsed = parse_graph(lhs)
3393    rhs_parsed = parse_graph(rhs)
3394    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:
3396def vector3f_from_components(x, y, z) -> Graph:
3397    """Vector 3 Float from Components
3398
3399    Given an x, y and z creates a vector floats.
3400
3401    Args:
3402        x: Graph of Float
3403        y: Graph of Float
3404        z: Graph of Float
3405        
3406
3407    Returns:
3408        Graph: A graph node producing a Vector3f.
3409    """
3410    x_parsed = parse_float_graph(x)
3411    y_parsed = parse_float_graph(y)
3412    z_parsed = parse_float_graph(z)
3413    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:
3415def vector3f_normalize(vector) -> Graph:
3416    """Vector 3 Normalize
3417
3418    Normalizes a Vector 3 Float. Converting it's length to 1.
3419
3420    Args:
3421        Vector: Graph of Vector3f
3422        
3423
3424    Returns:
3425        Graph: A graph node producing a Vector3f.
3426    """
3427    vector_parsed = parse_graph(vector)
3428    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:
3430def vector3f_x(vector) -> Graph:
3431    """Vector 3D Float X
3432
3433    Gets the value in the x component for the provided vector
3434
3435    Args:
3436        vector: Graph of Vector3f
3437        
3438
3439    Returns:
3440        Graph: A graph node producing a Float.
3441    """
3442    vector_parsed = parse_graph(vector)
3443    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:
3445def vector3f_y(vector) -> Graph:
3446    """Vector 3D Y Float
3447
3448    Gets the value in the y component for the provided vector
3449
3450    Args:
3451        vector: Graph of Vector3f
3452        
3453
3454    Returns:
3455        Graph: A graph node producing a Float.
3456    """
3457    vector_parsed = parse_graph(vector)
3458    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:
3460def vector3f_z(vector) -> Graph:
3461    """Vector 3D Float Z
3462
3463    Gets the value in the z component for the provided vector
3464
3465    Args:
3466        vector: Graph of Vector3f
3467        
3468
3469    Returns:
3470        Graph: A graph node producing a Float.
3471    """
3472    vector_parsed = parse_graph(vector)
3473    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:
3475def xor(bool1, bool2) -> Graph:
3476    """Exclusive Or
3477
3478    Returns true if either the inputs are true. But false if both are true.
3479
3480    Args:
3481        the first bool: Graph of Bool
3482        The second bool: Graph of Bool
3483        
3484
3485    Returns:
3486        Graph: A graph node producing a Bool.
3487    """
3488    bool1_parsed = parse_bool_graph(bool1)
3489    bool2_parsed = parse_bool_graph(bool2)
3490    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.