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

The result of executing a graph node.

def type_definition(self, /):
def type_name(self, /):
def as_bool(self, /):
def as_int(self, /):
def as_float(self, /):
def as_string(self, /):
def as_float_list(self, /):
def as_int_list(self, /):
def as_composition(self, /):
def as_sequence(self, /):
def as_vector2i(self, /):
def as_vector2f(self, /):
def as_rgba_color(self, /):
def as_bounds2f(self, /):
class TypeDefinition:
description
name
display_name
class NodeDefinition:
display_name
node_type_id
name
output_type
description
inputs
class NodeDefinitionInput:
name
description
input_type
class ImageRecipe:

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

def to_image_bytes(self, /, context):
class Bounds:
y
height
width
x
def load_composition(value) -> Graph:
70def load_composition(value) -> Graph:
71    return parse_composition_graph(value)
def int_constant(value) -> Graph:
79def int_constant(value) -> Graph:
80    return _internal.int_constant_internal(int(value))
def float_constant(value) -> Graph:
82def float_constant(value) -> Graph:
83    return _internal.float_constant_internal(float(value))
def string_constant(value: str) -> Graph:
85def string_constant(value: str) -> Graph:
86    return _internal.string_constant_internal(value)
def bool_constant(value: bool) -> Graph:
88def bool_constant(value: bool) -> Graph:
89    return _internal.bool_constant_internal(value)
def byte_list_constant(value) -> Graph:
73def byte_list_constant(value) -> Graph:
74    return _internal.byte_list_constant_internal(value)
def point2i_list_constant(value) -> Graph:
76def point2i_list_constant(value) -> Graph:
77    return _internal.point2i_list_constant_internal(value)
def abs(number) -> Graph:
104def abs(number) -> Graph:
105    """Absolute Value
106
107    Returns the absolute value of a float
108
109    Args:
110        number: Graph of Float
111        
112
113    Returns:
114        Graph: A graph node producing a Float.
115    """
116    number_parsed = parse_float_graph(number)
117    return _internal.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:
119def and_(bool1, bool2) -> Graph:
120    """And
121
122    Returns true if both inputs are true.
123
124    Args:
125        the first bool: Graph of Bool
126        The second bool: Graph of Bool
127        
128
129    Returns:
130        Graph: A graph node producing a Bool.
131    """
132    bool1_parsed = parse_bool_graph(bool1)
133    bool2_parsed = parse_bool_graph(bool2)
134    return _internal.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:
136def bool_add_to_dictionary(dictionary, key, value) -> Graph:
137    """Bool Add To Dictionary
138
139    Adds a Bool to a Dictionary
140
141    Args:
142        dictionary: Graph of Dictionary
143        key: Graph of String
144        value: Graph of Bool
145        
146
147    Returns:
148        Graph: A graph node producing a Dictionary.
149    """
150    dictionary_parsed = parse_graph(dictionary)
151    key_parsed = parse_string_graph(key)
152    value_parsed = parse_bool_graph(value)
153    return _internal.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:
155def bool_if(bool, input_1, input_2) -> Graph:
156    """Bool If
157
158    If the boolean is true returns input 1, otherwise input 2. Type: Bool
159
160    Args:
161        bool: Graph of Bool
162        input 1: Graph of Bool
163        input 2: Graph of Bool
164        
165
166    Returns:
167        Graph: A graph node producing a Bool.
168    """
169    bool_parsed = parse_bool_graph(bool)
170    input_1_parsed = parse_bool_graph(input_1)
171    input_2_parsed = parse_bool_graph(input_2)
172    return _internal.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:
174def bounds2f_from_x_y_width_height(x, y, width, height) -> Graph:
175    """Bounds 2D Float from X, Y, Width & Height
176
177    Creates the bounds of a 2D float region from its X, Y, Width and Height.
178
179    Args:
180        x: Graph of Float
181        y: Graph of Float
182        width: Graph of Float
183        height: Graph of Float
184        
185
186    Returns:
187        Graph: A graph node producing a Bounds2f.
188    """
189    x_parsed = parse_float_graph(x)
190    y_parsed = parse_float_graph(y)
191    width_parsed = parse_float_graph(width)
192    height_parsed = parse_float_graph(height)
193    return _internal.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 bounds2f_height(bounds) -> Graph:
195def bounds2f_height(bounds) -> Graph:
196    """Bounds2f Height
197
198    Gets the height of the bounds.
199
200    Args:
201        bounds: Graph of Bounds2f
202        
203
204    Returns:
205        Graph: A graph node producing a Float.
206    """
207    bounds_parsed = parse_graph(bounds)
208    return _internal.bounds2f_height_internal(bounds_parsed)

Bounds2f Height

Gets the height of the bounds.

Args: bounds: Graph of Bounds2f

Returns: Graph: A graph node producing a Float.

def bounds2f_min_x(bounds) -> Graph:
210def bounds2f_min_x(bounds) -> Graph:
211    """Bounds2f Min X
212
213    Gets the minimum X coordinate (left edge) of the bounds.
214
215    Args:
216        bounds: Graph of Bounds2f
217        
218
219    Returns:
220        Graph: A graph node producing a Float.
221    """
222    bounds_parsed = parse_graph(bounds)
223    return _internal.bounds2f_min_x_internal(bounds_parsed)

Bounds2f Min X

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

Args: bounds: Graph of Bounds2f

Returns: Graph: A graph node producing a Float.

def bounds2f_min_y(bounds) -> Graph:
225def bounds2f_min_y(bounds) -> Graph:
226    """Bounds2f Min Y
227
228    Gets the minimum Y coordinate (top edge) of the bounds.
229
230    Args:
231        bounds: Graph of Bounds2f
232        
233
234    Returns:
235        Graph: A graph node producing a Float.
236    """
237    bounds_parsed = parse_graph(bounds)
238    return _internal.bounds2f_min_y_internal(bounds_parsed)

Bounds2f Min Y

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

Args: bounds: Graph of Bounds2f

Returns: Graph: A graph node producing a Float.

def bounds2f_width(bounds) -> Graph:
240def bounds2f_width(bounds) -> Graph:
241    """Bounds2f Width
242
243    Gets the width of the bounds.
244
245    Args:
246        bounds: Graph of Bounds2f
247        
248
249    Returns:
250        Graph: A graph node producing a Float.
251    """
252    bounds_parsed = parse_graph(bounds)
253    return _internal.bounds2f_width_internal(bounds_parsed)

Bounds2f Width

Gets the width of the bounds.

Args: bounds: Graph of Bounds2f

Returns: Graph: A graph node producing a Float.

def bounds2i_from_x_y_width_height(x, y, width, height) -> Graph:
255def bounds2i_from_x_y_width_height(x, y, width, height) -> Graph:
256    """Bounds 2D Int from X, Y, Width & Height
257
258    Creates the bounds of a 2D array from its X, Y, Width and Height.
259
260    Args:
261        x: Graph of Int
262        y: Graph of Int
263        width: Graph of Int
264        height: Graph of Int
265        
266
267    Returns:
268        Graph: A graph node producing a Bounds2i.
269    """
270    x_parsed = parse_int_graph(x)
271    y_parsed = parse_int_graph(y)
272    width_parsed = parse_int_graph(width)
273    height_parsed = parse_int_graph(height)
274    return _internal.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:
276def brush_solid(color, radius) -> Graph:
277    """Brush Solid
278
279    Creates a brush with a color and radius. Will stroke with the solid color.
280
281    Args:
282        color: Graph of RGBAColor
283        radius: Graph of Float
284        
285
286    Returns:
287        Graph: A graph node producing a Brush.
288    """
289    color_parsed = parse_graph(color)
290    radius_parsed = parse_float_graph(radius)
291    return _internal.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:
293def byte_list_from_u_r_l(url) -> Graph:
294    """Byte List from URL
295
296    Given a URL. Performs a GET request and downloads the result as bytes.
297
298    Args:
299        url: Graph of String
300        
301
302    Returns:
303        Graph: A graph node producing a ByteList.
304    """
305    url_parsed = parse_string_graph(url)
306    return _internal.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:
308def color_profile_b_t709() -> Graph:
309    """Color Profile BT.709
310
311    Creates a BT.709 Color Profile
312
313    Returns:
314        Graph: A graph node producing a ColorProfile.
315    """
316    return _internal.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:
318def color_profile_ok_lab_a() -> Graph:
319    """Color Profile OkLabA
320
321    Creates an OkLabA color profile. OkLab with also an alpha component.
322
323    Returns:
324        Graph: A graph node producing a ColorProfile.
325    """
326    return _internal.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:
328def color_profile_p3() -> Graph:
329    """Color Profile P3
330
331    Creates a P3 Color Profile
332
333    Returns:
334        Graph: A graph node producing a ColorProfile.
335    """
336    return _internal.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:
338def color_profile_p_n_g_s_r_g_b() -> Graph:
339    """Color Profile PNG sRGB
340
341    Creates a color profile that is the same one as PNG sRGB.
342
343    Returns:
344        Graph: A graph node producing a ColorProfile.
345    """
346    return _internal.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:
348def color_profile_s_r_g_b() -> Graph:
349    """Color Profile sRGB
350
351    Creates an sRGB Color Profile
352
353    Returns:
354        Graph: A graph node producing a ColorProfile.
355    """
356    return _internal.color_profile_s_r_g_b_internal()

Color Profile sRGB

Creates an sRGB Color Profile

Returns: Graph: A graph node producing a ColorProfile.

def color_profile_s_r_g_b_linear() -> Graph:
358def color_profile_s_r_g_b_linear() -> Graph:
359    """Color Profile Linear sRGB
360
361    Creates a linear sRGB Color Profile
362
363    Returns:
364        Graph: A graph node producing a ColorProfile.
365    """
366    return _internal.color_profile_s_r_g_b_linear_internal()

Color Profile Linear sRGB

Creates a linear sRGB Color Profile

Returns: Graph: A graph node producing a ColorProfile.

def color_profile_x_y_z() -> Graph:
368def color_profile_x_y_z() -> Graph:
369    """Color Profile XYZ
370
371    Creates an XYZ Color Profile
372
373    Returns:
374        Graph: A graph node producing a ColorProfile.
375    """
376    return _internal.color_profile_x_y_z_internal()

Color Profile XYZ

Creates an XYZ Color Profile

Returns: Graph: A graph node producing a ColorProfile.

def composition_absolute_value(image) -> Graph:
378def composition_absolute_value(image) -> Graph:
379    """Composition Absolute Value
380
381    Takes the absolute value of all the pixels in the image.
382
383    Args:
384        image: Graph of Composition
385        
386
387    Returns:
388        Graph: A graph node producing a Composition.
389    """
390    image_parsed = parse_graph(image)
391    return _internal.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_blend_add(foreground, background, foreground_transform) -> Graph:
393def composition_blend_add(foreground, background, foreground_transform) -> Graph:
394    """Composition Blend Add
395
396    Adds the foreground and background images together using additive blending.
397
398    Args:
399        foreground: Graph of Composition
400        background: Graph of Composition
401        transform: Graph of Transform2
402        
403
404    Returns:
405        Graph: A graph node producing a Composition.
406    """
407    foreground_parsed = parse_graph(foreground)
408    background_parsed = parse_graph(background)
409    foreground_transform_parsed = parse_graph(foreground_transform)
410    return _internal.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 transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_alpha(foreground, background, foreground_transform) -> Graph:
412def composition_blend_alpha(foreground, background, foreground_transform) -> Graph:
413    """Composition Blend Alpha
414
415    Blends between the foreground and background using the alpha component of the foreground. 1 is foreground. 0 is background.
416
417    Args:
418        foreground: Graph of Composition
419        background: Graph of Composition
420        transform: Graph of Transform2
421        
422
423    Returns:
424        Graph: A graph node producing a Composition.
425    """
426    foreground_parsed = parse_graph(foreground)
427    background_parsed = parse_graph(background)
428    foreground_transform_parsed = parse_graph(foreground_transform)
429    return _internal.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 transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_max(foreground, background, foreground_transform) -> Graph:
431def composition_blend_max(foreground, background, foreground_transform) -> Graph:
432    """Composition Blend Max
433
434    Blends the foreground and background images using maximum value blending.
435
436    Args:
437        foreground: Graph of Composition
438        background: Graph of Composition
439        transform: Graph of Transform2
440        
441
442    Returns:
443        Graph: A graph node producing a Composition.
444    """
445    foreground_parsed = parse_graph(foreground)
446    background_parsed = parse_graph(background)
447    foreground_transform_parsed = parse_graph(foreground_transform)
448    return _internal.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 transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_min(foreground, background, foreground_transform) -> Graph:
450def composition_blend_min(foreground, background, foreground_transform) -> Graph:
451    """Composition Blend Min
452
453    Blends the foreground and background images using minimum blending, taking the minimum value for each pixel.
454
455    Args:
456        foreground: Graph of Composition
457        background: Graph of Composition
458        transform: Graph of Transform2
459        
460
461    Returns:
462        Graph: A graph node producing a Composition.
463    """
464    foreground_parsed = parse_graph(foreground)
465    background_parsed = parse_graph(background)
466    foreground_transform_parsed = parse_graph(foreground_transform)
467    return _internal.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 transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_multiply(foreground, background, foreground_transform) -> Graph:
469def composition_blend_multiply(foreground, background, foreground_transform) -> Graph:
470    """Composition Blend Multiply
471
472    Multiplies the foreground and background images together using multiply blending.
473
474    Args:
475        foreground: Graph of Composition
476        background: Graph of Composition
477        transform: Graph of Transform2
478        
479
480    Returns:
481        Graph: A graph node producing a Composition.
482    """
483    foreground_parsed = parse_graph(foreground)
484    background_parsed = parse_graph(background)
485    foreground_transform_parsed = parse_graph(foreground_transform)
486    return _internal.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 transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_stencil(foreground, background, foreground_transform) -> Graph:
488def composition_blend_stencil(foreground, background, foreground_transform) -> Graph:
489    """Composition Blend Stencil
490
491    Blends the foreground and background images using stencil blending. When the foreground is over the background, the foreground's alpha and the background's r, g and b are used.
492
493    Args:
494        foreground: Graph of Composition
495        background: Graph of Composition
496        transform: Graph of Transform2
497        
498
499    Returns:
500        Graph: A graph node producing a Composition.
501    """
502    foreground_parsed = parse_graph(foreground)
503    background_parsed = parse_graph(background)
504    foreground_transform_parsed = parse_graph(foreground_transform)
505    return _internal.composition_blend_stencil_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Stencil

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

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

Returns: Graph: A graph node producing a Composition.

def composition_blend_subtract(foreground, background, foreground_transform) -> Graph:
507def composition_blend_subtract(foreground, background, foreground_transform) -> Graph:
508    """Composition Blend Subtract
509
510    Subtracts the foreground image from the background image using subtractive blending.
511
512    Args:
513        foreground: Graph of Composition
514        background: Graph of Composition
515        transform: Graph of Transform2
516        
517
518    Returns:
519        Graph: A graph node producing a Composition.
520    """
521    foreground_parsed = parse_graph(foreground)
522    background_parsed = parse_graph(background)
523    foreground_transform_parsed = parse_graph(foreground_transform)
524    return _internal.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 transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_bloom(composition, threshold, sigma, intensity) -> Graph:
526def composition_bloom(composition, threshold, sigma, intensity) -> Graph:
527    """Composition Bloom
528
529    Adds a soft bloom glow by blurring the image's bright areas and additively blending them back over the original. Threshold selects bright areas (OkLab lightness), sigma controls glow spread, intensity scales the glow strength.
530
531    Args:
532        composition: Graph of Composition
533        threshold: Graph of Float
534        sigma: Graph of Float
535        intensity: Graph of Float
536        
537
538    Returns:
539        Graph: A graph node producing a Composition.
540    """
541    composition_parsed = parse_graph(composition)
542    threshold_parsed = parse_float_graph(threshold)
543    sigma_parsed = parse_float_graph(sigma)
544    intensity_parsed = parse_float_graph(intensity)
545    return _internal.composition_bloom_internal(composition_parsed, threshold_parsed, sigma_parsed, intensity_parsed)

Composition Bloom

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

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

Returns: Graph: A graph node producing a Composition.

def composition_bounds(composition) -> Graph:
547def composition_bounds(composition) -> Graph:
548    """Composition Bounds
549
550    Computes the bounding box of a composition.
551
552    Args:
553        composition: Graph of Composition
554        
555
556    Returns:
557        Graph: A graph node producing a Bounds2f.
558    """
559    composition_parsed = parse_graph(composition)
560    return _internal.composition_bounds_internal(composition_parsed)

Composition Bounds

Computes the bounding box of a composition.

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Bounds2f.

def composition_box_blur(composition, dimension) -> Graph:
562def composition_box_blur(composition, dimension) -> Graph:
563    """Composition Box Blur
564
565    Applies a box blur to an image. Dimension is the size. 1 corresponding to 3x3, 2 5x5 and so on.
566
567    Args:
568        composition: Graph of Composition
569        dimension: Graph of Int
570        
571
572    Returns:
573        Graph: A graph node producing a Composition.
574    """
575    composition_parsed = parse_graph(composition)
576    dimension_parsed = parse_int_graph(dimension)
577    return _internal.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_brightness_adjust(composition, scale) -> Graph:
579def composition_brightness_adjust(composition, scale) -> Graph:
580    """Composition Brightness Adjust
581
582    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.
583
584    Args:
585        composition: Graph of Composition
586        scale: Graph of Float
587        
588
589    Returns:
590        Graph: A graph node producing a Composition.
591    """
592    composition_parsed = parse_graph(composition)
593    scale_parsed = parse_float_graph(scale)
594    return _internal.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:
596def composition_chroma_offset(composition, offset) -> Graph:
597    """Composition Chroma Offset
598
599    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.
600
601    Args:
602        composition: Graph of Composition
603        offset: Graph of Vector2f
604        
605
606    Returns:
607        Graph: A graph node producing a Composition.
608    """
609    composition_parsed = parse_graph(composition)
610    offset_parsed = parse_graph(offset)
611    return _internal.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:
613def composition_color_convert(composition, color_profile) -> Graph:
614    """Composition Color Convert
615
616    Converts a Composition from one color space to another.
617
618    Args:
619        composition: Graph of Composition
620        color profile: Graph of ColorProfile
621        
622
623    Returns:
624        Graph: A graph node producing a Composition.
625    """
626    composition_parsed = parse_graph(composition)
627    color_profile_parsed = parse_graph(color_profile)
628    return _internal.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:
630def composition_color_invert(composition) -> Graph:
631    """Composition Color Invert
632
633    Applies a color invert operation to a composition. Taking 1 and subtracting each RGB operation against it. Works in linear color.
634
635    Args:
636        composition: Graph of Composition
637        
638
639    Returns:
640        Graph: A graph node producing a Composition.
641    """
642    composition_parsed = parse_graph(composition)
643    return _internal.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. Works in linear color.

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_color_profile(composition) -> Graph:
645def composition_color_profile(composition) -> Graph:
646    """Composition Color Profile
647
648    Gets the color profile associated with a Composition
649
650    Args:
651        composition: Graph of Composition
652        
653
654    Returns:
655        Graph: A graph node producing a ColorProfile.
656    """
657    composition_parsed = parse_graph(composition)
658    return _internal.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_threshold(composition, threshold) -> Graph:
660def composition_color_threshold(composition, threshold) -> Graph:
661    """Composition Color Threshold
662
663    Applies a color threshold to a Composition
664
665    Args:
666        composition: Graph of Composition
667        threshold: Graph of Float
668        
669
670    Returns:
671        Graph: A graph node producing a Composition.
672    """
673    composition_parsed = parse_graph(composition)
674    threshold_parsed = parse_float_graph(threshold)
675    return _internal.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_color_transformer_shader( composition, function_body, helpers, input_color_profile, output_color_profile, inputs) -> Graph:
677def composition_color_transformer_shader(composition, function_body, helpers, input_color_profile, output_color_profile, inputs) -> Graph:
678    """Composition Color Transformer Shader
679
680    Defines a custom shader that takes an input color and then transforms that color to an output color.
681
682    Args:
683        composition: Graph of Composition
684        function body: Graph of String
685        helpers: Graph of String
686        input color profile: Graph of ColorProfile
687        output color profile: Graph of ColorProfile
688        inputs: Graph of Dictionary
689        
690
691    Returns:
692        Graph: A graph node producing a Composition.
693    """
694    composition_parsed = parse_graph(composition)
695    function_body_parsed = parse_string_graph(function_body)
696    helpers_parsed = parse_string_graph(helpers)
697    input_color_profile_parsed = parse_graph(input_color_profile)
698    output_color_profile_parsed = parse_graph(output_color_profile)
699    inputs_parsed = parse_graph(inputs)
700    return _internal.composition_color_transformer_shader_internal(composition_parsed, function_body_parsed, helpers_parsed, input_color_profile_parsed, output_color_profile_parsed, inputs_parsed)

Composition Color Transformer Shader

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

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

Returns: Graph: A graph node producing a Composition.

def composition_contrast_adjustment(composition, contrast) -> Graph:
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 _internal.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:
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 _internal.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:
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 Bounds2f
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 _internal.composition_crop_internal(composition_parsed, rect_parsed)

Composition Crop

Applies a crop to a Composition

Args: composition: Graph of Composition rect: Graph of Bounds2f

Returns: Graph: A graph node producing a Composition.

def composition_film_grain( composition, grain_strength, fine_grain_frequency, fine_weight, medium_grain_frequency, medium_weight, high_grain_frequency, high_weight) -> Graph:
757def composition_film_grain(composition, grain_strength, fine_grain_frequency, fine_weight, medium_grain_frequency, medium_weight, high_grain_frequency, high_weight) -> Graph:
758    """Composition Film Grain
759
760    adds multi-octave value-noise film grain in OkLabA - grain_strength controls the overall intensity, and the fine/medium/high frequency and weight pairs control the size and contribution of each grain octave.
761
762    Args:
763        composition: Graph of Composition
764        grain strength: Graph of Float
765        fine grain frequency: Graph of Float
766        fine weight: Graph of Float
767        medium grain frequency: Graph of Float
768        medium weight: Graph of Float
769        high grain frequency: Graph of Float
770        high weight: Graph of Float
771        
772
773    Returns:
774        Graph: A graph node producing a Composition.
775    """
776    composition_parsed = parse_graph(composition)
777    grain_strength_parsed = parse_float_graph(grain_strength)
778    fine_grain_frequency_parsed = parse_float_graph(fine_grain_frequency)
779    fine_weight_parsed = parse_float_graph(fine_weight)
780    medium_grain_frequency_parsed = parse_float_graph(medium_grain_frequency)
781    medium_weight_parsed = parse_float_graph(medium_weight)
782    high_grain_frequency_parsed = parse_float_graph(high_grain_frequency)
783    high_weight_parsed = parse_float_graph(high_weight)
784    return _internal.composition_film_grain_internal(composition_parsed, grain_strength_parsed, fine_grain_frequency_parsed, fine_weight_parsed, medium_grain_frequency_parsed, medium_weight_parsed, high_grain_frequency_parsed, high_weight_parsed)

Composition Film Grain

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

Args: composition: Graph of Composition grain strength: Graph of Float fine grain frequency: Graph of Float fine weight: Graph of Float medium grain frequency: Graph of Float medium weight: Graph of Float high grain frequency: Graph of Float high weight: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_flip_horizontal(composition) -> Graph:
786def composition_flip_horizontal(composition) -> Graph:
787    """Composition Flip Horizontal
788
789    Flips the image along the horizontal axis
790
791    Args:
792        composition: Graph of Composition
793        
794
795    Returns:
796        Graph: A graph node producing a Composition.
797    """
798    composition_parsed = parse_graph(composition)
799    return _internal.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:
801def composition_flip_vertical(composition) -> Graph:
802    """Composition Flip Vertical
803
804    Flips the image vertically
805
806    Args:
807        composition: Graph of Composition
808        
809
810    Returns:
811        Graph: A graph node producing a Composition.
812    """
813    composition_parsed = parse_graph(composition)
814    return _internal.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:
816def composition_from_asset(asset_id) -> Graph:
817    """Composition from Asset
818
819    Creates a composition from an asset in your catalog.
820
821    Args:
822        asset id: Graph of Int
823        
824
825    Returns:
826        Graph: A graph node producing a Composition.
827    """
828    asset_id_parsed = parse_int_graph(asset_id)
829    return _internal.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:
831def composition_from_image(image) -> Graph:
832    """Composition from Image
833
834    Creates an composition out of an image
835
836    Args:
837        image: Graph of Image
838        
839
840    Returns:
841        Graph: A graph node producing a Composition.
842    """
843    image_parsed = parse_graph(image)
844    return _internal.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:
846def composition_gaussian_blur(composition, sigma) -> Graph:
847    """Composition Gaussian Blur
848
849    Applies a gaussian blur to an image. Sigma controls the blur intensity.
850
851    Args:
852        composition: Graph of Composition
853        sigma: Graph of Float
854        
855
856    Returns:
857        Graph: A graph node producing a Composition.
858    """
859    composition_parsed = parse_graph(composition)
860    sigma_parsed = parse_float_graph(sigma)
861    return _internal.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_grayscale(composition) -> Graph:
863def composition_grayscale(composition) -> Graph:
864    """Composition Grayscale
865
866    Applies grayscale to a Composition
867
868    Args:
869        composition: Graph of Composition
870        
871
872    Returns:
873        Graph: A graph node producing a Composition.
874    """
875    composition_parsed = parse_graph(composition)
876    return _internal.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_halftone(composition, pixel_size, foreground_color, background_color) -> Graph:
878def composition_halftone(composition, pixel_size, foreground_color, background_color) -> Graph:
879    """Composition Halftone
880
881    Applies a halftone effect to a composition, tiling it into cells and painting a foreground-colored dot in each cell whose radius grows as the cell darkens, over a background color.
882
883    Args:
884        composition: Graph of Composition
885        pixel size: Graph of Int
886        foreground color: Graph of RGBAColor
887        background color: Graph of RGBAColor
888        
889
890    Returns:
891        Graph: A graph node producing a Composition.
892    """
893    composition_parsed = parse_graph(composition)
894    pixel_size_parsed = parse_int_graph(pixel_size)
895    foreground_color_parsed = parse_graph(foreground_color)
896    background_color_parsed = parse_graph(background_color)
897    return _internal.composition_halftone_internal(composition_parsed, pixel_size_parsed, foreground_color_parsed, background_color_parsed)

Composition Halftone

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

Args: composition: Graph of Composition pixel size: Graph of Int foreground color: Graph of RGBAColor background color: Graph of RGBAColor

Returns: Graph: A graph node producing a Composition.

def composition_if(bool, input_1, input_2) -> Graph:
899def composition_if(bool, input_1, input_2) -> Graph:
900    """Composition If
901
902    If the boolean is true returns input 1, otherwise input 2. Type: Composition
903
904    Args:
905        bool: Graph of Bool
906        input 1: Graph of Composition
907        input 2: Graph of Composition
908        
909
910    Returns:
911        Graph: A graph node producing a Composition.
912    """
913    bool_parsed = parse_bool_graph(bool)
914    input_1_parsed = parse_graph(input_1)
915    input_2_parsed = parse_graph(input_2)
916    return _internal.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_kaleidoscope(composition, segments, rotation, warp, warp_frequency) -> Graph:
918def composition_kaleidoscope(composition, segments, rotation, warp, warp_frequency) -> Graph:
919    """Composition Kaleidoscope
920
921    Applies a kaleidoscope effect, folding the image into mirrored wedges around the center. segments controls the number of wedges, rotation spins the pattern, and warp/warp_frequency add a radial glass-like distortion.
922
923    Args:
924        composition: Graph of Composition
925        segments: Graph of Float
926        rotation: Graph of Float
927        warp: Graph of Float
928        warp frequency: Graph of Float
929        
930
931    Returns:
932        Graph: A graph node producing a Composition.
933    """
934    composition_parsed = parse_graph(composition)
935    segments_parsed = parse_float_graph(segments)
936    rotation_parsed = parse_float_graph(rotation)
937    warp_parsed = parse_float_graph(warp)
938    warp_frequency_parsed = parse_float_graph(warp_frequency)
939    return _internal.composition_kaleidoscope_internal(composition_parsed, segments_parsed, rotation_parsed, warp_parsed, warp_frequency_parsed)

Composition Kaleidoscope

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

Args: composition: Graph of Composition segments: Graph of Float rotation: Graph of Float warp: Graph of Float warp frequency: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_l_curve(composition, l_curve) -> Graph:
941def composition_l_curve(composition, l_curve) -> Graph:
942    """Composition Lightness Curve
943
944    Applies a curve to the L component in an OkLab color. Adjusting the lightness of the image.
945
946    Args:
947        composition: Graph of Composition
948        l curve: Graph of Curve
949        
950
951    Returns:
952        Graph: A graph node producing a Composition.
953    """
954    composition_parsed = parse_graph(composition)
955    l_curve_parsed = parse_graph(l_curve)
956    return _internal.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_lightness_threshold(composition, threshold) -> Graph:
958def composition_lightness_threshold(composition, threshold) -> Graph:
959    """Composition Lightness Threshold
960
961    Thresholds a Composition by OkLab lightness, producing an opaque white mask where lightness exceeds the threshold and transparent black elsewhere.
962
963    Args:
964        composition: Graph of Composition
965        threshold: Graph of Float
966        
967
968    Returns:
969        Graph: A graph node producing a Composition.
970    """
971    composition_parsed = parse_graph(composition)
972    threshold_parsed = parse_float_graph(threshold)
973    return _internal.composition_lightness_threshold_internal(composition_parsed, threshold_parsed)

Composition Lightness Threshold

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

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

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:
 975def 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:
 976    """Composition RGBA Linear Transform
 977
 978    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.
 979
 980    Args:
 981        composition: Graph of Composition
 982        entry 0,0: Graph of Float
 983        entry 0,1: Graph of Float
 984        entry 0,2: Graph of Float
 985        entry 0,3: Graph of Float
 986        entry 1,0: Graph of Float
 987        entry 1,1: Graph of Float
 988        entry 1,2: Graph of Float
 989        entry 1,3: Graph of Float
 990        entry 2,0: Graph of Float
 991        entry 2,1: Graph of Float
 992        entry 2,2: Graph of Float
 993        entry 2,3: Graph of Float
 994        entry 3,0: Graph of Float
 995        entry 3,1: Graph of Float
 996        entry 3,2: Graph of Float
 997        entry 3,3: Graph of Float
 998        
 999
1000    Returns:
1001        Graph: A graph node producing a Composition.
1002    """
1003    composition_parsed = parse_graph(composition)
1004    entry_0_0_parsed = parse_float_graph(entry_0_0)
1005    entry_0_1_parsed = parse_float_graph(entry_0_1)
1006    entry_0_2_parsed = parse_float_graph(entry_0_2)
1007    entry_0_3_parsed = parse_float_graph(entry_0_3)
1008    entry_1_0_parsed = parse_float_graph(entry_1_0)
1009    entry_1_1_parsed = parse_float_graph(entry_1_1)
1010    entry_1_2_parsed = parse_float_graph(entry_1_2)
1011    entry_1_3_parsed = parse_float_graph(entry_1_3)
1012    entry_2_0_parsed = parse_float_graph(entry_2_0)
1013    entry_2_1_parsed = parse_float_graph(entry_2_1)
1014    entry_2_2_parsed = parse_float_graph(entry_2_2)
1015    entry_2_3_parsed = parse_float_graph(entry_2_3)
1016    entry_3_0_parsed = parse_float_graph(entry_3_0)
1017    entry_3_1_parsed = parse_float_graph(entry_3_1)
1018    entry_3_2_parsed = parse_float_graph(entry_3_2)
1019    entry_3_3_parsed = parse_float_graph(entry_3_3)
1020    return _internal.composition_linear_transform_internal(composition_parsed, entry_0_0_parsed, entry_0_1_parsed, entry_0_2_parsed, entry_0_3_parsed, entry_1_0_parsed, entry_1_1_parsed, entry_1_2_parsed, entry_1_3_parsed, entry_2_0_parsed, entry_2_1_parsed, entry_2_2_parsed, entry_2_3_parsed, entry_3_0_parsed, entry_3_1_parsed, entry_3_2_parsed, entry_3_3_parsed)

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_liquify(composition, amplitude, frequency) -> Graph:
1022def composition_liquify(composition, amplitude, frequency) -> Graph:
1023    """Composition Liquify
1024
1025    Applies a sinusoidal liquify distortion to this composition, displacing pixels by a wave whose size is controlled by amplitude and whose density is controlled by frequency.
1026
1027    Args:
1028        composition: Graph of Composition
1029        amplitude: Graph of Float
1030        frequency: Graph of Float
1031        
1032
1033    Returns:
1034        Graph: A graph node producing a Composition.
1035    """
1036    composition_parsed = parse_graph(composition)
1037    amplitude_parsed = parse_float_graph(amplitude)
1038    frequency_parsed = parse_float_graph(frequency)
1039    return _internal.composition_liquify_internal(composition_parsed, amplitude_parsed, frequency_parsed)

Composition Liquify

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

Args: composition: Graph of Composition amplitude: Graph of Float frequency: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_median(composition, kernel_size) -> Graph:
1041def composition_median(composition, kernel_size) -> Graph:
1042    """Composition Median
1043
1044    Applies a per-channel median filter to a composition over a square window, reducing noise while preserving edges. kernel_size controls the window size (window width is 2*kernel_size-1).
1045
1046    Args:
1047        composition: Graph of Composition
1048        kernel size: Graph of Int
1049        
1050
1051    Returns:
1052        Graph: A graph node producing a Composition.
1053    """
1054    composition_parsed = parse_graph(composition)
1055    kernel_size_parsed = parse_int_graph(kernel_size)
1056    return _internal.composition_median_internal(composition_parsed, kernel_size_parsed)

Composition Median

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

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

Returns: Graph: A graph node producing a Composition.

def composition_monet_women_with_parasol() -> Graph:
1058def composition_monet_women_with_parasol() -> Graph:
1059    """Monet's Women with a Parasol
1060
1061    Creates a composition from Monet's "Women with a Parasol" painting. Used frequently as a test asset.
1062
1063    Returns:
1064        Graph: A graph node producing a Composition.
1065    """
1066    return _internal.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:
1068def composition_morphological_max(composition, dimension) -> Graph:
1069    """Composition Morphological Max
1070
1071    Apples a morphological max operation.
1072
1073    Args:
1074        composition: Graph of Composition
1075        dimension: Graph of Int
1076        
1077
1078    Returns:
1079        Graph: A graph node producing a Composition.
1080    """
1081    composition_parsed = parse_graph(composition)
1082    dimension_parsed = parse_int_graph(dimension)
1083    return _internal.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:
1085def composition_morphological_min(composition, dimension) -> Graph:
1086    """Composition Morphological Min
1087
1088    Apples a morphological min operation.
1089
1090    Args:
1091        composition: Graph of Composition
1092        dimension: Graph of Int
1093        
1094
1095    Returns:
1096        Graph: A graph node producing a Composition.
1097    """
1098    composition_parsed = parse_graph(composition)
1099    dimension_parsed = parse_int_graph(dimension)
1100    return _internal.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_negative(composition) -> Graph:
1102def composition_negative(composition) -> Graph:
1103    """Composition Negative
1104
1105    Creates the effect of a negative image by subracting from each component of the image.
1106
1107    Args:
1108        composition: Graph of Composition
1109        
1110
1111    Returns:
1112        Graph: A graph node producing a Composition.
1113    """
1114    composition_parsed = parse_graph(composition)
1115    return _internal.composition_negative_internal(composition_parsed)

Composition Negative

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

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_nonlinear_r_g_b_blend_alpha(foreground, background, foreground_transform) -> Graph:
1117def composition_nonlinear_r_g_b_blend_alpha(foreground, background, foreground_transform) -> Graph:
1118    """Composition Nonlinear RGB Blend Alpha
1119
1120    A specialized version of CompositionBlendAlpha. Blends in a non-linear RGB.
1121
1122    Args:
1123        foreground: Graph of Composition
1124        background: Graph of Composition
1125        transform: Graph of Transform2
1126        
1127
1128    Returns:
1129        Graph: A graph node producing a Composition.
1130    """
1131    foreground_parsed = parse_graph(foreground)
1132    background_parsed = parse_graph(background)
1133    foreground_transform_parsed = parse_graph(foreground_transform)
1134    return _internal.composition_nonlinear_r_g_b_blend_alpha_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Nonlinear RGB Blend Alpha

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

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

Returns: Graph: A graph node producing a Composition.

def composition_opacity_scale(composition, scale) -> Graph:
1136def composition_opacity_scale(composition, scale) -> Graph:
1137    """Composition Opacity Scale
1138
1139    Changes the opacity of an image by multiplying it by a scalar.
1140
1141    Args:
1142        composition: Graph of Composition
1143        scale: Graph of Float
1144        
1145
1146    Returns:
1147        Graph: A graph node producing a Composition.
1148    """
1149    composition_parsed = parse_graph(composition)
1150    scale_parsed = parse_float_graph(scale)
1151    return _internal.composition_opacity_scale_internal(composition_parsed, scale_parsed)

Composition Opacity Scale

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

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

Returns: Graph: A graph node producing a Composition.

def composition_painter(painter) -> Graph:
1153def composition_painter(painter) -> Graph:
1154    """Composition Painter
1155
1156    Creates a composition from a painter.
1157
1158    Args:
1159        painter: Graph of Painter
1160        
1161
1162    Returns:
1163        Graph: A graph node producing a Composition.
1164    """
1165    painter_parsed = parse_graph(painter)
1166    return _internal.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:
1168def composition_passthrough(value) -> Graph:
1169    """Composition Passthrough
1170
1171    Responds with the value provided. Doing nothing to it.
1172
1173    Args:
1174        value: Graph of Composition
1175        
1176
1177    Returns:
1178        Graph: A graph node producing a Composition.
1179    """
1180    value_parsed = parse_graph(value)
1181    return _internal.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_pixelate(composition, pixel_size) -> Graph:
1183def composition_pixelate(composition, pixel_size) -> Graph:
1184    """Composition Pixelate
1185
1186    Applies a pixelation effect to a composition.
1187
1188    Args:
1189        composition: Graph of Composition
1190        pixel size: Graph of Int
1191        
1192
1193    Returns:
1194        Graph: A graph node producing a Composition.
1195    """
1196    composition_parsed = parse_graph(composition)
1197    pixel_size_parsed = parse_int_graph(pixel_size)
1198    return _internal.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_point_effect_shader( composition, function_body, helpers, effect_center_point, effect_radius, inputs) -> Graph:
1200def composition_point_effect_shader(composition, function_body, helpers, effect_center_point, effect_radius, inputs) -> Graph:
1201    """Composition Point Effect Shader
1202
1203    Runs a custom shader over a circular region around an effect center point.
1204
1205    Args:
1206        composition: Graph of Composition
1207        function body: Graph of String
1208        helpers: Graph of String
1209        effect center point: Graph of Point2f
1210        effect radius: Graph of Float
1211        inputs: Graph of Dictionary
1212        
1213
1214    Returns:
1215        Graph: A graph node producing a Composition.
1216    """
1217    composition_parsed = parse_graph(composition)
1218    function_body_parsed = parse_string_graph(function_body)
1219    helpers_parsed = parse_string_graph(helpers)
1220    effect_center_point_parsed = parse_graph(effect_center_point)
1221    effect_radius_parsed = parse_float_graph(effect_radius)
1222    inputs_parsed = parse_graph(inputs)
1223    return _internal.composition_point_effect_shader_internal(composition_parsed, function_body_parsed, helpers_parsed, effect_center_point_parsed, effect_radius_parsed, inputs_parsed)

Composition Point Effect Shader

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

Args: composition: Graph of Composition function body: Graph of String helpers: Graph of String effect center point: Graph of Point2f effect radius: Graph of Float inputs: Graph of Dictionary

Returns: Graph: A graph node producing a Composition.

def composition_r_g_b_curve(composition, r_curve, g_curve, b_curve) -> Graph:
1225def composition_r_g_b_curve(composition, r_curve, g_curve, b_curve) -> Graph:
1226    """Composition RGB Curve
1227
1228    Applies a curve to the R, G, and B components
1229
1230    Args:
1231        composition: Graph of Composition
1232        r curve: Graph of Curve
1233        g curve: Graph of Curve
1234        b curve: Graph of Curve
1235        
1236
1237    Returns:
1238        Graph: A graph node producing a Composition.
1239    """
1240    composition_parsed = parse_graph(composition)
1241    r_curve_parsed = parse_graph(r_curve)
1242    g_curve_parsed = parse_graph(g_curve)
1243    b_curve_parsed = parse_graph(b_curve)
1244    return _internal.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:
1246def composition_render_to_image(composition) -> Graph:
1247    """Composition Render to Image
1248
1249    Renders a Composition to an Image
1250
1251    Args:
1252        composition: Graph of Composition
1253        
1254
1255    Returns:
1256        Graph: A graph node producing a Image.
1257    """
1258    composition_parsed = parse_graph(composition)
1259    return _internal.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:
1261def composition_rotate180(composition) -> Graph:
1262    """Composition Rotate 180
1263
1264    Rotates the image 180 degrees
1265
1266    Args:
1267        composition: Graph of Composition
1268        
1269
1270    Returns:
1271        Graph: A graph node producing a Composition.
1272    """
1273    composition_parsed = parse_graph(composition)
1274    return _internal.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:
1276def composition_rotate90_clockwise(composition) -> Graph:
1277    """Composition Rotate 90 Clockwise
1278
1279    Rotates the image 90 degrees clockwise
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 _internal.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:
1291def composition_rotate90_counter_clockwise(composition) -> Graph:
1292    """Composition Rotate 90 Counter Clockwise
1293
1294    Rotates the image 90 degrees counter-clockwise
1295
1296    Args:
1297        composition: Graph of Composition
1298        
1299
1300    Returns:
1301        Graph: A graph node producing a Composition.
1302    """
1303    composition_parsed = parse_graph(composition)
1304    return _internal.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:
1306def composition_s_a_m3_image(composition, prompt, positive_points, negative_points) -> Graph:
1307    """Composition SAM3 Image
1308
1309    Runs the SAM3 model on an image
1310
1311    Args:
1312        composition: Graph of Composition
1313        prompt: Graph of String
1314        positive points: Graph of Point2iList
1315        negative points: Graph of Point2iList
1316        
1317
1318    Returns:
1319        Graph: A graph node producing a ByteList.
1320    """
1321    composition_parsed = parse_graph(composition)
1322    prompt_parsed = parse_string_graph(prompt)
1323    positive_points_parsed = parse_graph(positive_points)
1324    negative_points_parsed = parse_graph(negative_points)
1325    return _internal.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:
1327def composition_saturation_adjust(composition, scale) -> Graph:
1328    """Composition Saturation Adjust
1329
1330    Adjusts the saturation of an image by a given factor. Internally, scales the chroma components in OkLab color space.
1331
1332    Args:
1333        composition: Graph of Composition
1334        scale: Graph of Float
1335        
1336
1337    Returns:
1338        Graph: A graph node producing a Composition.
1339    """
1340    composition_parsed = parse_graph(composition)
1341    scale_parsed = parse_float_graph(scale)
1342    return _internal.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_scanlines(composition, size, beam_power, line_offset, intensity) -> Graph:
1344def composition_scanlines(composition, size, beam_power, line_offset, intensity) -> Graph:
1345    """Composition Scanlines
1346
1347    Applies a CRT-style scanline effect, darkening the composition in horizontal bands whose spacing is set by size, sharpness by beam power, vertical phase by line offset, and overall strength by intensity.
1348
1349    Args:
1350        composition: Graph of Composition
1351        size: Graph of Float
1352        beam power: Graph of Float
1353        line offset: Graph of Float
1354        intensity: Graph of Float
1355        
1356
1357    Returns:
1358        Graph: A graph node producing a Composition.
1359    """
1360    composition_parsed = parse_graph(composition)
1361    size_parsed = parse_float_graph(size)
1362    beam_power_parsed = parse_float_graph(beam_power)
1363    line_offset_parsed = parse_float_graph(line_offset)
1364    intensity_parsed = parse_float_graph(intensity)
1365    return _internal.composition_scanlines_internal(composition_parsed, size_parsed, beam_power_parsed, line_offset_parsed, intensity_parsed)

Composition Scanlines

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

Args: composition: Graph of Composition size: Graph of Float beam power: Graph of Float line offset: Graph of Float intensity: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_segment(composition, prompt, positive_points, negative_points) -> Graph:
1367def composition_segment(composition, prompt, positive_points, negative_points) -> Graph:
1368    """Composition Segment
1369
1370    Segments objects in a composition using SAM3. Accepts a text prompt and lists of positive/negative click points.
1371
1372    Args:
1373        composition: Graph of Composition
1374        prompt: Graph of String
1375        positive points: Graph of Point2iList
1376        negative points: Graph of Point2iList
1377        
1378
1379    Returns:
1380        Graph: A graph node producing a Composition.
1381    """
1382    composition_parsed = parse_graph(composition)
1383    prompt_parsed = parse_string_graph(prompt)
1384    positive_points_parsed = parse_graph(positive_points)
1385    negative_points_parsed = parse_graph(negative_points)
1386    return _internal.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:
1388def composition_sharpen(composition, radius, strength) -> Graph:
1389    """Composition Sharpen
1390
1391    Applies a sharpen filter to the composition.
1392
1393    Args:
1394        composition: Graph of Composition
1395        radius: Graph of Float
1396        strength: Graph of Float
1397        
1398
1399    Returns:
1400        Graph: A graph node producing a Composition.
1401    """
1402    composition_parsed = parse_graph(composition)
1403    radius_parsed = parse_float_graph(radius)
1404    strength_parsed = parse_float_graph(strength)
1405    return _internal.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_sobel_edge_detection(composition) -> Graph:
1407def composition_sobel_edge_detection(composition) -> Graph:
1408    """Composition Sobel Edge Detection
1409
1410    Applies Sobel edge detection to an image.
1411
1412    Args:
1413        composition: Graph of Composition
1414        
1415
1416    Returns:
1417        Graph: A graph node producing a Composition.
1418    """
1419    composition_parsed = parse_graph(composition)
1420    return _internal.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_spacial_effect_shader(composition, function_body, helpers, max_displacement, inputs) -> Graph:
1422def composition_spacial_effect_shader(composition, function_body, helpers, max_displacement, inputs) -> Graph:
1423    """Composition Spacial Effect Shader
1424
1425    Runs a custom shader over an input that can spatially displace pixels by up to a maximum displacement.
1426
1427    Args:
1428        composition: Graph of Composition
1429        function body: Graph of String
1430        helpers: Graph of String
1431        max displacement: Graph of Float
1432        inputs: Graph of Dictionary
1433        
1434
1435    Returns:
1436        Graph: A graph node producing a Composition.
1437    """
1438    composition_parsed = parse_graph(composition)
1439    function_body_parsed = parse_string_graph(function_body)
1440    helpers_parsed = parse_string_graph(helpers)
1441    max_displacement_parsed = parse_float_graph(max_displacement)
1442    inputs_parsed = parse_graph(inputs)
1443    return _internal.composition_spacial_effect_shader_internal(composition_parsed, function_body_parsed, helpers_parsed, max_displacement_parsed, inputs_parsed)

Composition Spacial Effect Shader

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

Args: composition: Graph of Composition function body: Graph of String helpers: Graph of String max displacement: Graph of Float inputs: Graph of Dictionary

Returns: Graph: A graph node producing a Composition.

def composition_swirl(composition, center, radius, amount) -> Graph:
1445def composition_swirl(composition, center, radius, amount) -> Graph:
1446    """Composition Swirl
1447
1448    Applies a swirl distortion to this composition
1449
1450    Args:
1451        composition: Graph of Composition
1452        center: Graph of Vector2f
1453        radius: Graph of Float
1454        amount: Graph of Float
1455        
1456
1457    Returns:
1458        Graph: A graph node producing a Composition.
1459    """
1460    composition_parsed = parse_graph(composition)
1461    center_parsed = parse_graph(center)
1462    radius_parsed = parse_float_graph(radius)
1463    amount_parsed = parse_float_graph(amount)
1464    return _internal.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:
1466def composition_target_white_kelvin(composition, kelvin) -> Graph:
1467    """Composition Target White Kelvin
1468
1469    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.
1470
1471    Args:
1472        composition: Graph of Composition
1473        kelvin: Graph of Float
1474        
1475
1476    Returns:
1477        Graph: A graph node producing a Composition.
1478    """
1479    composition_parsed = parse_graph(composition)
1480    kelvin_parsed = parse_float_graph(kelvin)
1481    return _internal.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:
1483def composition_to_ok_lab_hist(composition) -> Graph:
1484    """Composition to OkLab Histogram
1485
1486    Creates an OkLab Histogram from the colors in a Composition.
1487
1488    Args:
1489        composition: Graph of Composition
1490        
1491
1492    Returns:
1493        Graph: A graph node producing a OkLabHist.
1494    """
1495    composition_parsed = parse_graph(composition)
1496    return _internal.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_transform(composition, transform) -> Graph:
1498def composition_transform(composition, transform) -> Graph:
1499    """Composition Transform
1500
1501    Applies a 2D transform to a Composition.
1502
1503    Args:
1504        composition: Graph of Composition
1505        transform: Graph of Transform2
1506        
1507
1508    Returns:
1509        Graph: A graph node producing a Composition.
1510    """
1511    composition_parsed = parse_graph(composition)
1512    transform_parsed = parse_graph(transform)
1513    return _internal.composition_transform_internal(composition_parsed, transform_parsed)

Composition Transform

Applies a 2D transform to a Composition.

Args: composition: Graph of Composition transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_vibrance_adjustment(composition, strength) -> Graph:
1515def composition_vibrance_adjustment(composition, strength) -> Graph:
1516    """Composition Vibrance Adjustment
1517
1518    Adjusts the vibrance of an image by a given strength. Internally, boosts chroma in OkLab color space adaptively, applying more boost to less saturated colors.
1519
1520    Args:
1521        composition: Graph of Composition
1522        strength: Graph of Float
1523        
1524
1525    Returns:
1526        Graph: A graph node producing a Composition.
1527    """
1528    composition_parsed = parse_graph(composition)
1529    strength_parsed = parse_float_graph(strength)
1530    return _internal.composition_vibrance_adjustment_internal(composition_parsed, strength_parsed)

Composition Vibrance Adjustment

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

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

Returns: Graph: A graph node producing a Composition.

def composition_vignette(composition, center, radius_x, radius_y, softness, strength) -> Graph:
1532def composition_vignette(composition, center, radius_x, radius_y, softness, strength) -> Graph:
1533    """Composition Vignette
1534
1535    darkens the area outside an ellipse - center is the bright spot in pixel coordinates, radius_x and radius_y are the ellipse semi-axes in pixels where the falloff starts, softness is the width of the fade-out band in pixels, and strength (0-1) defines how dark the edges become at maximum.
1536
1537    Args:
1538        composition: Graph of Composition
1539        center: Graph of Vector2f
1540        radius x: Graph of Float
1541        radius y: Graph of Float
1542        softness: Graph of Float
1543        strength: Graph of Float
1544        
1545
1546    Returns:
1547        Graph: A graph node producing a Composition.
1548    """
1549    composition_parsed = parse_graph(composition)
1550    center_parsed = parse_graph(center)
1551    radius_x_parsed = parse_float_graph(radius_x)
1552    radius_y_parsed = parse_float_graph(radius_y)
1553    softness_parsed = parse_float_graph(softness)
1554    strength_parsed = parse_float_graph(strength)
1555    return _internal.composition_vignette_internal(composition_parsed, center_parsed, radius_x_parsed, radius_y_parsed, softness_parsed, strength_parsed)

Composition Vignette

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

Args: composition: Graph of Composition center: Graph of Vector2f radius x: Graph of Float radius y: Graph of Float softness: Graph of Float strength: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_zoom_blur(composition, center, strength, falloff, effect_radius) -> Graph:
1557def composition_zoom_blur(composition, center, strength, falloff, effect_radius) -> Graph:
1558    """Composition Zoom Blur
1559
1560    Performs a zoom blur on this composition
1561
1562    Args:
1563        composition: Graph of Composition
1564        center: Graph of Vector2f
1565        strength: Graph of Float
1566        falloff: Graph of Float
1567        effect radius: Graph of Float
1568        
1569
1570    Returns:
1571        Graph: A graph node producing a Composition.
1572    """
1573    composition_parsed = parse_graph(composition)
1574    center_parsed = parse_graph(center)
1575    strength_parsed = parse_float_graph(strength)
1576    falloff_parsed = parse_float_graph(falloff)
1577    effect_radius_parsed = parse_float_graph(effect_radius)
1578    return _internal.composition_zoom_blur_internal(composition_parsed, center_parsed, strength_parsed, falloff_parsed, effect_radius_parsed)

Composition Zoom Blur

Performs a zoom blur on this composition

Args: composition: Graph of Composition center: Graph of Vector2f strength: Graph of Float falloff: Graph of Float effect radius: Graph of Float

Returns: Graph: A graph node producing a Composition.

def curve_evaluate(curve, input) -> Graph:
1580def curve_evaluate(curve, input) -> Graph:
1581    """Curve Evaluate
1582
1583    Evaluates a curve at a given input value.
1584
1585    Args:
1586        curve: Graph of Curve
1587        input: Graph of Float
1588        
1589
1590    Returns:
1591        Graph: A graph node producing a Float.
1592    """
1593    curve_parsed = parse_graph(curve)
1594    input_parsed = parse_float_graph(input)
1595    return _internal.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:
1597def curve_gamma(gamma) -> Graph:
1598    """Curve Gamma
1599
1600    A gamma curve. The gamma parameter corresponding to y=x^gamma.
1601
1602    Args:
1603        gamma: Graph of Float
1604        
1605
1606    Returns:
1607        Graph: A graph node producing a Curve.
1608    """
1609    gamma_parsed = parse_float_graph(gamma)
1610    return _internal.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:
1612def curve_identity() -> Graph:
1613    """Curve Identity
1614
1615    An identity curve, y=x
1616
1617    Returns:
1618        Graph: A graph node producing a Curve.
1619    """
1620    return _internal.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:
1622def curve_pivoted_sigmoid(pivot, slope) -> Graph:
1623    """Curve Pivoted Sigmoid
1624
1625    A pivoted sigmoid contrast curve that anchors at the pivot and smoothly compresses shadows and highlights, with a slope parameter controlling midtone contrast.
1626
1627    Args:
1628        pivot: Graph of Float
1629        slope: Graph of Float
1630        
1631
1632    Returns:
1633        Graph: A graph node producing a Curve.
1634    """
1635    pivot_parsed = parse_float_graph(pivot)
1636    slope_parsed = parse_float_graph(slope)
1637    return _internal.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:
1639def curve_s_curve(pivot, slope, toe, shoulder) -> Graph:
1640    """Curve S
1641
1642    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.
1643
1644    Args:
1645        pivot: Graph of Float
1646        slope: Graph of Float
1647        toe: Graph of Float
1648        shoulder: Graph of Float
1649        
1650
1651    Returns:
1652        Graph: A graph node producing a Curve.
1653    """
1654    pivot_parsed = parse_float_graph(pivot)
1655    slope_parsed = parse_float_graph(slope)
1656    toe_parsed = parse_float_graph(toe)
1657    shoulder_parsed = parse_float_graph(shoulder)
1658    return _internal.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:
1660def dictionary_create() -> Graph:
1661    """Dictionary Create
1662
1663    Creates a new dictionary
1664
1665    Returns:
1666        Graph: A graph node producing a Dictionary.
1667    """
1668    return _internal.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:
1670def file_convert_image_to_bmp(image_bytes) -> Graph:
1671    """File Convert Image to BMP
1672
1673    Converts any image format (JPEG, PNG, WebP, TIFF, HEIC, etc.) to BMP. Returns BMP bytes.
1674
1675    Args:
1676        image bytes (any format): Graph of ByteList
1677        
1678
1679    Returns:
1680        Graph: A graph node producing a ByteList.
1681    """
1682    image_bytes_parsed = parse_graph(image_bytes)
1683    return _internal.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:
1685def file_convert_image_to_heic(image_bytes, quality) -> Graph:
1686    """File Convert Image to HEIC
1687
1688    Converts any image format (JPEG, PNG, WebP, TIFF, BMP, etc.) to HEIC. Returns HEIC bytes.
1689
1690    Args:
1691        image bytes (any format): Graph of ByteList
1692        HEIC quality (1-100): Graph of Int
1693        
1694
1695    Returns:
1696        Graph: A graph node producing a ByteList.
1697    """
1698    image_bytes_parsed = parse_graph(image_bytes)
1699    quality_parsed = parse_int_graph(quality)
1700    return _internal.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:
1702def file_convert_image_to_jpeg(image_bytes, quality) -> Graph:
1703    """File Convert Image to JPEG
1704
1705    Converts any image format (PNG, WebP, TIFF, BMP, HEIC, etc.) to JPEG. Returns JPEG bytes.
1706
1707    Args:
1708        image bytes (any format): Graph of ByteList
1709        JPEG quality (1-100): Graph of Int
1710        
1711
1712    Returns:
1713        Graph: A graph node producing a ByteList.
1714    """
1715    image_bytes_parsed = parse_graph(image_bytes)
1716    quality_parsed = parse_int_graph(quality)
1717    return _internal.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:
1719def file_convert_image_to_png(image_bytes) -> Graph:
1720    """File Convert Image to PNG
1721
1722    Converts any image format (JPEG, WebP, TIFF, BMP, HEIC, etc.) to PNG. Returns PNG bytes.
1723
1724    Args:
1725        image bytes (any format): Graph of ByteList
1726        
1727
1728    Returns:
1729        Graph: A graph node producing a ByteList.
1730    """
1731    image_bytes_parsed = parse_graph(image_bytes)
1732    return _internal.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:
1734def file_convert_image_to_tiff(image_bytes) -> Graph:
1735    """File Convert Image to TIFF
1736
1737    Converts any image format (JPEG, PNG, WebP, BMP, HEIC, etc.) to TIFF. Returns TIFF bytes.
1738
1739    Args:
1740        image bytes (any format): Graph of ByteList
1741        
1742
1743    Returns:
1744        Graph: A graph node producing a ByteList.
1745    """
1746    image_bytes_parsed = parse_graph(image_bytes)
1747    return _internal.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:
1749def file_convert_image_to_web_p(image_bytes, quality) -> Graph:
1750    """File Convert Image to WebP
1751
1752    Converts any image format (JPEG, PNG, TIFF, BMP, HEIC, etc.) to WebP. Returns WebP bytes.
1753
1754    Args:
1755        image bytes (any format): Graph of ByteList
1756        WebP quality (1-100): Graph of Int
1757        
1758
1759    Returns:
1760        Graph: A graph node producing a ByteList.
1761    """
1762    image_bytes_parsed = parse_graph(image_bytes)
1763    quality_parsed = parse_int_graph(quality)
1764    return _internal.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:
1766def file_convert_video_to_animated_web_p(video_bytes) -> Graph:
1767    """File Convert Video to Animated WebP
1768
1769    Converts any video format (MP4, MOV, WebM, AVI, MKV) to an animated WebP. Returns animated WebP bytes.
1770
1771    Args:
1772        video bytes (any format): Graph of ByteList
1773        
1774
1775    Returns:
1776        Graph: A graph node producing a ByteList.
1777    """
1778    video_bytes_parsed = parse_graph(video_bytes)
1779    return _internal.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:
1781def file_convert_video_to_gif(video_bytes, frame_rate) -> Graph:
1782    """File Convert Video to GIF
1783
1784    Converts any video format (MP4, MOV, WebM, AVI, MKV) to a GIF. Returns GIF bytes.
1785
1786    Args:
1787        video bytes (any format): Graph of ByteList
1788        frame rate: Graph of Int
1789        
1790
1791    Returns:
1792        Graph: A graph node producing a ByteList.
1793    """
1794    video_bytes_parsed = parse_graph(video_bytes)
1795    frame_rate_parsed = parse_int_graph(frame_rate)
1796    return _internal.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:
1798def file_convert_video_to_m_p4(video_bytes) -> Graph:
1799    """File Convert Video to MP4
1800
1801    Converts any video format (MOV, WebM, AVI, MKV) to MP4. Returns MP4 bytes.
1802
1803    Args:
1804        video bytes (any format): Graph of ByteList
1805        
1806
1807    Returns:
1808        Graph: A graph node producing a ByteList.
1809    """
1810    video_bytes_parsed = parse_graph(video_bytes)
1811    return _internal.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:
1813def file_convert_video_to_web_m(video_bytes) -> Graph:
1814    """File Convert Video to WebM
1815
1816    Converts any video format (MP4, MOV, AVI, MKV) to WebM. Returns WebM bytes.
1817
1818    Args:
1819        video bytes (any format): Graph of ByteList
1820        
1821
1822    Returns:
1823        Graph: A graph node producing a ByteList.
1824    """
1825    video_bytes_parsed = parse_graph(video_bytes)
1826    return _internal.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:
1828def fill_custom(function_body, helpers, inputs) -> Graph:
1829    """Fill Custom
1830
1831    Creates a fill with a custom shader.
1832
1833    Args:
1834        function body: Graph of String
1835        helpers: Graph of String
1836        inputs: Graph of Dictionary
1837        
1838
1839    Returns:
1840        Graph: A graph node producing a Fill.
1841    """
1842    function_body_parsed = parse_string_graph(function_body)
1843    helpers_parsed = parse_string_graph(helpers)
1844    inputs_parsed = parse_graph(inputs)
1845    return _internal.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:
1847def fill_solid(color) -> Graph:
1848    """Fill Solid
1849
1850    Creates a fill with a solid color.
1851
1852    Args:
1853        color: Graph of RGBAColor
1854        
1855
1856    Returns:
1857        Graph: A graph node producing a Fill.
1858    """
1859    color_parsed = parse_graph(color)
1860    return _internal.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:
1862def float_add(float1, float2) -> Graph:
1863    """Float Add
1864
1865    Adds two floats together.
1866
1867    Args:
1868        float1: Graph of Float
1869        float2: Graph of Float
1870        
1871
1872    Returns:
1873        Graph: A graph node producing a Float.
1874    """
1875    float1_parsed = parse_float_graph(float1)
1876    float2_parsed = parse_float_graph(float2)
1877    return _internal.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:
1879def float_add_to_dictionary(dictionary, key, value) -> Graph:
1880    """Float Add To Dictionary
1881
1882    Adds a Float to a Dictionary
1883
1884    Args:
1885        dictionary: Graph of Dictionary
1886        key: Graph of String
1887        value: Graph of Float
1888        
1889
1890    Returns:
1891        Graph: A graph node producing a Dictionary.
1892    """
1893    dictionary_parsed = parse_graph(dictionary)
1894    key_parsed = parse_string_graph(key)
1895    value_parsed = parse_float_graph(value)
1896    return _internal.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:
1898def float_cos(angle) -> Graph:
1899    """Float Cosine
1900
1901    Computes the cosine of a float (in radians).
1902
1903    Args:
1904        Angle in radians: Graph of Float
1905        
1906
1907    Returns:
1908        Graph: A graph node producing a Float.
1909    """
1910    angle_parsed = parse_float_graph(angle)
1911    return _internal.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:
1913def float_divide(float1, float2) -> Graph:
1914    """Float Divide
1915
1916    Adds two floats together.
1917
1918    Args:
1919        float1: Graph of Float
1920        float2: Graph of Float
1921        
1922
1923    Returns:
1924        Graph: A graph node producing a Float.
1925    """
1926    float1_parsed = parse_float_graph(float1)
1927    float2_parsed = parse_float_graph(float2)
1928    return _internal.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:
1930def float_equals(float_1, float_2) -> Graph:
1931    """Float Equals
1932
1933    Checks if two floats are equal
1934
1935    Args:
1936        First Float: Graph of Float
1937        Second Float: Graph of Float
1938        
1939
1940    Returns:
1941        Graph: A graph node producing a Bool.
1942    """
1943    float_1_parsed = parse_float_graph(float_1)
1944    float_2_parsed = parse_float_graph(float_2)
1945    return _internal.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:
1947def float_greater_than(float_1, float_2) -> Graph:
1948    """Float Greater Than
1949
1950    Checks if the first float is greater than the second float
1951
1952    Args:
1953        First Float: Graph of Float
1954        Second Float: Graph of Float
1955        
1956
1957    Returns:
1958        Graph: A graph node producing a Bool.
1959    """
1960    float_1_parsed = parse_float_graph(float_1)
1961    float_2_parsed = parse_float_graph(float_2)
1962    return _internal.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:
1964def float_greater_than_or_equal(float_1, float_2) -> Graph:
1965    """Float Greater Than Or Equal
1966
1967    Checks if the first float is greater than or equal to the second float
1968
1969    Args:
1970        First Float: Graph of Float
1971        Second Float: Graph of Float
1972        
1973
1974    Returns:
1975        Graph: A graph node producing a Bool.
1976    """
1977    float_1_parsed = parse_float_graph(float_1)
1978    float_2_parsed = parse_float_graph(float_2)
1979    return _internal.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:
1981def float_if(bool, input_1, input_2) -> Graph:
1982    """Float If
1983
1984    If the boolean is true returns input 1, otherwise input 2. Type: Float
1985
1986    Args:
1987        bool: Graph of Bool
1988        input 1: Graph of Float
1989        input 2: Graph of Float
1990        
1991
1992    Returns:
1993        Graph: A graph node producing a Float.
1994    """
1995    bool_parsed = parse_bool_graph(bool)
1996    input_1_parsed = parse_float_graph(input_1)
1997    input_2_parsed = parse_float_graph(input_2)
1998    return _internal.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:
2000def float_lerp(x, float1, float2) -> Graph:
2001    """Float Lerp
2002
2003    Lerps between two floats using the x parameter
2004
2005    Args:
2006        x: Graph of Float
2007        float1: Graph of Float
2008        float2: Graph of Float
2009        
2010
2011    Returns:
2012        Graph: A graph node producing a Float.
2013    """
2014    x_parsed = parse_float_graph(x)
2015    float1_parsed = parse_float_graph(float1)
2016    float2_parsed = parse_float_graph(float2)
2017    return _internal.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:
2019def float_less_than(float_1, float_2) -> Graph:
2020    """Float Less Than
2021
2022    Checks if the first float is less than the second float
2023
2024    Args:
2025        First Float: Graph of Float
2026        Second Float: Graph of Float
2027        
2028
2029    Returns:
2030        Graph: A graph node producing a Bool.
2031    """
2032    float_1_parsed = parse_float_graph(float_1)
2033    float_2_parsed = parse_float_graph(float_2)
2034    return _internal.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:
2036def float_less_than_or_equal(float_1, float_2) -> Graph:
2037    """Float Less Than Or Equal
2038
2039    Checks if the first float is less than or equal to the second float
2040
2041    Args:
2042        First Float: Graph of Float
2043        Second Float: Graph of Float
2044        
2045
2046    Returns:
2047        Graph: A graph node producing a Bool.
2048    """
2049    float_1_parsed = parse_float_graph(float_1)
2050    float_2_parsed = parse_float_graph(float_2)
2051    return _internal.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:
2053def float_max(float1, float2) -> Graph:
2054    """Float Max
2055
2056    Returns the maximum float.
2057
2058    Args:
2059        float1: Graph of Float
2060        float2: Graph of Float
2061        
2062
2063    Returns:
2064        Graph: A graph node producing a Float.
2065    """
2066    float1_parsed = parse_float_graph(float1)
2067    float2_parsed = parse_float_graph(float2)
2068    return _internal.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:
2070def float_min(float1, float2) -> Graph:
2071    """Float Min
2072
2073    Returns the minimum float.
2074
2075    Args:
2076        float1: Graph of Float
2077        float2: Graph of Float
2078        
2079
2080    Returns:
2081        Graph: A graph node producing a Float.
2082    """
2083    float1_parsed = parse_float_graph(float1)
2084    float2_parsed = parse_float_graph(float2)
2085    return _internal.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:
2087def float_multiply(float1, float2) -> Graph:
2088    """Float Multiply
2089
2090    Multiplies two floats together.
2091
2092    Args:
2093        float1: Graph of Float
2094        float2: Graph of Float
2095        
2096
2097    Returns:
2098        Graph: A graph node producing a Float.
2099    """
2100    float1_parsed = parse_float_graph(float1)
2101    float2_parsed = parse_float_graph(float2)
2102    return _internal.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:
2104def float_passthrough(value) -> Graph:
2105    """Float Passthrough
2106
2107    Responds with the value provided. Doing nothing to it.
2108
2109    Args:
2110        value: Graph of Float
2111        
2112
2113    Returns:
2114        Graph: A graph node producing a Float.
2115    """
2116    value_parsed = parse_float_graph(value)
2117    return _internal.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:
2119def float_pow(float1, float2) -> Graph:
2120    """Float Power
2121
2122    Raises float 1 to the power of float 2
2123
2124    Args:
2125        float 1: Graph of Float
2126        float 2: Graph of Float
2127        
2128
2129    Returns:
2130        Graph: A graph node producing a Float.
2131    """
2132    float1_parsed = parse_float_graph(float1)
2133    float2_parsed = parse_float_graph(float2)
2134    return _internal.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:
2136def float_round_to_int(float) -> Graph:
2137    """Float Round to Int
2138
2139    Rounds the float to the nearest int
2140
2141    Args:
2142        float: Graph of Float
2143        
2144
2145    Returns:
2146        Graph: A graph node producing a Int.
2147    """
2148    float_parsed = parse_float_graph(float)
2149    return _internal.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:
2151def float_sin(angle) -> Graph:
2152    """Float Sine
2153
2154    Computes the sine of a float (in radians).
2155
2156    Args:
2157        Angle in radians: Graph of Float
2158        
2159
2160    Returns:
2161        Graph: A graph node producing a Float.
2162    """
2163    angle_parsed = parse_float_graph(angle)
2164    return _internal.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:
2166def float_square_root(number) -> Graph:
2167    """Float Square Root
2168
2169    Compares the square root of a number
2170
2171    Args:
2172        Number: Graph of Float
2173        
2174
2175    Returns:
2176        Graph: A graph node producing a Float.
2177    """
2178    number_parsed = parse_float_graph(number)
2179    return _internal.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:
2181def float_squared(number) -> Graph:
2182    """Float Squared
2183
2184    Raises a float to the power of 2.
2185
2186    Args:
2187        Number: Graph of Float
2188        
2189
2190    Returns:
2191        Graph: A graph node producing a Float.
2192    """
2193    number_parsed = parse_float_graph(number)
2194    return _internal.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:
2196def float_subtract(float1, float2) -> Graph:
2197    """Float Subtract
2198
2199    Adds two floats together.
2200
2201    Args:
2202        float1: Graph of Float
2203        float2: Graph of Float
2204        
2205
2206    Returns:
2207        Graph: A graph node producing a Float.
2208    """
2209    float1_parsed = parse_float_graph(float1)
2210    float2_parsed = parse_float_graph(float2)
2211    return _internal.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:
2213def image_from_byte_list(bytes) -> Graph:
2214    """Image from Bytes
2215
2216    Given some bytes, parses an image
2217
2218    Args:
2219        bytes: Graph of ByteList
2220        
2221
2222    Returns:
2223        Graph: A graph node producing a Image.
2224    """
2225    bytes_parsed = parse_graph(bytes)
2226    return _internal.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:
2228def image_to_byte_list(image) -> Graph:
2229    """Image to Byte List
2230
2231    Given an image, converts it to a byte list
2232
2233    Args:
2234        image: Graph of Image
2235        
2236
2237    Returns:
2238        Graph: A graph node producing a ByteList.
2239    """
2240    image_parsed = parse_graph(image)
2241    return _internal.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:
2243def int_abs(number) -> Graph:
2244    """Int Absolute Value
2245
2246    Returns the absolute value of an int
2247
2248    Args:
2249        number: Graph of Int
2250        
2251
2252    Returns:
2253        Graph: A graph node producing a Int.
2254    """
2255    number_parsed = parse_int_graph(number)
2256    return _internal.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:
2258def int_add(int_1, int_2) -> Graph:
2259    """Int Add
2260
2261    Adds to ints together
2262
2263    Args:
2264        First Int: Graph of Int
2265        Second Int: Graph of Int
2266        
2267
2268    Returns:
2269        Graph: A graph node producing a Int.
2270    """
2271    int_1_parsed = parse_int_graph(int_1)
2272    int_2_parsed = parse_int_graph(int_2)
2273    return _internal.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:
2275def int_add_to_dictionary(dictionary, key, value) -> Graph:
2276    """Int Add To Dictionary
2277
2278    Adds a Int to a Dictionary
2279
2280    Args:
2281        dictionary: Graph of Dictionary
2282        key: Graph of String
2283        value: Graph of Int
2284        
2285
2286    Returns:
2287        Graph: A graph node producing a Dictionary.
2288    """
2289    dictionary_parsed = parse_graph(dictionary)
2290    key_parsed = parse_string_graph(key)
2291    value_parsed = parse_int_graph(value)
2292    return _internal.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:
2294def int_equals(int_1, int_2) -> Graph:
2295    """Int Equals
2296
2297    Checks if two ints are equal
2298
2299    Args:
2300        First Int: Graph of Int
2301        Second Int: Graph of Int
2302        
2303
2304    Returns:
2305        Graph: A graph node producing a Bool.
2306    """
2307    int_1_parsed = parse_int_graph(int_1)
2308    int_2_parsed = parse_int_graph(int_2)
2309    return _internal.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:
2311def int_greater_than(int_1, int_2) -> Graph:
2312    """Int Greater Than
2313
2314    Checks if the first int is greater than the second int
2315
2316    Args:
2317        First Int: Graph of Int
2318        Second Int: Graph of Int
2319        
2320
2321    Returns:
2322        Graph: A graph node producing a Bool.
2323    """
2324    int_1_parsed = parse_int_graph(int_1)
2325    int_2_parsed = parse_int_graph(int_2)
2326    return _internal.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:
2328def int_greater_than_or_equal(int_1, int_2) -> Graph:
2329    """Int Greater Than Or Equal
2330
2331    Checks if the first int is greater than or equal to the second int
2332
2333    Args:
2334        First Int: Graph of Int
2335        Second Int: Graph of Int
2336        
2337
2338    Returns:
2339        Graph: A graph node producing a Bool.
2340    """
2341    int_1_parsed = parse_int_graph(int_1)
2342    int_2_parsed = parse_int_graph(int_2)
2343    return _internal.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:
2345def int_if(bool, input_1, input_2) -> Graph:
2346    """Int If
2347
2348    If the boolean is true returns input 1, otherwise input 2. Type: Int
2349
2350    Args:
2351        bool: Graph of Bool
2352        input 1: Graph of Int
2353        input 2: Graph of Int
2354        
2355
2356    Returns:
2357        Graph: A graph node producing a Int.
2358    """
2359    bool_parsed = parse_bool_graph(bool)
2360    input_1_parsed = parse_int_graph(input_1)
2361    input_2_parsed = parse_int_graph(input_2)
2362    return _internal.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:
2364def int_less_than(int_1, int_2) -> Graph:
2365    """Int Less Than
2366
2367    Checks if the first int is less than the second int
2368
2369    Args:
2370        First Int: Graph of Int
2371        Second Int: Graph of Int
2372        
2373
2374    Returns:
2375        Graph: A graph node producing a Bool.
2376    """
2377    int_1_parsed = parse_int_graph(int_1)
2378    int_2_parsed = parse_int_graph(int_2)
2379    return _internal.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:
2381def int_less_than_or_equal(int_1, int_2) -> Graph:
2382    """Int Less Than Or Equal
2383
2384    Checks if the first int is less than or equal to the second int
2385
2386    Args:
2387        First Int: Graph of Int
2388        Second Int: Graph of Int
2389        
2390
2391    Returns:
2392        Graph: A graph node producing a Bool.
2393    """
2394    int_1_parsed = parse_int_graph(int_1)
2395    int_2_parsed = parse_int_graph(int_2)
2396    return _internal.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:
2398def int_max(int1, int2) -> Graph:
2399    """Int Max
2400
2401    Returns the maximum int.
2402
2403    Args:
2404        int1: Graph of Int
2405        int2: Graph of Int
2406        
2407
2408    Returns:
2409        Graph: A graph node producing a Int.
2410    """
2411    int1_parsed = parse_int_graph(int1)
2412    int2_parsed = parse_int_graph(int2)
2413    return _internal.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:
2415def int_min(int1, int2) -> Graph:
2416    """Int Min
2417
2418    Returns the minimum int.
2419
2420    Args:
2421        int1: Graph of Int
2422        int2: Graph of Int
2423        
2424
2425    Returns:
2426        Graph: A graph node producing a Int.
2427    """
2428    int1_parsed = parse_int_graph(int1)
2429    int2_parsed = parse_int_graph(int2)
2430    return _internal.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:
2432def int_multiply(int_1, int_2) -> Graph:
2433    """Int Multiply
2434
2435    Multiplies two integers together
2436
2437    Args:
2438        First Int: Graph of Int
2439        Second Int: Graph of Int
2440        
2441
2442    Returns:
2443        Graph: A graph node producing a Int.
2444    """
2445    int_1_parsed = parse_int_graph(int_1)
2446    int_2_parsed = parse_int_graph(int_2)
2447    return _internal.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:
2449def int_passthrough(value) -> Graph:
2450    """Int Passthrough
2451
2452    Responds with the value provided. Doing nothing to it.
2453
2454    Args:
2455        value: Graph of Int
2456        
2457
2458    Returns:
2459        Graph: A graph node producing a Int.
2460    """
2461    value_parsed = parse_int_graph(value)
2462    return _internal.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:
2464def int_subtract(int_1, int_2) -> Graph:
2465    """Int Subtract
2466
2467    Subtracts one int from another
2468
2469    Args:
2470        int 1: Graph of Int
2471        int 2: Graph of Int
2472        
2473
2474    Returns:
2475        Graph: A graph node producing a Int.
2476    """
2477    int_1_parsed = parse_int_graph(int_1)
2478    int_2_parsed = parse_int_graph(int_2)
2479    return _internal.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:
2481def int_to_float(int) -> Graph:
2482    """Int To Float
2483
2484    Converts an Int to a Float
2485
2486    Args:
2487        int: Graph of Int
2488        
2489
2490    Returns:
2491        Graph: A graph node producing a Float.
2492    """
2493    int_parsed = parse_int_graph(int)
2494    return _internal.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:
2496def monet_network_download_u_r_l_from_asset_i_d(asset_id) -> Graph:
2497    """Monet Network Download URL from Asset ID
2498
2499    Creates a Download URL from asset ID in the Monet Network
2500
2501    Args:
2502        asset id: Graph of Int
2503        
2504
2505    Returns:
2506        Graph: A graph node producing a String.
2507    """
2508    asset_id_parsed = parse_int_graph(asset_id)
2509    return _internal.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:
2511def not_(bool) -> Graph:
2512    """Not
2513
2514    Returns the opposite of a boolean
2515
2516    Args:
2517        Bool: Graph of Bool
2518        
2519
2520    Returns:
2521        Graph: A graph node producing a Bool.
2522    """
2523    bool_parsed = parse_bool_graph(bool)
2524    return _internal.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:
2526def null_value() -> Graph:
2527    """Null Value
2528
2529    Returns a null value
2530
2531    Returns:
2532        Graph: A graph node producing a Null.
2533    """
2534    return _internal.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:
2536def ok_lab_color_from_components(l, a, b) -> Graph:
2537    """OkLab Color from Components
2538
2539    Given the L, a and b creates the color
2540
2541    Args:
2542        l: Graph of Float
2543        a: Graph of Float
2544        b: Graph of Float
2545        
2546
2547    Returns:
2548        Graph: A graph node producing a OkLabColor.
2549    """
2550    l_parsed = parse_float_graph(l)
2551    a_parsed = parse_float_graph(a)
2552    b_parsed = parse_float_graph(b)
2553    return _internal.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:
2555def ok_lab_hist_lightness_quantile(hist, quantile) -> Graph:
2556    """OkLab Histogram Lightness Quantile
2557
2558    Given an OkLab histogram and a quantile, returns the lightness value that corresponds to the quantile.
2559
2560    Args:
2561        hist: Graph of OkLabHist
2562        quantile: Graph of Float
2563        
2564
2565    Returns:
2566        Graph: A graph node producing a Float.
2567    """
2568    hist_parsed = parse_graph(hist)
2569    quantile_parsed = parse_float_graph(quantile)
2570    return _internal.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:
2572def ok_lab_to_r_g_b(ok_lab, color_profile) -> Graph:
2573    """OkLab to RGB
2574
2575    Converts an OkLab color to an RGB color
2576
2577    Args:
2578        OkLab: Graph of OkLabColor
2579        color profile: Graph of ColorProfile
2580        
2581
2582    Returns:
2583        Graph: A graph node producing a RGBColor.
2584    """
2585    ok_lab_parsed = parse_graph(ok_lab)
2586    color_profile_parsed = parse_graph(color_profile)
2587    return _internal.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:
2589def or_(bool1, bool2) -> Graph:
2590    """Or
2591
2592    Returns true if either inputs are true.
2593
2594    Args:
2595        bool1: Graph of Bool
2596        bool2: Graph of Bool
2597        
2598
2599    Returns:
2600        Graph: A graph node producing a Bool.
2601    """
2602    bool1_parsed = parse_bool_graph(bool1)
2603    bool2_parsed = parse_bool_graph(bool2)
2604    return _internal.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:
2606def painter_add_ellipse_with_render_style(painter, center, dimensions, rotation, render_style, instances) -> Graph:
2607    """Painter Add Ellipse with Render Style
2608
2609    Adds an ellipse to the painter and draws it with the render style. Set some transforms on the ellipse as well.
2610
2611    Args:
2612        painter: Graph of Painter
2613        center point of the ellipse: Graph of Point2f
2614        width (a) and height (b) of the ellipse: Graph of Vector2f
2615        rotation angle in radians: Graph of Float
2616        render style: Graph of RenderStyle
2617        instances: Graph of Transform2List
2618        
2619
2620    Returns:
2621        Graph: A graph node producing a Painter.
2622    """
2623    painter_parsed = parse_graph(painter)
2624    center_parsed = parse_graph(center)
2625    dimensions_parsed = parse_graph(dimensions)
2626    rotation_parsed = parse_float_graph(rotation)
2627    render_style_parsed = parse_graph(render_style)
2628    instances_parsed = parse_graph(instances)
2629    return _internal.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:
2631def painter_add_path_with_render_style(painter, path, render_style, instances) -> Graph:
2632    """Painter Add Path with Render Style
2633
2634    Adds a path to the painter and draws it with the render style. Set some transforms on the path as well.
2635
2636    Args:
2637        painter: Graph of Painter
2638        path: Graph of Path
2639        render style: Graph of RenderStyle
2640        instances: Graph of Transform2List
2641        
2642
2643    Returns:
2644        Graph: A graph node producing a Painter.
2645    """
2646    painter_parsed = parse_graph(painter)
2647    path_parsed = parse_graph(path)
2648    render_style_parsed = parse_graph(render_style)
2649    instances_parsed = parse_graph(instances)
2650    return _internal.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:
2652def painter_add_rectangle_with_render_style(painter, center, dimensions, rotation, render_style, instances) -> Graph:
2653    """Painter Add Rectangle with Render Style
2654
2655    Adds a rectangle to the painter and draws it with the render style. Set some transforms on the rectangle as well.
2656
2657    Args:
2658        painter: Graph of Painter
2659        center point of the rectangle: Graph of Point2f
2660        width and height of the rectangle: Graph of Vector2f
2661        rotation angle in radians: Graph of Float
2662        render style: Graph of RenderStyle
2663        instances: Graph of Transform2List
2664        
2665
2666    Returns:
2667        Graph: A graph node producing a Painter.
2668    """
2669    painter_parsed = parse_graph(painter)
2670    center_parsed = parse_graph(center)
2671    dimensions_parsed = parse_graph(dimensions)
2672    rotation_parsed = parse_float_graph(rotation)
2673    render_style_parsed = parse_graph(render_style)
2674    instances_parsed = parse_graph(instances)
2675    return _internal.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:
2677def painter_new(color_profile) -> Graph:
2678    """Painter New
2679
2680    Creates a new painter.
2681
2682    Args:
2683        color profile: Graph of ColorProfile
2684        
2685
2686    Returns:
2687        Graph: A graph node producing a Painter.
2688    """
2689    color_profile_parsed = parse_graph(color_profile)
2690    return _internal.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_cardinal_cubic_to_point(path, point, tension) -> Graph:
2692def path_cardinal_cubic_to_point(path, point, tension) -> Graph:
2693    """Path Cardinal Cubic to Point
2694
2695    Moves the path from it's current point to another with a Cardinal Cubic spline.
2696
2697    Args:
2698        path: Graph of Path
2699        point: Graph of Point2f
2700        tension: Graph of Float
2701        
2702
2703    Returns:
2704        Graph: A graph node producing a Path.
2705    """
2706    path_parsed = parse_graph(path)
2707    point_parsed = parse_graph(point)
2708    tension_parsed = parse_float_graph(tension)
2709    return _internal.path_cardinal_cubic_to_point_internal(path_parsed, point_parsed, tension_parsed)

Path Cardinal Cubic to Point

Moves the path from it's current point to another with a Cardinal Cubic spline.

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

Returns: Graph: A graph node producing a Path.

def path_catmull_rom_to_point(path, point) -> Graph:
2711def path_catmull_rom_to_point(path, point) -> Graph:
2712    """Path Catmull-Rom to Point
2713
2714    Moves the path from it's current point to another with a Catmull-Rom spline.
2715
2716    Args:
2717        path: Graph of Path
2718        point: Graph of Point2f
2719        
2720
2721    Returns:
2722        Graph: A graph node producing a Path.
2723    """
2724    path_parsed = parse_graph(path)
2725    point_parsed = parse_graph(point)
2726    return _internal.path_catmull_rom_to_point_internal(path_parsed, point_parsed)

Path Catmull-Rom to Point

Moves the path from it's current point to another with a Catmull-Rom spline.

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

Returns: Graph: A graph node producing a Path.

def path_line_to_point(path, point) -> Graph:
2728def path_line_to_point(path, point) -> Graph:
2729    """Path Line to Point
2730
2731    Moves the path from it's current point to another at another point with a line.
2732
2733    Args:
2734        path: Graph of Path
2735        point: Graph of Point2f
2736        
2737
2738    Returns:
2739        Graph: A graph node producing a Path.
2740    """
2741    path_parsed = parse_graph(path)
2742    point_parsed = parse_graph(point)
2743    return _internal.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:
2745def path_move_to_point(path, point) -> Graph:
2746    """Path Move to Point
2747
2748    Moves the path to a specified point without drawing anything.
2749
2750    Args:
2751        path: Graph of Path
2752        point: Graph of Point2f
2753        
2754
2755    Returns:
2756        Graph: A graph node producing a Path.
2757    """
2758    path_parsed = parse_graph(path)
2759    point_parsed = parse_graph(point)
2760    return _internal.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:
2762def path_new() -> Graph:
2763    """Path New
2764
2765    Creates a new empty path.
2766
2767    Returns:
2768        Graph: A graph node producing a Path.
2769    """
2770    return _internal.path_new_internal()

Path New

Creates a new empty path.

Returns: Graph: A graph node producing a Path.

def pi() -> Graph:
2772def pi() -> Graph:
2773    """Pi
2774
2775    Returns π as a float
2776
2777    Returns:
2778        Graph: A graph node producing a Float.
2779    """
2780    return _internal.pi_internal()

Pi

Returns π as a float

Returns: Graph: A graph node producing a Float.

def point2f_distance(lhs, rhs) -> Graph:
2782def point2f_distance(lhs, rhs) -> Graph:
2783    """Point 2 Float Distance
2784
2785    The Euclidean distance between two Point 2 Floats.
2786
2787    Args:
2788        The first point: Graph of Point2f
2789        The second point: Graph of Point2f
2790        
2791
2792    Returns:
2793        Graph: A graph node producing a Float.
2794    """
2795    lhs_parsed = parse_graph(lhs)
2796    rhs_parsed = parse_graph(rhs)
2797    return _internal.point2f_distance_internal(lhs_parsed, rhs_parsed)

Point 2 Float Distance

The Euclidean distance between two Point 2 Floats.

Args: The first point: Graph of Point2f The second point: Graph of Point2f

Returns: Graph: A graph node producing a Float.

def point2f_from_components(x, y) -> Graph:
2799def point2f_from_components(x, y) -> Graph:
2800    """Point 2 Float from Components
2801
2802    Given an x and y creates a point
2803
2804    Args:
2805        x: Graph of Float
2806        y: Graph of Float
2807        
2808
2809    Returns:
2810        Graph: A graph node producing a Point2f.
2811    """
2812    x_parsed = parse_float_graph(x)
2813    y_parsed = parse_float_graph(y)
2814    return _internal.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 point2i_distance(lhs, rhs) -> Graph:
2816def point2i_distance(lhs, rhs) -> Graph:
2817    """Point 2 Int Distance
2818
2819    The Euclidean distance between two Point 2 Ints, returned as a Float.
2820
2821    Args:
2822        The first point: Graph of Point2i
2823        The second point: Graph of Point2i
2824        
2825
2826    Returns:
2827        Graph: A graph node producing a Float.
2828    """
2829    lhs_parsed = parse_graph(lhs)
2830    rhs_parsed = parse_graph(rhs)
2831    return _internal.point2i_distance_internal(lhs_parsed, rhs_parsed)

Point 2 Int Distance

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

Args: The first point: Graph of Point2i The second point: Graph of Point2i

Returns: Graph: A graph node producing a Float.

def point2i_from_components(x, y) -> Graph:
2833def point2i_from_components(x, y) -> Graph:
2834    """Point 2 Int from Components
2835
2836    Given an x and y creates a point
2837
2838    Args:
2839        x: Graph of Int
2840        y: Graph of Int
2841        
2842
2843    Returns:
2844        Graph: A graph node producing a Point2i.
2845    """
2846    x_parsed = parse_int_graph(x)
2847    y_parsed = parse_int_graph(y)
2848    return _internal.point2i_from_components_internal(x_parsed, y_parsed)

Point 2 Int from Components

Given an x and y creates a point

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

Returns: Graph: A graph node producing a Point2i.

def r_g_b_a_color_add_to_dictionary(dictionary, key, value) -> Graph:
2850def r_g_b_a_color_add_to_dictionary(dictionary, key, value) -> Graph:
2851    """RGBA Color Add To Dictionary
2852
2853    Adds a RGBA Color to a Dictionary
2854
2855    Args:
2856        dictionary: Graph of Dictionary
2857        key: Graph of String
2858        value: Graph of RGBAColor
2859        
2860
2861    Returns:
2862        Graph: A graph node producing a Dictionary.
2863    """
2864    dictionary_parsed = parse_graph(dictionary)
2865    key_parsed = parse_string_graph(key)
2866    value_parsed = parse_graph(value)
2867    return _internal.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:
2869def r_g_b_a_color_from_components(r, g, b, a) -> Graph:
2870    """RGBA Color from Components
2871
2872    Given the r, g, b and a creates the color
2873
2874    Args:
2875        red: Graph of Float
2876        green: Graph of Float
2877        blue: Graph of Float
2878        alpha: Graph of Float
2879        
2880
2881    Returns:
2882        Graph: A graph node producing a RGBAColor.
2883    """
2884    r_parsed = parse_float_graph(r)
2885    g_parsed = parse_float_graph(g)
2886    b_parsed = parse_float_graph(b)
2887    a_parsed = parse_float_graph(a)
2888    return _internal.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:
2890def r_g_b_a_color_passthrough(value) -> Graph:
2891    """RGBA Color Passthrough
2892
2893    Responds with the value provided. Doing nothing to it.
2894
2895    Args:
2896        value: Graph of RGBAColor
2897        
2898
2899    Returns:
2900        Graph: A graph node producing a RGBAColor.
2901    """
2902    value_parsed = parse_graph(value)
2903    return _internal.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:
2905def r_g_b_color_add_to_dictionary(dictionary, key, value) -> Graph:
2906    """RGB Color Add To Dictionary
2907
2908    Adds a RGB Color to a Dictionary
2909
2910    Args:
2911        dictionary: Graph of Dictionary
2912        key: Graph of String
2913        value: Graph of RGBColor
2914        
2915
2916    Returns:
2917        Graph: A graph node producing a Dictionary.
2918    """
2919    dictionary_parsed = parse_graph(dictionary)
2920    key_parsed = parse_string_graph(key)
2921    value_parsed = parse_graph(value)
2922    return _internal.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:
2924def r_g_b_color_from_components(r, g, b) -> Graph:
2925    """RGB Color from Components
2926
2927    Given the r, g and b creates the color
2928
2929    Args:
2930        red: Graph of Float
2931        green: Graph of Float
2932        blue: Graph of Float
2933        
2934
2935    Returns:
2936        Graph: A graph node producing a RGBColor.
2937    """
2938    r_parsed = parse_float_graph(r)
2939    g_parsed = parse_float_graph(g)
2940    b_parsed = parse_float_graph(b)
2941    return _internal.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:
2943def r_g_b_color_passthrough(value) -> Graph:
2944    """RGB Color Passthrough
2945
2946    Responds with the value provided. Doing nothing to it.
2947
2948    Args:
2949        value: Graph of RGBColor
2950        
2951
2952    Returns:
2953        Graph: A graph node producing a RGBColor.
2954    """
2955    value_parsed = parse_graph(value)
2956    return _internal.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:
2958def r_g_b_to_ok_lab(rgb, color_profile) -> Graph:
2959    """RGB to OkLab
2960
2961    Converts an RGB color to an OkLab color
2962
2963    Args:
2964        RGB: Graph of RGBColor
2965        color profile: Graph of ColorProfile
2966        
2967
2968    Returns:
2969        Graph: A graph node producing a OkLabColor.
2970    """
2971    rgb_parsed = parse_graph(rgb)
2972    color_profile_parsed = parse_graph(color_profile)
2973    return _internal.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:
2975def render_style_brush_and_fill(brush, fill) -> Graph:
2976    """Render Style Brush and Fill
2977
2978    Creates a render style that will have a brush and a fill.
2979
2980    Args:
2981        brush: Graph of Brush
2982        fill: Graph of Fill
2983        
2984
2985    Returns:
2986        Graph: A graph node producing a RenderStyle.
2987    """
2988    brush_parsed = parse_graph(brush)
2989    fill_parsed = parse_graph(fill)
2990    return _internal.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:
2992def render_style_brush_only(brush) -> Graph:
2993    """Render Style Brush Only
2994
2995    Creates a render style that will only have a brush.
2996
2997    Args:
2998        brush: Graph of Brush
2999        
3000
3001    Returns:
3002        Graph: A graph node producing a RenderStyle.
3003    """
3004    brush_parsed = parse_graph(brush)
3005    return _internal.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:
3007def render_style_fill_only(fill) -> Graph:
3008    """Render Style Fill Only
3009
3010    Creates a render style that will only have a fill.
3011
3012    Args:
3013        fill: Graph of Fill
3014        
3015
3016    Returns:
3017        Graph: A graph node producing a RenderStyle.
3018    """
3019    fill_parsed = parse_graph(fill)
3020    return _internal.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:
3022def sequence_adjust_speed(sequence, factor) -> Graph:
3023    """Sequence Adjust Speed
3024
3025    Adjusts the speed of a sequence by a speed factor.
3026
3027    Args:
3028        sequence: Graph of Sequence
3029        factor: Graph of Float
3030        
3031
3032    Returns:
3033        Graph: A graph node producing a Sequence.
3034    """
3035    sequence_parsed = parse_graph(sequence)
3036    factor_parsed = parse_float_graph(factor)
3037    return _internal.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:
3039def sequence_composition_at_time(sequence, time) -> Graph:
3040    """Sequence Composition at Time
3041
3042    Extracts an composition from a sequence at a particular time
3043
3044    Args:
3045        sequence: Graph of Sequence
3046        time: Graph of Float
3047        
3048
3049    Returns:
3050        Graph: A graph node producing a Composition.
3051    """
3052    sequence_parsed = parse_graph(sequence)
3053    time_parsed = parse_float_graph(time)
3054    return _internal.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:
3056def sequence_concatenate(sequence_1, sequence_2) -> Graph:
3057    """Sequence Concatenate
3058
3059    Given two sequences, combines them into one by playing the first one and then the second one.
3060
3061    Args:
3062        sequence 1: Graph of Sequence
3063        sequence 2: Graph of Sequence
3064        
3065
3066    Returns:
3067        Graph: A graph node producing a Sequence.
3068    """
3069    sequence_1_parsed = parse_graph(sequence_1)
3070    sequence_2_parsed = parse_graph(sequence_2)
3071    return _internal.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:
3073def sequence_duration(sequence) -> Graph:
3074    """Sequence Duration
3075
3076    Gets the duration from a sequence
3077
3078    Args:
3079        sequence: Graph of Sequence
3080        
3081
3082    Returns:
3083        Graph: A graph node producing a Float.
3084    """
3085    sequence_parsed = parse_graph(sequence)
3086    return _internal.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:
3088def sequence_from_composition_and_duration(composition, duration) -> Graph:
3089    """Sequence from Composition and Duration
3090
3091    Give a Composition and a Duration. Returns a Sequence.
3092
3093    Args:
3094        composition: Graph of Composition
3095        duration: Graph of Float
3096        
3097
3098    Returns:
3099        Graph: A graph node producing a Sequence.
3100    """
3101    composition_parsed = parse_graph(composition)
3102    duration_parsed = parse_float_graph(duration)
3103    return _internal.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:
3105def sequence_from_u_r_l(url) -> Graph:
3106    """Sequence from URL
3107
3108    Creates a sequence from URL
3109
3110    Args:
3111        url: Graph of String
3112        
3113
3114    Returns:
3115        Graph: A graph node producing a Sequence.
3116    """
3117    url_parsed = parse_string_graph(url)
3118    return _internal.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:
3120def sequence_graph(duration, time, frame) -> Graph:
3121    """Sequence Graph
3122
3123    Creates a sequence that runs the graph to get the duration and the frame for each time.
3124
3125    Args:
3126        duration: Graph of Float
3127        time: Graph of Float
3128        frame: Graph of Composition
3129        
3130
3131    Returns:
3132        Graph: A graph node producing a Sequence.
3133    """
3134    duration_parsed = parse_float_graph(duration)
3135    time_parsed = parse_float_graph(time)
3136    frame_parsed = parse_graph(frame)
3137    return _internal.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:
3139def sequence_grayscale(sequence) -> Graph:
3140    """Sequence Grayscale
3141
3142    Creates a sequence that converts the video to grayscale
3143
3144    Args:
3145        sequence: Graph of Sequence
3146        
3147
3148    Returns:
3149        Graph: A graph node producing a Sequence.
3150    """
3151    sequence_parsed = parse_graph(sequence)
3152    return _internal.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:
3154def sequence_passthrough(value) -> Graph:
3155    """Sequence Passthrough
3156
3157    Responds with the value provided. Doing nothing to it.
3158
3159    Args:
3160        value: Graph of Sequence
3161        
3162
3163    Returns:
3164        Graph: A graph node producing a Sequence.
3165    """
3166    value_parsed = parse_graph(value)
3167    return _internal.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:
3169def sequence_reverse(sequence) -> Graph:
3170    """Sequence Reverse
3171
3172    Given a sequence. Reverses it.
3173
3174    Args:
3175        sequence: Graph of Sequence
3176        
3177
3178    Returns:
3179        Graph: A graph node producing a Sequence.
3180    """
3181    sequence_parsed = parse_graph(sequence)
3182    return _internal.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:
3184def sequence_to_mp4(sequence, frame_rate) -> Graph:
3185    """Sequence To MP4
3186
3187    Given a sequence. Converts it to MP4 return a local file to where that MP4 is stored.
3188
3189    Args:
3190        sequence: Graph of Sequence
3191        frame rate: Graph of Int
3192        
3193
3194    Returns:
3195        Graph: A graph node producing a ByteList.
3196    """
3197    sequence_parsed = parse_graph(sequence)
3198    frame_rate_parsed = parse_int_graph(frame_rate)
3199    return _internal.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:
3201def sequence_trim_back(sequence, amount) -> Graph:
3202    """Sequence Trim Back
3203
3204    Given a sequence. Trims from the back.
3205
3206    Args:
3207        sequence: Graph of Sequence
3208        amount: Graph of Float
3209        
3210
3211    Returns:
3212        Graph: A graph node producing a Sequence.
3213    """
3214    sequence_parsed = parse_graph(sequence)
3215    amount_parsed = parse_float_graph(amount)
3216    return _internal.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:
3218def sequence_trim_front(sequence, amount) -> Graph:
3219    """Sequence Trim Front
3220
3221    Given a sequence. Trims from the front.
3222
3223    Args:
3224        sequence: Graph of Sequence
3225        amount: Graph of Float
3226        
3227
3228    Returns:
3229        Graph: A graph node producing a Sequence.
3230    """
3231    sequence_parsed = parse_graph(sequence)
3232    amount_parsed = parse_float_graph(amount)
3233    return _internal.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:
3235def string_if(bool, input_1, input_2) -> Graph:
3236    """String If
3237
3238    If the boolean is true returns input 1, otherwise input 2. Type: String
3239
3240    Args:
3241        bool: Graph of Bool
3242        input 1: Graph of String
3243        input 2: Graph of String
3244        
3245
3246    Returns:
3247        Graph: A graph node producing a String.
3248    """
3249    bool_parsed = parse_bool_graph(bool)
3250    input_1_parsed = parse_string_graph(input_1)
3251    input_2_parsed = parse_string_graph(input_2)
3252    return _internal.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:
3254def transform2_identity() -> Graph:
3255    """Transform 2D Identity
3256
3257    Creates a 2D transform that is the identity transform.
3258
3259    Returns:
3260        Graph: A graph node producing a Transform2.
3261    """
3262    return _internal.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:
3264def transform2_if(bool, input_1, input_2) -> Graph:
3265    """Transform 2D If
3266
3267    If the boolean is true returns input 1, otherwise input 2. Type: Transform2
3268
3269    Args:
3270        bool: Graph of Bool
3271        input 1: Graph of Transform2
3272        input 2: Graph of Transform2
3273        
3274
3275    Returns:
3276        Graph: A graph node producing a Transform2.
3277    """
3278    bool_parsed = parse_bool_graph(bool)
3279    input_1_parsed = parse_graph(input_1)
3280    input_2_parsed = parse_graph(input_2)
3281    return _internal.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:
3283def transform2_rotate(transform, angle) -> Graph:
3284    """Transform 2D Rotate
3285
3286    Applies a rotation to a 2D transform. Rotation is in radians.
3287
3288    Args:
3289        transform: Graph of Transform2
3290        angle in radians: Graph of Float
3291        
3292
3293    Returns:
3294        Graph: A graph node producing a Transform2.
3295    """
3296    transform_parsed = parse_graph(transform)
3297    angle_parsed = parse_float_graph(angle)
3298    return _internal.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:
3300def transform2_scale(transform, scale) -> Graph:
3301    """Transform 2D Scale
3302
3303    Applies a scale to a 2D transform.
3304
3305    Args:
3306        transform: Graph of Transform2
3307        scale: Graph of Vector2f
3308        
3309
3310    Returns:
3311        Graph: A graph node producing a Transform2.
3312    """
3313    transform_parsed = parse_graph(transform)
3314    scale_parsed = parse_graph(scale)
3315    return _internal.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:
3317def transform2_to_list(item) -> Graph:
3318    """Transform 2D to List
3319
3320    Converts Transform 2D to a single item list
3321
3322    Args:
3323        item: Graph of Transform2
3324        
3325
3326    Returns:
3327        Graph: A graph node producing a Transform2List.
3328    """
3329    item_parsed = parse_graph(item)
3330    return _internal.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:
3332def transform2_translation(transform, translation) -> Graph:
3333    """Transform 2D Translation
3334
3335    Applies a translation to a 2D transform.
3336
3337    Args:
3338        transform: Graph of Transform2
3339        translation: Graph of Vector2f
3340        
3341
3342    Returns:
3343        Graph: A graph node producing a Transform2.
3344    """
3345    transform_parsed = parse_graph(transform)
3346    translation_parsed = parse_graph(translation)
3347    return _internal.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:
3349def upload_byte_list(bytes, url, content_type) -> Graph:
3350    """Upload Byte List
3351
3352    Given bytes and a URL. Performs a PUT request and uploads the bytes
3353
3354    Args:
3355        bytes: Graph of ByteList
3356        url: Graph of String
3357        content type: Graph of String
3358        
3359
3360    Returns:
3361        Graph: A graph node producing a Void.
3362    """
3363    bytes_parsed = parse_graph(bytes)
3364    url_parsed = parse_string_graph(url)
3365    content_type_parsed = parse_string_graph(content_type)
3366    return _internal.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:
3368def upload_file_path(path, url, content_type) -> Graph:
3369    """Upload File Path
3370
3371    Reads a file from a local path on disk and uploads its contents to a URL via PUT request
3372
3373    Args:
3374        local file path to read: Graph of String
3375        url: Graph of String
3376        content type: Graph of String
3377        
3378
3379    Returns:
3380        Graph: A graph node producing a Void.
3381    """
3382    path_parsed = parse_string_graph(path)
3383    url_parsed = parse_string_graph(url)
3384    content_type_parsed = parse_string_graph(content_type)
3385    return _internal.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:
3387def vector2_int_to_vector2_float(vector) -> Graph:
3388    """Vector 2 Int to Vector 2 Float
3389
3390    Given a Vector 2 Int. Creates a Vector 2 Float.
3391
3392    Args:
3393        vector: Graph of Vector2i
3394        
3395
3396    Returns:
3397        Graph: A graph node producing a Vector2f.
3398    """
3399    vector_parsed = parse_graph(vector)
3400    return _internal.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:
3402def vector2f_add(lhs, rhs) -> Graph:
3403    """Vector 2 Float Add
3404
3405    Add two Vector 2s of Floats
3406
3407    Args:
3408        The vector on the left hand side of the add: Graph of Vector2f
3409        The vector on the right hand side of the add: Graph of Vector2f
3410        
3411
3412    Returns:
3413        Graph: A graph node producing a Vector2f.
3414    """
3415    lhs_parsed = parse_graph(lhs)
3416    rhs_parsed = parse_graph(rhs)
3417    return _internal.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:
3419def vector2f_add_to_dictionary(dictionary, key, value) -> Graph:
3420    """Vector 2 Float Add To Dictionary
3421
3422    Adds a Vector 2 Float to a Dictionary
3423
3424    Args:
3425        dictionary: Graph of Dictionary
3426        key: Graph of String
3427        value: Graph of Vector2f
3428        
3429
3430    Returns:
3431        Graph: A graph node producing a Dictionary.
3432    """
3433    dictionary_parsed = parse_graph(dictionary)
3434    key_parsed = parse_string_graph(key)
3435    value_parsed = parse_graph(value)
3436    return _internal.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:
3438def vector2f_from_components(x, y) -> Graph:
3439    """Vector 2 Float from Components
3440
3441    Given an x and y creates a vector.
3442
3443    Args:
3444        x: Graph of Float
3445        y: Graph of Float
3446        
3447
3448    Returns:
3449        Graph: A graph node producing a Vector2f.
3450    """
3451    x_parsed = parse_float_graph(x)
3452    y_parsed = parse_float_graph(y)
3453    return _internal.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:
3455def vector2f_normalize(vector) -> Graph:
3456    """Vector 2 Float Normalize
3457
3458    Normalizes a Vector. Converting it's length to 1.
3459
3460    Args:
3461        Vector: Graph of Vector2f
3462        
3463
3464    Returns:
3465        Graph: A graph node producing a Vector2f.
3466    """
3467    vector_parsed = parse_graph(vector)
3468    return _internal.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:
3470def vector2f_passthrough(value) -> Graph:
3471    """Vector 2 Float Passthrough
3472
3473    Responds with the value provided. Doing nothing to it.
3474
3475    Args:
3476        value: Graph of Vector2f
3477        
3478
3479    Returns:
3480        Graph: A graph node producing a Vector2f.
3481    """
3482    value_parsed = parse_graph(value)
3483    return _internal.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:
3485def vector2f_scalar_multiply(vector, scalar) -> Graph:
3486    """Vector 2 Float Scalar Multiply
3487
3488    Multiplies each element of the Vector as a scalar
3489
3490    Args:
3491        Vector: Graph of Vector2f
3492        Scalar: Graph of Float
3493        
3494
3495    Returns:
3496        Graph: A graph node producing a Vector2f.
3497    """
3498    vector_parsed = parse_graph(vector)
3499    scalar_parsed = parse_float_graph(scalar)
3500    return _internal.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:
3502def vector2f_x(vector) -> Graph:
3503    """Vector 2 Float get X
3504
3505    Retrieves the X component of a Vector 2 Float.
3506
3507    Args:
3508        vector: Graph of Vector2f
3509        
3510
3511    Returns:
3512        Graph: A graph node producing a Float.
3513    """
3514    vector_parsed = parse_graph(vector)
3515    return _internal.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:
3517def vector2f_y(vector) -> Graph:
3518    """Vector 2 Float get Y
3519
3520    Retrieves the Y component of a Vector 2 Float.
3521
3522    Args:
3523        vector: Graph of Vector2f
3524        
3525
3526    Returns:
3527        Graph: A graph node producing a Float.
3528    """
3529    vector_parsed = parse_graph(vector)
3530    return _internal.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:
3532def vector2i_add(lhs, rhs) -> Graph:
3533    """Vector 2 Int Add
3534
3535    Add two Vector 2s of Ints
3536
3537    Args:
3538        The vector on the left hand side of the add: Graph of Vector2i
3539        The vector on the right hand side of the add: Graph of Vector2i
3540        
3541
3542    Returns:
3543        Graph: A graph node producing a Vector2i.
3544    """
3545    lhs_parsed = parse_graph(lhs)
3546    rhs_parsed = parse_graph(rhs)
3547    return _internal.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:
3549def vector2i_add_to_dictionary(dictionary, key, value) -> Graph:
3550    """Vector 2 Int Add To Dictionary
3551
3552    Adds a Vector 2 Int to a Dictionary
3553
3554    Args:
3555        dictionary: Graph of Dictionary
3556        key: Graph of String
3557        value: Graph of Vector2i
3558        
3559
3560    Returns:
3561        Graph: A graph node producing a Dictionary.
3562    """
3563    dictionary_parsed = parse_graph(dictionary)
3564    key_parsed = parse_string_graph(key)
3565    value_parsed = parse_graph(value)
3566    return _internal.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:
3568def vector2i_from_components(x, y) -> Graph:
3569    """Vector 2 Int from Components
3570
3571    Given an x and y creates a vector.
3572
3573    Args:
3574        x: Graph of Int
3575        y: Graph of Int
3576        
3577
3578    Returns:
3579        Graph: A graph node producing a Vector2i.
3580    """
3581    x_parsed = parse_int_graph(x)
3582    y_parsed = parse_int_graph(y)
3583    return _internal.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:
3585def vector2i_passthrough(value) -> Graph:
3586    """Vector 2 Int Passthrough
3587
3588    Responds with the value provided. Doing nothing to it.
3589
3590    Args:
3591        value: Graph of Vector2i
3592        
3593
3594    Returns:
3595        Graph: A graph node producing a Vector2i.
3596    """
3597    value_parsed = parse_graph(value)
3598    return _internal.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:
3600def vector2i_to_vector2f(vector) -> Graph:
3601    """Vector 2 Int to Vector 2 Float
3602
3603    Given a Vector 2 Int. Creates a Vector 2 Float.
3604
3605    Args:
3606        vector: Graph of Vector2i
3607        
3608
3609    Returns:
3610        Graph: A graph node producing a Vector2f.
3611    """
3612    vector_parsed = parse_graph(vector)
3613    return _internal.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:
3615def vector2i_x(vector) -> Graph:
3616    """Vector 2 Int get X
3617
3618    Retrieves the X component of a Vector 2 Int.
3619
3620    Args:
3621        vector: Graph of Vector2i
3622        
3623
3624    Returns:
3625        Graph: A graph node producing a Int.
3626    """
3627    vector_parsed = parse_graph(vector)
3628    return _internal.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:
3630def vector2i_y(vector) -> Graph:
3631    """Vector 2 Int get Y
3632
3633    Retrieves the Y component of a Vector 2 Int.
3634
3635    Args:
3636        vector: Graph of Vector2i
3637        
3638
3639    Returns:
3640        Graph: A graph node producing a Int.
3641    """
3642    vector_parsed = parse_graph(vector)
3643    return _internal.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:
3645def vector3f_add(lhs, rhs) -> Graph:
3646    """Vector 3 Float Add
3647
3648    Add two Vector 3s of Floats
3649
3650    Args:
3651        The vector on the left hand side of the add: Graph of Vector3f
3652        The vector on the right hand side of the add: Graph of Vector3f
3653        
3654
3655    Returns:
3656        Graph: A graph node producing a Vector3f.
3657    """
3658    lhs_parsed = parse_graph(lhs)
3659    rhs_parsed = parse_graph(rhs)
3660    return _internal.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:
3662def vector3f_from_components(x, y, z) -> Graph:
3663    """Vector 3 Float from Components
3664
3665    Given an x, y and z creates a vector floats.
3666
3667    Args:
3668        x: Graph of Float
3669        y: Graph of Float
3670        z: Graph of Float
3671        
3672
3673    Returns:
3674        Graph: A graph node producing a Vector3f.
3675    """
3676    x_parsed = parse_float_graph(x)
3677    y_parsed = parse_float_graph(y)
3678    z_parsed = parse_float_graph(z)
3679    return _internal.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:
3681def vector3f_normalize(vector) -> Graph:
3682    """Vector 3 Normalize
3683
3684    Normalizes a Vector 3 Float. Converting it's length to 1.
3685
3686    Args:
3687        Vector: Graph of Vector3f
3688        
3689
3690    Returns:
3691        Graph: A graph node producing a Vector3f.
3692    """
3693    vector_parsed = parse_graph(vector)
3694    return _internal.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:
3696def vector3f_x(vector) -> Graph:
3697    """Vector 3D Float X
3698
3699    Gets the value in the x component for the provided vector
3700
3701    Args:
3702        vector: Graph of Vector3f
3703        
3704
3705    Returns:
3706        Graph: A graph node producing a Float.
3707    """
3708    vector_parsed = parse_graph(vector)
3709    return _internal.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:
3711def vector3f_y(vector) -> Graph:
3712    """Vector 3D Y Float
3713
3714    Gets the value in the y component for the provided vector
3715
3716    Args:
3717        vector: Graph of Vector3f
3718        
3719
3720    Returns:
3721        Graph: A graph node producing a Float.
3722    """
3723    vector_parsed = parse_graph(vector)
3724    return _internal.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:
3726def vector3f_z(vector) -> Graph:
3727    """Vector 3D Float Z
3728
3729    Gets the value in the z component for the provided vector
3730
3731    Args:
3732        vector: Graph of Vector3f
3733        
3734
3735    Returns:
3736        Graph: A graph node producing a Float.
3737    """
3738    vector_parsed = parse_graph(vector)
3739    return _internal.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:
3741def xor(bool1, bool2) -> Graph:
3742    """Exclusive Or
3743
3744    Returns true if either the inputs are true. But false if both are true.
3745
3746    Args:
3747        the first bool: Graph of Bool
3748        The second bool: Graph of Bool
3749        
3750
3751    Returns:
3752        Graph: A graph node producing a Bool.
3753    """
3754    bool1_parsed = parse_bool_graph(bool1)
3755    bool2_parsed = parse_bool_graph(bool2)
3756    return _internal.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.