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

The type of the None singleton.

def node_definition(self, /):

The type of the None singleton.

def input_graphs(self, /):

The type of the None singleton.

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

The type of the None singleton.

def removing(self, /, graph_id):

The type of the None singleton.

def find(self, /, graph_id):

The type of the None singleton.

def generate_ipynb_script(self, /):

The type of the None singleton.

def execute(self, /, context):

The type of the None singleton.

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

The type of the None singleton.

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

The type of the None singleton.

def all_nodes(self, /):

The type of the None singleton.

def lookup(self, /, graph_id):

The type of the None singleton.

def serialize(self, /, context):

The type of the None singleton.

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

The type of the None singleton.

def deserialize(context, bytes):

The type of the None singleton.

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

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

def mcp_project(self, /, id_mapper):

The type of the None singleton.

class Type:

The result of executing a graph node.

def type_definition(self, /):

The type of the None singleton.

def type_name(self, /):

The type of the None singleton.

def as_bool(self, /):

The type of the None singleton.

def as_int(self, /):

The type of the None singleton.

def as_float(self, /):

The type of the None singleton.

def as_string(self, /):

The type of the None singleton.

def as_float_list(self, /):

The type of the None singleton.

def as_int_list(self, /):

The type of the None singleton.

def as_composition(self, /):

The type of the None singleton.

def as_sequence(self, /):

The type of the None singleton.

def as_vector2i(self, /):

The type of the None singleton.

def as_vector2f(self, /):

The type of the None singleton.

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

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

def size(self, /):

The type of the None singleton.

def to_image_bytes(self, /, context):

The type of the None singleton.

def int_constant(value) -> Graph:
51def int_constant(value) -> Graph:
52    return int_constant_internal(int(value))
def float_constant(value) -> Graph:
54def float_constant(value) -> Graph:
55    return float_constant_internal(float(value))
def string_constant(value: str) -> Graph:
57def string_constant(value: str) -> Graph:
58    return string_constant_internal(value)
def bool_constant(value: bool) -> Graph:
60def bool_constant(value: bool) -> Graph:
61    return bool_constant_internal(value)
def abs(number) -> Graph:
76def abs(number) -> Graph:
77    """Absolute Value
78
79    Returns the absolute value of a float
80
81    Args:
82        number: Graph of Float
83        
84
85    Returns:
86        Graph: A graph node producing a Float.
87    """
88    number_parsed = parse_float_graph(number)
89    return abs_internal(number_parsed)

Absolute Value

Returns the absolute value of a float

Args: number: Graph of Float

Returns: Graph: A graph node producing a Float.

def and_(bool1, bool2) -> Graph:
 91def and_(bool1, bool2) -> Graph:
 92    """And
 93
 94    Returns true if both inputs are true.
 95
 96    Args:
 97        the first bool: Graph of Bool
 98        The second bool: Graph of Bool
 99        
100
101    Returns:
102        Graph: A graph node producing a Bool.
103    """
104    bool1_parsed = parse_bool_graph(bool1)
105    bool2_parsed = parse_bool_graph(bool2)
106    return and_internal(bool1_parsed, bool2_parsed)

And

Returns true if both inputs are true.

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

Returns: Graph: A graph node producing a Bool.

def bool_add_to_dictionary(dictionary, key, value) -> Graph:
108def bool_add_to_dictionary(dictionary, key, value) -> Graph:
109    """Bool Add To Dictionary
110
111    Adds a Bool to a Dictionary
112
113    Args:
114        dictionary: Graph of Dictionary
115        key: Graph of String
116        value: Graph of Bool
117        
118
119    Returns:
120        Graph: A graph node producing a Dictionary.
121    """
122    dictionary_parsed = parse_graph(dictionary)
123    key_parsed = parse_string_graph(key)
124    value_parsed = parse_bool_graph(value)
125    return bool_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

Bool Add To Dictionary

Adds a Bool to a Dictionary

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

Returns: Graph: A graph node producing a Dictionary.

def bool_if(bool, input_1, input_2) -> Graph:
127def bool_if(bool, input_1, input_2) -> Graph:
128    """Bool If
129
130    If the boolean is true returns input 1, otherwise input 2. Type: Bool
131
132    Args:
133        bool: Graph of Bool
134        input 1: Graph of Bool
135        input 2: Graph of Bool
136        
137
138    Returns:
139        Graph: A graph node producing a Bool.
140    """
141    bool_parsed = parse_bool_graph(bool)
142    input_1_parsed = parse_bool_graph(input_1)
143    input_2_parsed = parse_bool_graph(input_2)
144    return bool_if_internal(bool_parsed, input_1_parsed, input_2_parsed)

Bool If

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

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

Returns: Graph: A graph node producing a Bool.

def bounds2f_from_x_y_width_height(x, y, width, height) -> Graph:
146def bounds2f_from_x_y_width_height(x, y, width, height) -> Graph:
147    """Bounds 2D Float from X, Y, Width & Height
148
149    Creates the bounds of a 2D float region from its X, Y, Width and Height.
150
151    Args:
152        x: Graph of Float
153        y: Graph of Float
154        width: Graph of Float
155        height: Graph of Float
156        
157
158    Returns:
159        Graph: A graph node producing a Bounds2f.
160    """
161    x_parsed = parse_float_graph(x)
162    y_parsed = parse_float_graph(y)
163    width_parsed = parse_float_graph(width)
164    height_parsed = parse_float_graph(height)
165    return bounds2f_from_x_y_width_height_internal(x_parsed, y_parsed, width_parsed, height_parsed)

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

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

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

Returns: Graph: A graph node producing a Bounds2f.

def bounds2i_from_x_y_width_height(x, y, width, height) -> Graph:
167def bounds2i_from_x_y_width_height(x, y, width, height) -> Graph:
168    """Bounds 2D Int from X, Y, Width & Height
169
170    Creates the bounds of a 2D array from its X, Y, Width and Height.
171
172    Args:
173        x: Graph of Int
174        y: Graph of Int
175        width: Graph of Int
176        height: Graph of Int
177        
178
179    Returns:
180        Graph: A graph node producing a Bounds2i.
181    """
182    x_parsed = parse_int_graph(x)
183    y_parsed = parse_int_graph(y)
184    width_parsed = parse_int_graph(width)
185    height_parsed = parse_int_graph(height)
186    return bounds2i_from_x_y_width_height_internal(x_parsed, y_parsed, width_parsed, height_parsed)

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

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

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

Returns: Graph: A graph node producing a Bounds2i.

def brush_solid(color, radius) -> Graph:
188def brush_solid(color, radius) -> Graph:
189    """Brush Solid
190
191    Creates a brush with a color and radius. Will stroke with the solid color.
192
193    Args:
194        color: Graph of RGBAColor
195        radius: Graph of Float
196        
197
198    Returns:
199        Graph: A graph node producing a Brush.
200    """
201    color_parsed = parse_graph(color)
202    radius_parsed = parse_float_graph(radius)
203    return brush_solid_internal(color_parsed, radius_parsed)

Brush Solid

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

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

Returns: Graph: A graph node producing a Brush.

def byte_list_from_u_r_l(url) -> Graph:
205def byte_list_from_u_r_l(url) -> Graph:
206    """Byte List from URL
207
208    Given a URL. Performs a GET request and downloads the result as bytes.
209
210    Args:
211        url: Graph of String
212        
213
214    Returns:
215        Graph: A graph node producing a ByteList.
216    """
217    url_parsed = parse_string_graph(url)
218    return byte_list_from_u_r_l_internal(url_parsed)

Byte List from URL

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

Args: url: Graph of String

Returns: Graph: A graph node producing a ByteList.

def color_profile_b_t709() -> Graph:
220def color_profile_b_t709() -> Graph:
221    """Color Profile BT.709
222
223    Creates a BT.709 Color Profile
224
225    Returns:
226        Graph: A graph node producing a ColorProfile.
227    """
228    return color_profile_b_t709_internal()

Color Profile BT.709

Creates a BT.709 Color Profile

Returns: Graph: A graph node producing a ColorProfile.

def color_profile_ok_lab_a() -> Graph:
230def color_profile_ok_lab_a() -> Graph:
231    """Color Profile OkLabA
232
233    Creates an OkLabA color profile. OkLab with also an alpha component.
234
235    Returns:
236        Graph: A graph node producing a ColorProfile.
237    """
238    return color_profile_ok_lab_a_internal()

Color Profile OkLabA

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

Returns: Graph: A graph node producing a ColorProfile.

def color_profile_p3() -> Graph:
240def color_profile_p3() -> Graph:
241    """Color Profile P3
242
243    Creates a P3 Color Profile
244
245    Returns:
246        Graph: A graph node producing a ColorProfile.
247    """
248    return color_profile_p3_internal()

Color Profile P3

Creates a P3 Color Profile

Returns: Graph: A graph node producing a ColorProfile.

def color_profile_p_n_g_s_r_g_b() -> Graph:
250def color_profile_p_n_g_s_r_g_b() -> Graph:
251    """Color Profile PNG sRGB
252
253    Creates a color profile that is the same one as PNG sRGB.
254
255    Returns:
256        Graph: A graph node producing a ColorProfile.
257    """
258    return color_profile_p_n_g_s_r_g_b_internal()

Color Profile PNG sRGB

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

Returns: Graph: A graph node producing a ColorProfile.

def color_profile_s_r_g_b() -> Graph:
260def color_profile_s_r_g_b() -> Graph:
261    """Color Profile sRGB
262
263    Creates an sRGB Color Profile
264
265    Returns:
266        Graph: A graph node producing a ColorProfile.
267    """
268    return color_profile_s_r_g_b_internal()

Color Profile sRGB

Creates an sRGB Color Profile

Returns: Graph: A graph node producing a ColorProfile.

def composition_absolute_value(image) -> Graph:
270def composition_absolute_value(image) -> Graph:
271    """Composition Absolute Value
272
273    Takes the absolute value of all the pixels in the image.
274
275    Args:
276        image: Graph of Composition
277        
278
279    Returns:
280        Graph: A graph node producing a Composition.
281    """
282    image_parsed = parse_graph(image)
283    return composition_absolute_value_internal(image_parsed)

Composition Absolute Value

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

Args: image: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_bilinear_interpolation(composition, size) -> Graph:
285def composition_bilinear_interpolation(composition, size) -> Graph:
286    """Composition Scale Bilinear Interpolation
287
288    Uses the bilinear interpolation algorithm to scale an image recipe
289
290    Args:
291        composition: Graph of Composition
292        size: Graph of Vector2i
293        
294
295    Returns:
296        Graph: A graph node producing a Composition.
297    """
298    composition_parsed = parse_graph(composition)
299    size_parsed = parse_graph(size)
300    return composition_bilinear_interpolation_internal(composition_parsed, size_parsed)

Composition Scale Bilinear Interpolation

Uses the bilinear interpolation algorithm to scale an image recipe

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

Returns: Graph: A graph node producing a Composition.

def composition_blend_add(foreground, background, foreground_transform) -> Graph:
302def composition_blend_add(foreground, background, foreground_transform) -> Graph:
303    """Composition Blend Add
304
305    Adds the foreground and background images together using additive blending.
306
307    Args:
308        foreground: Graph of Composition
309        background: Graph of Composition
310        foreground transform: Graph of Transform2
311        
312
313    Returns:
314        Graph: A graph node producing a Composition.
315    """
316    foreground_parsed = parse_graph(foreground)
317    background_parsed = parse_graph(background)
318    foreground_transform_parsed = parse_graph(foreground_transform)
319    return composition_blend_add_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Add

Adds the foreground and background images together using additive blending.

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

Returns: Graph: A graph node producing a Composition.

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

Composition Blend Alpha

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

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

Returns: Graph: A graph node producing a Composition.

def composition_blend_max(foreground, background, foreground_transform) -> Graph:
340def composition_blend_max(foreground, background, foreground_transform) -> Graph:
341    """Composition Blend Max
342
343    Blends the foreground and background images using maximum value blending.
344
345    Args:
346        foreground: Graph of Composition
347        background: Graph of Composition
348        foreground transform: Graph of Transform2
349        
350
351    Returns:
352        Graph: A graph node producing a Composition.
353    """
354    foreground_parsed = parse_graph(foreground)
355    background_parsed = parse_graph(background)
356    foreground_transform_parsed = parse_graph(foreground_transform)
357    return composition_blend_max_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Max

Blends the foreground and background images using maximum value blending.

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

Returns: Graph: A graph node producing a Composition.

def composition_blend_min(foreground, background, foreground_transform) -> Graph:
359def composition_blend_min(foreground, background, foreground_transform) -> Graph:
360    """Composition Blend Min
361
362    Blends the foreground and background images using minimum blending, taking the minimum value for each pixel.
363
364    Args:
365        foreground: Graph of Composition
366        background: Graph of Composition
367        foreground transform: Graph of Transform2
368        
369
370    Returns:
371        Graph: A graph node producing a Composition.
372    """
373    foreground_parsed = parse_graph(foreground)
374    background_parsed = parse_graph(background)
375    foreground_transform_parsed = parse_graph(foreground_transform)
376    return composition_blend_min_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Min

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

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

Returns: Graph: A graph node producing a Composition.

def composition_blend_multiply(foreground, background, foreground_transform) -> Graph:
378def composition_blend_multiply(foreground, background, foreground_transform) -> Graph:
379    """Composition Blend Multiply
380
381    Multiplies the foreground and background images together using multiply blending.
382
383    Args:
384        foreground: Graph of Composition
385        background: Graph of Composition
386        foreground transform: Graph of Transform2
387        
388
389    Returns:
390        Graph: A graph node producing a Composition.
391    """
392    foreground_parsed = parse_graph(foreground)
393    background_parsed = parse_graph(background)
394    foreground_transform_parsed = parse_graph(foreground_transform)
395    return composition_blend_multiply_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Multiply

Multiplies the foreground and background images together using multiply blending.

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

Returns: Graph: A graph node producing a Composition.

def composition_blend_stencil(foreground, background, foreground_transform) -> Graph:
397def composition_blend_stencil(foreground, background, foreground_transform) -> Graph:
398    """Composition Blend Stencil
399
400    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.
401
402    Args:
403        foreground: Graph of Composition
404        background: Graph of Composition
405        foreground transform: Graph of Transform2
406        
407
408    Returns:
409        Graph: A graph node producing a Composition.
410    """
411    foreground_parsed = parse_graph(foreground)
412    background_parsed = parse_graph(background)
413    foreground_transform_parsed = parse_graph(foreground_transform)
414    return composition_blend_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 foreground transform: Graph of Transform2

Returns: Graph: A graph node producing a Composition.

def composition_blend_subtract(foreground, background, foreground_transform) -> Graph:
416def composition_blend_subtract(foreground, background, foreground_transform) -> Graph:
417    """Composition Blend Subtract
418
419    Subtracts the foreground image from the background image using subtractive blending.
420
421    Args:
422        foreground: Graph of Composition
423        background: Graph of Composition
424        foreground transform: Graph of Transform2
425        
426
427    Returns:
428        Graph: A graph node producing a Composition.
429    """
430    foreground_parsed = parse_graph(foreground)
431    background_parsed = parse_graph(background)
432    foreground_transform_parsed = parse_graph(foreground_transform)
433    return composition_blend_subtract_internal(foreground_parsed, background_parsed, foreground_transform_parsed)

Composition Blend Subtract

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

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

Returns: Graph: A graph node producing a Composition.

def composition_blend_with_factor(foreground, background, factor) -> Graph:
435def composition_blend_with_factor(foreground, background, factor) -> Graph:
436    """Composition Blend with Factor
437
438    Blends the foreground and background compositions together using a factor. Internally, this modifies the alpha of the foreground by multiplying by the factor on the alpha component and then performing an alpha blend.
439
440    Args:
441        foreground: Graph of Composition
442        background: Graph of Composition
443        factor: Graph of Composition
444        
445
446    Returns:
447        Graph: A graph node producing a Composition.
448    """
449    foreground_parsed = parse_graph(foreground)
450    background_parsed = parse_graph(background)
451    factor_parsed = parse_graph(factor)
452    return composition_blend_with_factor_internal(foreground_parsed, background_parsed, factor_parsed)

Composition Blend with Factor

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

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

Returns: Graph: A graph node producing a Composition.

def composition_box_blur(composition, dimension) -> Graph:
454def composition_box_blur(composition, dimension) -> Graph:
455    """Composition Box Blur
456
457    Applies a box blur to an image. Dimension is the size. 1 corresponding to 3x3, 2 5x5 and so on.
458
459    Args:
460        composition: Graph of Composition
461        dimension: Graph of Int
462        
463
464    Returns:
465        Graph: A graph node producing a Composition.
466    """
467    composition_parsed = parse_graph(composition)
468    dimension_parsed = parse_int_graph(dimension)
469    return composition_box_blur_internal(composition_parsed, dimension_parsed)

Composition Box Blur

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

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

Returns: Graph: A graph node producing a Composition.

def composition_brightness_adjust(composition, scale) -> Graph:
471def composition_brightness_adjust(composition, scale) -> Graph:
472    """Composition Brightness Adjust
473
474    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.
475
476    Args:
477        composition: Graph of Composition
478        scale: Graph of Float
479        
480
481    Returns:
482        Graph: A graph node producing a Composition.
483    """
484    composition_parsed = parse_graph(composition)
485    scale_parsed = parse_float_graph(scale)
486    return composition_brightness_adjust_internal(composition_parsed, scale_parsed)

Composition Brightness Adjust

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

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

Returns: Graph: A graph node producing a Composition.

def composition_chroma_offset(composition, offset) -> Graph:
488def composition_chroma_offset(composition, offset) -> Graph:
489    """Composition Chroma Offset
490
491    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.
492
493    Args:
494        composition: Graph of Composition
495        offset: Graph of Vector2f
496        
497
498    Returns:
499        Graph: A graph node producing a Composition.
500    """
501    composition_parsed = parse_graph(composition)
502    offset_parsed = parse_graph(offset)
503    return composition_chroma_offset_internal(composition_parsed, offset_parsed)

Composition Chroma Offset

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

Args: composition: Graph of Composition offset: Graph of Vector2f

Returns: Graph: A graph node producing a Composition.

def composition_color_convert(composition, color_profile) -> Graph:
505def composition_color_convert(composition, color_profile) -> Graph:
506    """Composition Color Convert
507
508    Converts a Composition from one color space to another.
509
510    Args:
511        composition: Graph of Composition
512        color profile: Graph of ColorProfile
513        
514
515    Returns:
516        Graph: A graph node producing a Composition.
517    """
518    composition_parsed = parse_graph(composition)
519    color_profile_parsed = parse_graph(color_profile)
520    return composition_color_convert_internal(composition_parsed, color_profile_parsed)

Composition Color Convert

Converts a Composition from one color space to another.

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

Returns: Graph: A graph node producing a Composition.

def composition_color_invert(composition) -> Graph:
522def composition_color_invert(composition) -> Graph:
523    """Composition Color Invert
524
525    Applies a color invert operation to a Composition. Taking 1 and subtracting each RGB operation against it.
526
527    Args:
528        composition: Graph of Composition
529        
530
531    Returns:
532        Graph: A graph node producing a Composition.
533    """
534    composition_parsed = parse_graph(composition)
535    return composition_color_invert_internal(composition_parsed)

Composition Color Invert

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

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_color_profile(composition) -> Graph:
537def composition_color_profile(composition) -> Graph:
538    """Composition Color Profile
539
540    Gets the color profile associated with a Composition
541
542    Args:
543        composition: Graph of Composition
544        
545
546    Returns:
547        Graph: A graph node producing a ColorProfile.
548    """
549    composition_parsed = parse_graph(composition)
550    return composition_color_profile_internal(composition_parsed)

Composition Color Profile

Gets the color profile associated with a Composition

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a ColorProfile.

def composition_color_rect(color, color_profile, size) -> Graph:
552def composition_color_rect(color, color_profile, size) -> Graph:
553    """Composition Color Rect
554
555    Given a color and it's color proile. Creates a rectangle Composition of that color.
556
557    Args:
558        color: Graph of RGBAColor
559        color profile: Graph of ColorProfile
560        size: Graph of Vector2i
561        
562
563    Returns:
564        Graph: A graph node producing a Composition.
565    """
566    color_parsed = parse_graph(color)
567    color_profile_parsed = parse_graph(color_profile)
568    size_parsed = parse_graph(size)
569    return composition_color_rect_internal(color_parsed, color_profile_parsed, size_parsed)

Composition Color Rect

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

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

Returns: Graph: A graph node producing a Composition.

def composition_color_threshold(composition, threshold) -> Graph:
571def composition_color_threshold(composition, threshold) -> Graph:
572    """Composition Color Threshold
573
574    Applies a color threshold to a Composition
575
576    Args:
577        composition: Graph of Composition
578        threshold: Graph of Float
579        
580
581    Returns:
582        Graph: A graph node producing a Composition.
583    """
584    composition_parsed = parse_graph(composition)
585    threshold_parsed = parse_float_graph(threshold)
586    return composition_color_threshold_internal(composition_parsed, threshold_parsed)

Composition Color Threshold

Applies a color threshold to a Composition

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

Returns: Graph: A graph node producing a Composition.

def composition_contrast_adjustment(composition, contrast) -> Graph:
588def composition_contrast_adjustment(composition, contrast) -> Graph:
589    """Composition Contrast Adjustment
590
591    Adjusts the contrast of a Composition
592
593    Args:
594        composition: Graph of Composition
595        contrast: Graph of Float
596        
597
598    Returns:
599        Graph: A graph node producing a Composition.
600    """
601    composition_parsed = parse_graph(composition)
602    contrast_parsed = parse_float_graph(contrast)
603    return composition_contrast_adjustment_internal(composition_parsed, contrast_parsed)

Composition Contrast Adjustment

Adjusts the contrast of a Composition

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

Returns: Graph: A graph node producing a Composition.

def composition_convolution(composition, kernel, kernel_width, kernel_height) -> Graph:
605def composition_convolution(composition, kernel, kernel_width, kernel_height) -> Graph:
606    """Composition Convolution
607
608    Performs a convolution on an composition
609
610    Args:
611        The image to perform the convolution on: Graph of Composition
612        kernel: Graph of FloatList
613        kernel width: Graph of Int
614        kernel height: Graph of Int
615        
616
617    Returns:
618        Graph: A graph node producing a Composition.
619    """
620    composition_parsed = parse_graph(composition)
621    kernel_parsed = parse_graph(kernel)
622    kernel_width_parsed = parse_int_graph(kernel_width)
623    kernel_height_parsed = parse_int_graph(kernel_height)
624    return composition_convolution_internal(composition_parsed, kernel_parsed, kernel_width_parsed, kernel_height_parsed)

Composition Convolution

Performs a convolution on an composition

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

Returns: Graph: A graph node producing a Composition.

def composition_crop(composition, rect) -> Graph:
626def composition_crop(composition, rect) -> Graph:
627    """Composition Crop
628
629    Applies a crop to a Composition
630
631    Args:
632        composition: Graph of Composition
633        rect: Graph of Bounds2i
634        
635
636    Returns:
637        Graph: A graph node producing a Composition.
638    """
639    composition_parsed = parse_graph(composition)
640    rect_parsed = parse_graph(rect)
641    return composition_crop_internal(composition_parsed, rect_parsed)

Composition Crop

Applies a crop to a Composition

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

Returns: Graph: A graph node producing a Composition.

def composition_custom_transformer_shader( composition, function_body, helpers, input_color_profile, output_color_profile, inputs, needs_sample_capability) -> Graph:
643def composition_custom_transformer_shader(composition, function_body, helpers, input_color_profile, output_color_profile, inputs, needs_sample_capability) -> Graph:
644    """Composition Custom Transformer Shader
645
646    Given an input, runs a custom defined shader over that input.
647
648    Args:
649        composition: Graph of Composition
650        function body: Graph of String
651        helpers: Graph of String
652        input color profile: Graph of ColorProfile
653        output color profile: Graph of ColorProfile
654        inputs: Graph of Dictionary
655        needs sample capability: Graph of Bool
656        
657
658    Returns:
659        Graph: A graph node producing a Composition.
660    """
661    composition_parsed = parse_graph(composition)
662    function_body_parsed = parse_string_graph(function_body)
663    helpers_parsed = parse_string_graph(helpers)
664    input_color_profile_parsed = parse_graph(input_color_profile)
665    output_color_profile_parsed = parse_graph(output_color_profile)
666    inputs_parsed = parse_graph(inputs)
667    needs_sample_capability_parsed = parse_bool_graph(needs_sample_capability)
668    return composition_custom_transformer_shader_internal(composition_parsed, function_body_parsed, helpers_parsed, input_color_profile_parsed, output_color_profile_parsed, inputs_parsed, needs_sample_capability_parsed)

Composition Custom Transformer Shader

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

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

Returns: Graph: A graph node producing a Composition.

def composition_flip_horizontal(composition) -> Graph:
670def composition_flip_horizontal(composition) -> Graph:
671    """Composition Flip Horizontal
672
673    Flips the image along the horizontal axis
674
675    Args:
676        composition: Graph of Composition
677        
678
679    Returns:
680        Graph: A graph node producing a Composition.
681    """
682    composition_parsed = parse_graph(composition)
683    return composition_flip_horizontal_internal(composition_parsed)

Composition Flip Horizontal

Flips the image along the horizontal axis

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_flip_vertical(composition) -> Graph:
685def composition_flip_vertical(composition) -> Graph:
686    """Composition Flip Vertical
687
688    Flips the image vertically
689
690    Args:
691        composition: Graph of Composition
692        
693
694    Returns:
695        Graph: A graph node producing a Composition.
696    """
697    composition_parsed = parse_graph(composition)
698    return composition_flip_vertical_internal(composition_parsed)

Composition Flip Vertical

Flips the image vertically

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_from_asset(asset_id) -> Graph:
700def composition_from_asset(asset_id) -> Graph:
701    """Composition from Asset
702
703    Creates a composition from an asset in your catalog.
704
705    Args:
706        asset id: Graph of Int
707        
708
709    Returns:
710        Graph: A graph node producing a Composition.
711    """
712    asset_id_parsed = parse_int_graph(asset_id)
713    return composition_from_asset_internal(asset_id_parsed)

Composition from Asset

Creates a composition from an asset in your catalog.

Args: asset id: Graph of Int

Returns: Graph: A graph node producing a Composition.

def composition_from_image(image) -> Graph:
715def composition_from_image(image) -> Graph:
716    """Composition from Image
717
718    Creates an composition out of an image
719
720    Args:
721        image: Graph of Image
722        
723
724    Returns:
725        Graph: A graph node producing a Composition.
726    """
727    image_parsed = parse_graph(image)
728    return composition_from_image_internal(image_parsed)

Composition from Image

Creates an composition out of an image

Args: image: Graph of Image

Returns: Graph: A graph node producing a Composition.

def composition_gaussian_blur(composition, sigma) -> Graph:
730def composition_gaussian_blur(composition, sigma) -> Graph:
731    """Composition Gaussian Blur
732
733    Applies a gaussian blur to an image. Sigma controls the blur intensity.
734
735    Args:
736        composition: Graph of Composition
737        sigma: Graph of Float
738        
739
740    Returns:
741        Graph: A graph node producing a Composition.
742    """
743    composition_parsed = parse_graph(composition)
744    sigma_parsed = parse_float_graph(sigma)
745    return composition_gaussian_blur_internal(composition_parsed, sigma_parsed)

Composition Gaussian Blur

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

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

Returns: Graph: A graph node producing a Composition.

def composition_grayscale(composition) -> Graph:
747def composition_grayscale(composition) -> Graph:
748    """Composition Grayscale
749
750    Applies grayscale to a Composition
751
752    Args:
753        composition: Graph of Composition
754        
755
756    Returns:
757        Graph: A graph node producing a Composition.
758    """
759    composition_parsed = parse_graph(composition)
760    return composition_grayscale_internal(composition_parsed)

Composition Grayscale

Applies grayscale to a Composition

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_if(bool, input_1, input_2) -> Graph:
762def composition_if(bool, input_1, input_2) -> Graph:
763    """Composition If
764
765    If the boolean is true returns input 1, otherwise input 2. Type: Composition
766
767    Args:
768        bool: Graph of Bool
769        input 1: Graph of Composition
770        input 2: Graph of Composition
771        
772
773    Returns:
774        Graph: A graph node producing a Composition.
775    """
776    bool_parsed = parse_bool_graph(bool)
777    input_1_parsed = parse_graph(input_1)
778    input_2_parsed = parse_graph(input_2)
779    return composition_if_internal(bool_parsed, input_1_parsed, input_2_parsed)

Composition If

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

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

Returns: Graph: A graph node producing a Composition.

def composition_l_curve(composition, l_curve) -> Graph:
781def composition_l_curve(composition, l_curve) -> Graph:
782    """Composition Lightness Curve
783
784    Applies a curve to the L component in an OkLab color. Adjusting the lightness of the image.
785
786    Args:
787        composition: Graph of Composition
788        l curve: Graph of Curve
789        
790
791    Returns:
792        Graph: A graph node producing a Composition.
793    """
794    composition_parsed = parse_graph(composition)
795    l_curve_parsed = parse_graph(l_curve)
796    return composition_l_curve_internal(composition_parsed, l_curve_parsed)

Composition Lightness Curve

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

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

Returns: Graph: A graph node producing a Composition.

def composition_linear_transform( composition, entry_0_0, entry_0_1, entry_0_2, entry_0_3, entry_1_0, entry_1_1, entry_1_2, entry_1_3, entry_2_0, entry_2_1, entry_2_2, entry_2_3, entry_3_0, entry_3_1, entry_3_2, entry_3_3) -> Graph:
798def 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:
799    """Composition RGBA Linear Transform
800
801    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.
802
803    Args:
804        composition: Graph of Composition
805        entry 0,0: Graph of Float
806        entry 0,1: Graph of Float
807        entry 0,2: Graph of Float
808        entry 0,3: Graph of Float
809        entry 1,0: Graph of Float
810        entry 1,1: Graph of Float
811        entry 1,2: Graph of Float
812        entry 1,3: Graph of Float
813        entry 2,0: Graph of Float
814        entry 2,1: Graph of Float
815        entry 2,2: Graph of Float
816        entry 2,3: Graph of Float
817        entry 3,0: Graph of Float
818        entry 3,1: Graph of Float
819        entry 3,2: Graph of Float
820        entry 3,3: Graph of Float
821        
822
823    Returns:
824        Graph: A graph node producing a Composition.
825    """
826    composition_parsed = parse_graph(composition)
827    entry_0_0_parsed = parse_float_graph(entry_0_0)
828    entry_0_1_parsed = parse_float_graph(entry_0_1)
829    entry_0_2_parsed = parse_float_graph(entry_0_2)
830    entry_0_3_parsed = parse_float_graph(entry_0_3)
831    entry_1_0_parsed = parse_float_graph(entry_1_0)
832    entry_1_1_parsed = parse_float_graph(entry_1_1)
833    entry_1_2_parsed = parse_float_graph(entry_1_2)
834    entry_1_3_parsed = parse_float_graph(entry_1_3)
835    entry_2_0_parsed = parse_float_graph(entry_2_0)
836    entry_2_1_parsed = parse_float_graph(entry_2_1)
837    entry_2_2_parsed = parse_float_graph(entry_2_2)
838    entry_2_3_parsed = parse_float_graph(entry_2_3)
839    entry_3_0_parsed = parse_float_graph(entry_3_0)
840    entry_3_1_parsed = parse_float_graph(entry_3_1)
841    entry_3_2_parsed = parse_float_graph(entry_3_2)
842    entry_3_3_parsed = parse_float_graph(entry_3_3)
843    return composition_linear_transform_internal(composition_parsed, entry_0_0_parsed, entry_0_1_parsed, entry_0_2_parsed, entry_0_3_parsed, entry_1_0_parsed, entry_1_1_parsed, entry_1_2_parsed, entry_1_3_parsed, entry_2_0_parsed, entry_2_1_parsed, entry_2_2_parsed, entry_2_3_parsed, entry_3_0_parsed, entry_3_1_parsed, entry_3_2_parsed, entry_3_3_parsed)

Composition RGBA Linear Transform

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

Args: composition: Graph of Composition entry 0,0: Graph of Float entry 0,1: Graph of Float entry 0,2: Graph of Float entry 0,3: Graph of Float entry 1,0: Graph of Float entry 1,1: Graph of Float entry 1,2: Graph of Float entry 1,3: Graph of Float entry 2,0: Graph of Float entry 2,1: Graph of Float entry 2,2: Graph of Float entry 2,3: Graph of Float entry 3,0: Graph of Float entry 3,1: Graph of Float entry 3,2: Graph of Float entry 3,3: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_monet_women_with_parasol() -> Graph:
845def composition_monet_women_with_parasol() -> Graph:
846    """Monet's Women with a Parasol
847
848    Creates a composition from Monet's "Women with a Parasol" painting. Used frequently as a test asset.
849
850    Returns:
851        Graph: A graph node producing a Composition.
852    """
853    return composition_monet_women_with_parasol_internal()

Monet's Women with a Parasol

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

Returns: Graph: A graph node producing a Composition.

def composition_morphological_max(composition, dimension) -> Graph:
855def composition_morphological_max(composition, dimension) -> Graph:
856    """Composition Morphological Max
857
858    Apples a morphological max operation.
859
860    Args:
861        composition: Graph of Composition
862        dimension: Graph of Int
863        
864
865    Returns:
866        Graph: A graph node producing a Composition.
867    """
868    composition_parsed = parse_graph(composition)
869    dimension_parsed = parse_int_graph(dimension)
870    return composition_morphological_max_internal(composition_parsed, dimension_parsed)

Composition Morphological Max

Apples a morphological max operation.

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

Returns: Graph: A graph node producing a Composition.

def composition_morphological_min(composition, dimension) -> Graph:
872def composition_morphological_min(composition, dimension) -> Graph:
873    """Composition Morphological Min
874
875    Apples a morphological min operation.
876
877    Args:
878        composition: Graph of Composition
879        dimension: Graph of Int
880        
881
882    Returns:
883        Graph: A graph node producing a Composition.
884    """
885    composition_parsed = parse_graph(composition)
886    dimension_parsed = parse_int_graph(dimension)
887    return composition_morphological_min_internal(composition_parsed, dimension_parsed)

Composition Morphological Min

Apples a morphological min operation.

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

Returns: Graph: A graph node producing a Composition.

def composition_painter(painter) -> Graph:
889def composition_painter(painter) -> Graph:
890    """Composition Painter
891
892    Creates a composition from a painter.
893
894    Args:
895        painter: Graph of Painter
896        
897
898    Returns:
899        Graph: A graph node producing a Composition.
900    """
901    painter_parsed = parse_graph(painter)
902    return composition_painter_internal(painter_parsed)

Composition Painter

Creates a composition from a painter.

Args: painter: Graph of Painter

Returns: Graph: A graph node producing a Composition.

def composition_passthrough(value) -> Graph:
904def composition_passthrough(value) -> Graph:
905    """Composition Passthrough
906
907    Responds with the value provided. Doing nothing to it.
908
909    Args:
910        value: Graph of Composition
911        
912
913    Returns:
914        Graph: A graph node producing a Composition.
915    """
916    value_parsed = parse_graph(value)
917    return composition_passthrough_internal(value_parsed)

Composition Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_pixelate(composition, pixel_size) -> Graph:
919def composition_pixelate(composition, pixel_size) -> Graph:
920    """Composition Pixelate
921
922    Applies a pixelation effect to a composition.
923
924    Args:
925        composition: Graph of Composition
926        pixel size: Graph of Int
927        
928
929    Returns:
930        Graph: A graph node producing a Composition.
931    """
932    composition_parsed = parse_graph(composition)
933    pixel_size_parsed = parse_int_graph(pixel_size)
934    return composition_pixelate_internal(composition_parsed, pixel_size_parsed)

Composition Pixelate

Applies a pixelation effect to a composition.

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

Returns: Graph: A graph node producing a Composition.

def composition_r_g_b_curve(composition, r_curve, g_curve, b_curve) -> Graph:
936def composition_r_g_b_curve(composition, r_curve, g_curve, b_curve) -> Graph:
937    """Composition RGB Curve
938
939    Applies a curve to the R, G, and B components
940
941    Args:
942        composition: Graph of Composition
943        r curve: Graph of Curve
944        g curve: Graph of Curve
945        b curve: Graph of Curve
946        
947
948    Returns:
949        Graph: A graph node producing a Composition.
950    """
951    composition_parsed = parse_graph(composition)
952    r_curve_parsed = parse_graph(r_curve)
953    g_curve_parsed = parse_graph(g_curve)
954    b_curve_parsed = parse_graph(b_curve)
955    return composition_r_g_b_curve_internal(composition_parsed, r_curve_parsed, g_curve_parsed, b_curve_parsed)

Composition RGB Curve

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

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

Returns: Graph: A graph node producing a Composition.

def composition_render_to_image(composition) -> Graph:
957def composition_render_to_image(composition) -> Graph:
958    """Composition Render to Image
959
960    Renders a Composition to an Image
961
962    Args:
963        composition: Graph of Composition
964        
965
966    Returns:
967        Graph: A graph node producing a Image.
968    """
969    composition_parsed = parse_graph(composition)
970    return composition_render_to_image_internal(composition_parsed)

Composition Render to Image

Renders a Composition to an Image

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Image.

def composition_rotate180(composition) -> Graph:
972def composition_rotate180(composition) -> Graph:
973    """Composition Rotate 180
974
975    Rotates the image 180 degrees
976
977    Args:
978        composition: Graph of Composition
979        
980
981    Returns:
982        Graph: A graph node producing a Composition.
983    """
984    composition_parsed = parse_graph(composition)
985    return composition_rotate180_internal(composition_parsed)

Composition Rotate 180

Rotates the image 180 degrees

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_rotate90_clockwise(composition) -> Graph:
 987def composition_rotate90_clockwise(composition) -> Graph:
 988    """Composition Rotate 90 Clockwise
 989
 990    Rotates the image 90 degrees clockwise
 991
 992    Args:
 993        composition: Graph of Composition
 994        
 995
 996    Returns:
 997        Graph: A graph node producing a Composition.
 998    """
 999    composition_parsed = parse_graph(composition)
1000    return composition_rotate90_clockwise_internal(composition_parsed)

Composition Rotate 90 Clockwise

Rotates the image 90 degrees clockwise

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_rotate90_counter_clockwise(composition) -> Graph:
1002def composition_rotate90_counter_clockwise(composition) -> Graph:
1003    """Composition Rotate 90 Counter Clockwise
1004
1005    Rotates the image 90 degrees counter-clockwise
1006
1007    Args:
1008        composition: Graph of Composition
1009        
1010
1011    Returns:
1012        Graph: A graph node producing a Composition.
1013    """
1014    composition_parsed = parse_graph(composition)
1015    return composition_rotate90_counter_clockwise_internal(composition_parsed)

Composition Rotate 90 Counter Clockwise

Rotates the image 90 degrees counter-clockwise

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_s_a_m3_image(composition, prompt, positive_points, negative_points) -> Graph:
1017def composition_s_a_m3_image(composition, prompt, positive_points, negative_points) -> Graph:
1018    """Composition SAM3 Image
1019
1020    Runs the SAM3 model on an image
1021
1022    Args:
1023        composition: Graph of Composition
1024        prompt: Graph of String
1025        positive points: Graph of Point2iList
1026        negative points: Graph of Point2iList
1027        
1028
1029    Returns:
1030        Graph: A graph node producing a ByteList.
1031    """
1032    composition_parsed = parse_graph(composition)
1033    prompt_parsed = parse_string_graph(prompt)
1034    positive_points_parsed = parse_graph(positive_points)
1035    negative_points_parsed = parse_graph(negative_points)
1036    return composition_s_a_m3_image_internal(composition_parsed, prompt_parsed, positive_points_parsed, negative_points_parsed)

Composition SAM3 Image

Runs the SAM3 model on an image

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

Returns: Graph: A graph node producing a ByteList.

def composition_saturation_adjust(composition, scale) -> Graph:
1038def composition_saturation_adjust(composition, scale) -> Graph:
1039    """Composition Saturation Adjust
1040
1041    Adjusts the saturation of an image by a given factor. Internally, scales the chroma components in OkLab color space.
1042
1043    Args:
1044        composition: Graph of Composition
1045        scale: Graph of Float
1046        
1047
1048    Returns:
1049        Graph: A graph node producing a Composition.
1050    """
1051    composition_parsed = parse_graph(composition)
1052    scale_parsed = parse_float_graph(scale)
1053    return composition_saturation_adjust_internal(composition_parsed, scale_parsed)

Composition Saturation Adjust

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

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

Returns: Graph: A graph node producing a Composition.

def composition_scale_nearest_neighbor(composition, size) -> Graph:
1055def composition_scale_nearest_neighbor(composition, size) -> Graph:
1056    """Composition Scale Nearest Neighbor
1057
1058    Uses the nearest neighbor algorithm to scale an image recipe
1059
1060    Args:
1061        composition: Graph of Composition
1062        size: Graph of Vector2i
1063        
1064
1065    Returns:
1066        Graph: A graph node producing a Composition.
1067    """
1068    composition_parsed = parse_graph(composition)
1069    size_parsed = parse_graph(size)
1070    return composition_scale_nearest_neighbor_internal(composition_parsed, size_parsed)

Composition Scale Nearest Neighbor

Uses the nearest neighbor algorithm to scale an image recipe

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

Returns: Graph: A graph node producing a Composition.

def composition_segment(composition, prompt, positive_points, negative_points) -> Graph:
1072def composition_segment(composition, prompt, positive_points, negative_points) -> Graph:
1073    """Composition Segment
1074
1075    Segments objects in a composition using SAM3. Accepts a text prompt and lists of positive/negative click points.
1076
1077    Args:
1078        composition: Graph of Composition
1079        prompt: Graph of String
1080        positive points: Graph of Point2iList
1081        negative points: Graph of Point2iList
1082        
1083
1084    Returns:
1085        Graph: A graph node producing a Composition.
1086    """
1087    composition_parsed = parse_graph(composition)
1088    prompt_parsed = parse_string_graph(prompt)
1089    positive_points_parsed = parse_graph(positive_points)
1090    negative_points_parsed = parse_graph(negative_points)
1091    return composition_segment_internal(composition_parsed, prompt_parsed, positive_points_parsed, negative_points_parsed)

Composition Segment

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

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

Returns: Graph: A graph node producing a Composition.

def composition_sharpen(composition, radius, strength) -> Graph:
1093def composition_sharpen(composition, radius, strength) -> Graph:
1094    """Composition Sharpen
1095
1096    Applies a sharpen filter to the composition.
1097
1098    Args:
1099        composition: Graph of Composition
1100        radius: Graph of Float
1101        strength: Graph of Float
1102        
1103
1104    Returns:
1105        Graph: A graph node producing a Composition.
1106    """
1107    composition_parsed = parse_graph(composition)
1108    radius_parsed = parse_float_graph(radius)
1109    strength_parsed = parse_float_graph(strength)
1110    return composition_sharpen_internal(composition_parsed, radius_parsed, strength_parsed)

Composition Sharpen

Applies a sharpen filter to the composition.

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

Returns: Graph: A graph node producing a Composition.

def composition_size(composition) -> Graph:
1112def composition_size(composition) -> Graph:
1113    """Composition Size
1114
1115    Gets the resulting size of a Composition
1116
1117    Args:
1118        composition: Graph of Composition
1119        
1120
1121    Returns:
1122        Graph: A graph node producing a Vector2i.
1123    """
1124    composition_parsed = parse_graph(composition)
1125    return composition_size_internal(composition_parsed)

Composition Size

Gets the resulting size of a Composition

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Vector2i.

def composition_sobel_edge_detection(composition) -> Graph:
1127def composition_sobel_edge_detection(composition) -> Graph:
1128    """Composition Sobel Edge Detection
1129
1130    Applies Sobel edge detection to an image.
1131
1132    Args:
1133        composition: Graph of Composition
1134        
1135
1136    Returns:
1137        Graph: A graph node producing a Composition.
1138    """
1139    composition_parsed = parse_graph(composition)
1140    return composition_sobel_edge_detection_internal(composition_parsed)

Composition Sobel Edge Detection

Applies Sobel edge detection to an image.

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a Composition.

def composition_swirl(composition, center, radius, amount) -> Graph:
1142def composition_swirl(composition, center, radius, amount) -> Graph:
1143    """Composition Swirl
1144
1145    Applies a swirl distortion to this composition
1146
1147    Args:
1148        composition: Graph of Composition
1149        center: Graph of Vector2f
1150        radius: Graph of Float
1151        amount: Graph of Float
1152        
1153
1154    Returns:
1155        Graph: A graph node producing a Composition.
1156    """
1157    composition_parsed = parse_graph(composition)
1158    center_parsed = parse_graph(center)
1159    radius_parsed = parse_float_graph(radius)
1160    amount_parsed = parse_float_graph(amount)
1161    return composition_swirl_internal(composition_parsed, center_parsed, radius_parsed, amount_parsed)

Composition Swirl

Applies a swirl distortion to this composition

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

Returns: Graph: A graph node producing a Composition.

def composition_target_white_kelvin(composition, kelvin) -> Graph:
1163def composition_target_white_kelvin(composition, kelvin) -> Graph:
1164    """Composition Target White Kelvin
1165
1166    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.
1167
1168    Args:
1169        composition: Graph of Composition
1170        kelvin: Graph of Float
1171        
1172
1173    Returns:
1174        Graph: A graph node producing a Composition.
1175    """
1176    composition_parsed = parse_graph(composition)
1177    kelvin_parsed = parse_float_graph(kelvin)
1178    return composition_target_white_kelvin_internal(composition_parsed, kelvin_parsed)

Composition Target White Kelvin

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

Args: composition: Graph of Composition kelvin: Graph of Float

Returns: Graph: A graph node producing a Composition.

def composition_to_ok_lab_hist(composition) -> Graph:
1180def composition_to_ok_lab_hist(composition) -> Graph:
1181    """Composition to OkLab Histogram
1182
1183    Creates an OkLab Histogram from the colors in a Composition.
1184
1185    Args:
1186        composition: Graph of Composition
1187        
1188
1189    Returns:
1190        Graph: A graph node producing a OkLabHist.
1191    """
1192    composition_parsed = parse_graph(composition)
1193    return composition_to_ok_lab_hist_internal(composition_parsed)

Composition to OkLab Histogram

Creates an OkLab Histogram from the colors in a Composition.

Args: composition: Graph of Composition

Returns: Graph: A graph node producing a OkLabHist.

def composition_vignette(composition, radius, softness, strength) -> Graph:
1195def composition_vignette(composition, radius, softness, strength) -> Graph:
1196    """Composition Vignette
1197
1198    darkens the outer edges - radius (0-1, measured relative to the image's smaller dimension) sets how far the bright center extends, Softness (typically 0.05-0.5) controls the width of the fade-out band, and Strength (0–1) defines how dark the edges become at maximum.
1199
1200    Args:
1201        composition: Graph of Composition
1202        radius: Graph of Float
1203        softness: Graph of Float
1204        strength: Graph of Float
1205        
1206
1207    Returns:
1208        Graph: A graph node producing a Composition.
1209    """
1210    composition_parsed = parse_graph(composition)
1211    radius_parsed = parse_float_graph(radius)
1212    softness_parsed = parse_float_graph(softness)
1213    strength_parsed = parse_float_graph(strength)
1214    return composition_vignette_internal(composition_parsed, radius_parsed, softness_parsed, strength_parsed)

Composition Vignette

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

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

Returns: Graph: A graph node producing a Composition.

def composition_zoom_blur(composition, center, strength) -> Graph:
1216def composition_zoom_blur(composition, center, strength) -> Graph:
1217    """Composition Zoom Blur
1218
1219    Performs a zoom blur on this composition
1220
1221    Args:
1222        composition: Graph of Composition
1223        center: Graph of Vector2f
1224        strength: Graph of Float
1225        
1226
1227    Returns:
1228        Graph: A graph node producing a Composition.
1229    """
1230    composition_parsed = parse_graph(composition)
1231    center_parsed = parse_graph(center)
1232    strength_parsed = parse_float_graph(strength)
1233    return composition_zoom_blur_internal(composition_parsed, center_parsed, strength_parsed)

Composition Zoom Blur

Performs a zoom blur on this composition

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

Returns: Graph: A graph node producing a Composition.

def curve_evaluate(curve, input) -> Graph:
1235def curve_evaluate(curve, input) -> Graph:
1236    """Curve Evaluate
1237
1238    Evaluates a curve at a given input value.
1239
1240    Args:
1241        curve: Graph of Curve
1242        input: Graph of Float
1243        
1244
1245    Returns:
1246        Graph: A graph node producing a Float.
1247    """
1248    curve_parsed = parse_graph(curve)
1249    input_parsed = parse_float_graph(input)
1250    return curve_evaluate_internal(curve_parsed, input_parsed)

Curve Evaluate

Evaluates a curve at a given input value.

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

Returns: Graph: A graph node producing a Float.

def curve_gamma(gamma) -> Graph:
1252def curve_gamma(gamma) -> Graph:
1253    """Curve Gamma
1254
1255    A gamma curve. The gamma parameter corresponding to y=x^gamma.
1256
1257    Args:
1258        gamma: Graph of Float
1259        
1260
1261    Returns:
1262        Graph: A graph node producing a Curve.
1263    """
1264    gamma_parsed = parse_float_graph(gamma)
1265    return curve_gamma_internal(gamma_parsed)

Curve Gamma

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

Args: gamma: Graph of Float

Returns: Graph: A graph node producing a Curve.

def curve_identity() -> Graph:
1267def curve_identity() -> Graph:
1268    """Curve Identity
1269
1270    An identity curve, y=x
1271
1272    Returns:
1273        Graph: A graph node producing a Curve.
1274    """
1275    return curve_identity_internal()

Curve Identity

An identity curve, y=x

Returns: Graph: A graph node producing a Curve.

def curve_pivoted_sigmoid(pivot, slope) -> Graph:
1277def curve_pivoted_sigmoid(pivot, slope) -> Graph:
1278    """Curve Pivoted Sigmoid
1279
1280    A pivoted sigmoid contrast curve that anchors at the pivot and smoothly compresses shadows and highlights, with a slope parameter controlling midtone contrast.
1281
1282    Args:
1283        pivot: Graph of Float
1284        slope: Graph of Float
1285        
1286
1287    Returns:
1288        Graph: A graph node producing a Curve.
1289    """
1290    pivot_parsed = parse_float_graph(pivot)
1291    slope_parsed = parse_float_graph(slope)
1292    return curve_pivoted_sigmoid_internal(pivot_parsed, slope_parsed)

Curve Pivoted Sigmoid

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

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

Returns: Graph: A graph node producing a Curve.

def curve_s_curve(pivot, slope, toe, shoulder) -> Graph:
1294def curve_s_curve(pivot, slope, toe, shoulder) -> Graph:
1295    """Curve S
1296
1297    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.
1298
1299    Args:
1300        pivot: Graph of Float
1301        slope: Graph of Float
1302        toe: Graph of Float
1303        shoulder: Graph of Float
1304        
1305
1306    Returns:
1307        Graph: A graph node producing a Curve.
1308    """
1309    pivot_parsed = parse_float_graph(pivot)
1310    slope_parsed = parse_float_graph(slope)
1311    toe_parsed = parse_float_graph(toe)
1312    shoulder_parsed = parse_float_graph(shoulder)
1313    return curve_s_curve_internal(pivot_parsed, slope_parsed, toe_parsed, shoulder_parsed)

Curve S

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

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

Returns: Graph: A graph node producing a Curve.

def dictionary_create() -> Graph:
1315def dictionary_create() -> Graph:
1316    """Dictionary Create
1317
1318    Creates a new dictionary
1319
1320    Returns:
1321        Graph: A graph node producing a Dictionary.
1322    """
1323    return dictionary_create_internal()

Dictionary Create

Creates a new dictionary

Returns: Graph: A graph node producing a Dictionary.

def file_convert_image_to_bmp(image_bytes) -> Graph:
1325def file_convert_image_to_bmp(image_bytes) -> Graph:
1326    """File Convert Image to BMP
1327
1328    Converts any image format (JPEG, PNG, WebP, TIFF, HEIC, etc.) to BMP. Returns BMP bytes.
1329
1330    Args:
1331        image bytes (any format): Graph of ByteList
1332        
1333
1334    Returns:
1335        Graph: A graph node producing a ByteList.
1336    """
1337    image_bytes_parsed = parse_graph(image_bytes)
1338    return file_convert_image_to_bmp_internal(image_bytes_parsed)

File Convert Image to BMP

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

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

Returns: Graph: A graph node producing a ByteList.

def file_convert_image_to_heic(image_bytes, quality) -> Graph:
1340def file_convert_image_to_heic(image_bytes, quality) -> Graph:
1341    """File Convert Image to HEIC
1342
1343    Converts any image format (JPEG, PNG, WebP, TIFF, BMP, etc.) to HEIC. Returns HEIC bytes.
1344
1345    Args:
1346        image bytes (any format): Graph of ByteList
1347        HEIC quality (1-100): Graph of Int
1348        
1349
1350    Returns:
1351        Graph: A graph node producing a ByteList.
1352    """
1353    image_bytes_parsed = parse_graph(image_bytes)
1354    quality_parsed = parse_int_graph(quality)
1355    return file_convert_image_to_heic_internal(image_bytes_parsed, quality_parsed)

File Convert Image to HEIC

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

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

Returns: Graph: A graph node producing a ByteList.

def file_convert_image_to_jpeg(image_bytes, quality) -> Graph:
1357def file_convert_image_to_jpeg(image_bytes, quality) -> Graph:
1358    """File Convert Image to JPEG
1359
1360    Converts any image format (PNG, WebP, TIFF, BMP, HEIC, etc.) to JPEG. Returns JPEG bytes.
1361
1362    Args:
1363        image bytes (any format): Graph of ByteList
1364        JPEG quality (1-100): Graph of Int
1365        
1366
1367    Returns:
1368        Graph: A graph node producing a ByteList.
1369    """
1370    image_bytes_parsed = parse_graph(image_bytes)
1371    quality_parsed = parse_int_graph(quality)
1372    return file_convert_image_to_jpeg_internal(image_bytes_parsed, quality_parsed)

File Convert Image to JPEG

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

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

Returns: Graph: A graph node producing a ByteList.

def file_convert_image_to_png(image_bytes) -> Graph:
1374def file_convert_image_to_png(image_bytes) -> Graph:
1375    """File Convert Image to PNG
1376
1377    Converts any image format (JPEG, WebP, TIFF, BMP, HEIC, etc.) to PNG. Returns PNG bytes.
1378
1379    Args:
1380        image bytes (any format): Graph of ByteList
1381        
1382
1383    Returns:
1384        Graph: A graph node producing a ByteList.
1385    """
1386    image_bytes_parsed = parse_graph(image_bytes)
1387    return file_convert_image_to_png_internal(image_bytes_parsed)

File Convert Image to PNG

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

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

Returns: Graph: A graph node producing a ByteList.

def file_convert_image_to_tiff(image_bytes) -> Graph:
1389def file_convert_image_to_tiff(image_bytes) -> Graph:
1390    """File Convert Image to TIFF
1391
1392    Converts any image format (JPEG, PNG, WebP, BMP, HEIC, etc.) to TIFF. Returns TIFF bytes.
1393
1394    Args:
1395        image bytes (any format): Graph of ByteList
1396        
1397
1398    Returns:
1399        Graph: A graph node producing a ByteList.
1400    """
1401    image_bytes_parsed = parse_graph(image_bytes)
1402    return file_convert_image_to_tiff_internal(image_bytes_parsed)

File Convert Image to TIFF

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

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

Returns: Graph: A graph node producing a ByteList.

def file_convert_image_to_web_p(image_bytes, quality) -> Graph:
1404def file_convert_image_to_web_p(image_bytes, quality) -> Graph:
1405    """File Convert Image to WebP
1406
1407    Converts any image format (JPEG, PNG, TIFF, BMP, HEIC, etc.) to WebP. Returns WebP bytes.
1408
1409    Args:
1410        image bytes (any format): Graph of ByteList
1411        WebP quality (1-100): Graph of Int
1412        
1413
1414    Returns:
1415        Graph: A graph node producing a ByteList.
1416    """
1417    image_bytes_parsed = parse_graph(image_bytes)
1418    quality_parsed = parse_int_graph(quality)
1419    return file_convert_image_to_web_p_internal(image_bytes_parsed, quality_parsed)

File Convert Image to WebP

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

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

Returns: Graph: A graph node producing a ByteList.

def file_convert_video_to_animated_web_p(video_bytes) -> Graph:
1421def file_convert_video_to_animated_web_p(video_bytes) -> Graph:
1422    """File Convert Video to Animated WebP
1423
1424    Converts any video format (MP4, MOV, WebM, AVI, MKV) to an animated WebP. Returns animated WebP bytes.
1425
1426    Args:
1427        video bytes (any format): Graph of ByteList
1428        
1429
1430    Returns:
1431        Graph: A graph node producing a ByteList.
1432    """
1433    video_bytes_parsed = parse_graph(video_bytes)
1434    return file_convert_video_to_animated_web_p_internal(video_bytes_parsed)

File Convert Video to Animated WebP

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

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

Returns: Graph: A graph node producing a ByteList.

def file_convert_video_to_gif(video_bytes, frame_rate) -> Graph:
1436def file_convert_video_to_gif(video_bytes, frame_rate) -> Graph:
1437    """File Convert Video to GIF
1438
1439    Converts any video format (MP4, MOV, WebM, AVI, MKV) to a GIF. Returns GIF bytes.
1440
1441    Args:
1442        video bytes (any format): Graph of ByteList
1443        frame rate: Graph of Int
1444        
1445
1446    Returns:
1447        Graph: A graph node producing a ByteList.
1448    """
1449    video_bytes_parsed = parse_graph(video_bytes)
1450    frame_rate_parsed = parse_int_graph(frame_rate)
1451    return file_convert_video_to_gif_internal(video_bytes_parsed, frame_rate_parsed)

File Convert Video to GIF

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

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

Returns: Graph: A graph node producing a ByteList.

def file_convert_video_to_m_p4(video_bytes) -> Graph:
1453def file_convert_video_to_m_p4(video_bytes) -> Graph:
1454    """File Convert Video to MP4
1455
1456    Converts any video format (MOV, WebM, AVI, MKV) to MP4. Returns MP4 bytes.
1457
1458    Args:
1459        video bytes (any format): Graph of ByteList
1460        
1461
1462    Returns:
1463        Graph: A graph node producing a ByteList.
1464    """
1465    video_bytes_parsed = parse_graph(video_bytes)
1466    return file_convert_video_to_m_p4_internal(video_bytes_parsed)

File Convert Video to MP4

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

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

Returns: Graph: A graph node producing a ByteList.

def file_convert_video_to_web_m(video_bytes) -> Graph:
1468def file_convert_video_to_web_m(video_bytes) -> Graph:
1469    """File Convert Video to WebM
1470
1471    Converts any video format (MP4, MOV, AVI, MKV) to WebM. Returns WebM bytes.
1472
1473    Args:
1474        video bytes (any format): Graph of ByteList
1475        
1476
1477    Returns:
1478        Graph: A graph node producing a ByteList.
1479    """
1480    video_bytes_parsed = parse_graph(video_bytes)
1481    return file_convert_video_to_web_m_internal(video_bytes_parsed)

File Convert Video to WebM

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

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

Returns: Graph: A graph node producing a ByteList.

def fill_custom(function_body, helpers, inputs) -> Graph:
1483def fill_custom(function_body, helpers, inputs) -> Graph:
1484    """Fill Custom
1485
1486    Creates a fill with a custom shader.
1487
1488    Args:
1489        function body: Graph of String
1490        helpers: Graph of String
1491        inputs: Graph of Dictionary
1492        
1493
1494    Returns:
1495        Graph: A graph node producing a Fill.
1496    """
1497    function_body_parsed = parse_string_graph(function_body)
1498    helpers_parsed = parse_string_graph(helpers)
1499    inputs_parsed = parse_graph(inputs)
1500    return fill_custom_internal(function_body_parsed, helpers_parsed, inputs_parsed)

Fill Custom

Creates a fill with a custom shader.

Args: function body: Graph of String helpers: Graph of String inputs: Graph of Dictionary

Returns: Graph: A graph node producing a Fill.

def fill_solid(color) -> Graph:
1502def fill_solid(color) -> Graph:
1503    """Fill Solid
1504
1505    Creates a fill with a solid color.
1506
1507    Args:
1508        color: Graph of RGBAColor
1509        
1510
1511    Returns:
1512        Graph: A graph node producing a Fill.
1513    """
1514    color_parsed = parse_graph(color)
1515    return fill_solid_internal(color_parsed)

Fill Solid

Creates a fill with a solid color.

Args: color: Graph of RGBAColor

Returns: Graph: A graph node producing a Fill.

def float_add(float1, float2) -> Graph:
1517def float_add(float1, float2) -> Graph:
1518    """Float Add
1519
1520    Adds two floats together.
1521
1522    Args:
1523        float1: Graph of Float
1524        float2: Graph of Float
1525        
1526
1527    Returns:
1528        Graph: A graph node producing a Float.
1529    """
1530    float1_parsed = parse_float_graph(float1)
1531    float2_parsed = parse_float_graph(float2)
1532    return float_add_internal(float1_parsed, float2_parsed)

Float Add

Adds two floats together.

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

Returns: Graph: A graph node producing a Float.

def float_add_to_dictionary(dictionary, key, value) -> Graph:
1534def float_add_to_dictionary(dictionary, key, value) -> Graph:
1535    """Float Add To Dictionary
1536
1537    Adds a Float to a Dictionary
1538
1539    Args:
1540        dictionary: Graph of Dictionary
1541        key: Graph of String
1542        value: Graph of Float
1543        
1544
1545    Returns:
1546        Graph: A graph node producing a Dictionary.
1547    """
1548    dictionary_parsed = parse_graph(dictionary)
1549    key_parsed = parse_string_graph(key)
1550    value_parsed = parse_float_graph(value)
1551    return float_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

Float Add To Dictionary

Adds a Float to a Dictionary

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

Returns: Graph: A graph node producing a Dictionary.

def float_cos(angle) -> Graph:
1553def float_cos(angle) -> Graph:
1554    """Float Cosine
1555
1556    Computes the cosine of a float (in radians).
1557
1558    Args:
1559        Angle in radians: Graph of Float
1560        
1561
1562    Returns:
1563        Graph: A graph node producing a Float.
1564    """
1565    angle_parsed = parse_float_graph(angle)
1566    return float_cos_internal(angle_parsed)

Float Cosine

Computes the cosine of a float (in radians).

Args: Angle in radians: Graph of Float

Returns: Graph: A graph node producing a Float.

def float_divide(float1, float2) -> Graph:
1568def float_divide(float1, float2) -> Graph:
1569    """Float Divide
1570
1571    Adds two floats together.
1572
1573    Args:
1574        float1: Graph of Float
1575        float2: Graph of Float
1576        
1577
1578    Returns:
1579        Graph: A graph node producing a Float.
1580    """
1581    float1_parsed = parse_float_graph(float1)
1582    float2_parsed = parse_float_graph(float2)
1583    return float_divide_internal(float1_parsed, float2_parsed)

Float Divide

Adds two floats together.

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

Returns: Graph: A graph node producing a Float.

def float_equals(float_1, float_2) -> Graph:
1585def float_equals(float_1, float_2) -> Graph:
1586    """Float Equals
1587
1588    Checks if two floats are equal
1589
1590    Args:
1591        First Float: Graph of Float
1592        Second Float: Graph of Float
1593        
1594
1595    Returns:
1596        Graph: A graph node producing a Bool.
1597    """
1598    float_1_parsed = parse_float_graph(float_1)
1599    float_2_parsed = parse_float_graph(float_2)
1600    return float_equals_internal(float_1_parsed, float_2_parsed)

Float Equals

Checks if two floats are equal

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

Returns: Graph: A graph node producing a Bool.

def float_greater_than(float_1, float_2) -> Graph:
1602def float_greater_than(float_1, float_2) -> Graph:
1603    """Float Greater Than
1604
1605    Checks if the first float is greater than the second float
1606
1607    Args:
1608        First Float: Graph of Float
1609        Second Float: Graph of Float
1610        
1611
1612    Returns:
1613        Graph: A graph node producing a Bool.
1614    """
1615    float_1_parsed = parse_float_graph(float_1)
1616    float_2_parsed = parse_float_graph(float_2)
1617    return float_greater_than_internal(float_1_parsed, float_2_parsed)

Float Greater Than

Checks if the first float is greater than the second float

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

Returns: Graph: A graph node producing a Bool.

def float_greater_than_or_equal(float_1, float_2) -> Graph:
1619def float_greater_than_or_equal(float_1, float_2) -> Graph:
1620    """Float Greater Than Or Equal
1621
1622    Checks if the first float is greater than or equal to the second float
1623
1624    Args:
1625        First Float: Graph of Float
1626        Second Float: Graph of Float
1627        
1628
1629    Returns:
1630        Graph: A graph node producing a Bool.
1631    """
1632    float_1_parsed = parse_float_graph(float_1)
1633    float_2_parsed = parse_float_graph(float_2)
1634    return float_greater_than_or_equal_internal(float_1_parsed, float_2_parsed)

Float Greater Than Or Equal

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

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

Returns: Graph: A graph node producing a Bool.

def float_if(bool, input_1, input_2) -> Graph:
1636def float_if(bool, input_1, input_2) -> Graph:
1637    """Float If
1638
1639    If the boolean is true returns input 1, otherwise input 2. Type: Float
1640
1641    Args:
1642        bool: Graph of Bool
1643        input 1: Graph of Float
1644        input 2: Graph of Float
1645        
1646
1647    Returns:
1648        Graph: A graph node producing a Float.
1649    """
1650    bool_parsed = parse_bool_graph(bool)
1651    input_1_parsed = parse_float_graph(input_1)
1652    input_2_parsed = parse_float_graph(input_2)
1653    return float_if_internal(bool_parsed, input_1_parsed, input_2_parsed)

Float If

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

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

Returns: Graph: A graph node producing a Float.

def float_lerp(x, float1, float2) -> Graph:
1655def float_lerp(x, float1, float2) -> Graph:
1656    """Float Lerp
1657
1658    Lerps between two floats using the x parameter
1659
1660    Args:
1661        x: Graph of Float
1662        float1: Graph of Float
1663        float2: Graph of Float
1664        
1665
1666    Returns:
1667        Graph: A graph node producing a Float.
1668    """
1669    x_parsed = parse_float_graph(x)
1670    float1_parsed = parse_float_graph(float1)
1671    float2_parsed = parse_float_graph(float2)
1672    return float_lerp_internal(x_parsed, float1_parsed, float2_parsed)

Float Lerp

Lerps between two floats using the x parameter

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

Returns: Graph: A graph node producing a Float.

def float_less_than(float_1, float_2) -> Graph:
1674def float_less_than(float_1, float_2) -> Graph:
1675    """Float Less Than
1676
1677    Checks if the first float is less than the second float
1678
1679    Args:
1680        First Float: Graph of Float
1681        Second Float: Graph of Float
1682        
1683
1684    Returns:
1685        Graph: A graph node producing a Bool.
1686    """
1687    float_1_parsed = parse_float_graph(float_1)
1688    float_2_parsed = parse_float_graph(float_2)
1689    return float_less_than_internal(float_1_parsed, float_2_parsed)

Float Less Than

Checks if the first float is less than the second float

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

Returns: Graph: A graph node producing a Bool.

def float_less_than_or_equal(float_1, float_2) -> Graph:
1691def float_less_than_or_equal(float_1, float_2) -> Graph:
1692    """Float Less Than Or Equal
1693
1694    Checks if the first float is less than or equal to the second float
1695
1696    Args:
1697        First Float: Graph of Float
1698        Second Float: Graph of Float
1699        
1700
1701    Returns:
1702        Graph: A graph node producing a Bool.
1703    """
1704    float_1_parsed = parse_float_graph(float_1)
1705    float_2_parsed = parse_float_graph(float_2)
1706    return float_less_than_or_equal_internal(float_1_parsed, float_2_parsed)

Float Less Than Or Equal

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

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

Returns: Graph: A graph node producing a Bool.

def float_max(float1, float2) -> Graph:
1708def float_max(float1, float2) -> Graph:
1709    """Float Max
1710
1711    Returns the maximum float.
1712
1713    Args:
1714        float1: Graph of Float
1715        float2: Graph of Float
1716        
1717
1718    Returns:
1719        Graph: A graph node producing a Float.
1720    """
1721    float1_parsed = parse_float_graph(float1)
1722    float2_parsed = parse_float_graph(float2)
1723    return float_max_internal(float1_parsed, float2_parsed)

Float Max

Returns the maximum float.

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

Returns: Graph: A graph node producing a Float.

def float_min(float1, float2) -> Graph:
1725def float_min(float1, float2) -> Graph:
1726    """Float Min
1727
1728    Returns the minimum float.
1729
1730    Args:
1731        float1: Graph of Float
1732        float2: Graph of Float
1733        
1734
1735    Returns:
1736        Graph: A graph node producing a Float.
1737    """
1738    float1_parsed = parse_float_graph(float1)
1739    float2_parsed = parse_float_graph(float2)
1740    return float_min_internal(float1_parsed, float2_parsed)

Float Min

Returns the minimum float.

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

Returns: Graph: A graph node producing a Float.

def float_multiply(float1, float2) -> Graph:
1742def float_multiply(float1, float2) -> Graph:
1743    """Float Multiply
1744
1745    Multiplies two floats together.
1746
1747    Args:
1748        float1: Graph of Float
1749        float2: Graph of Float
1750        
1751
1752    Returns:
1753        Graph: A graph node producing a Float.
1754    """
1755    float1_parsed = parse_float_graph(float1)
1756    float2_parsed = parse_float_graph(float2)
1757    return float_multiply_internal(float1_parsed, float2_parsed)

Float Multiply

Multiplies two floats together.

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

Returns: Graph: A graph node producing a Float.

def float_passthrough(value) -> Graph:
1759def float_passthrough(value) -> Graph:
1760    """Float Passthrough
1761
1762    Responds with the value provided. Doing nothing to it.
1763
1764    Args:
1765        value: Graph of Float
1766        
1767
1768    Returns:
1769        Graph: A graph node producing a Float.
1770    """
1771    value_parsed = parse_float_graph(value)
1772    return float_passthrough_internal(value_parsed)

Float Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of Float

Returns: Graph: A graph node producing a Float.

def float_pow(float1, float2) -> Graph:
1774def float_pow(float1, float2) -> Graph:
1775    """Float Power
1776
1777    Raises float 1 to the power of float 2
1778
1779    Args:
1780        float 1: Graph of Float
1781        float 2: Graph of Float
1782        
1783
1784    Returns:
1785        Graph: A graph node producing a Float.
1786    """
1787    float1_parsed = parse_float_graph(float1)
1788    float2_parsed = parse_float_graph(float2)
1789    return float_pow_internal(float1_parsed, float2_parsed)

Float Power

Raises float 1 to the power of float 2

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

Returns: Graph: A graph node producing a Float.

def float_round_to_int(float) -> Graph:
1791def float_round_to_int(float) -> Graph:
1792    """Float Round to Int
1793
1794    Rounds the float to the nearest int
1795
1796    Args:
1797        float: Graph of Float
1798        
1799
1800    Returns:
1801        Graph: A graph node producing a Int.
1802    """
1803    float_parsed = parse_float_graph(float)
1804    return float_round_to_int_internal(float_parsed)

Float Round to Int

Rounds the float to the nearest int

Args: float: Graph of Float

Returns: Graph: A graph node producing a Int.

def float_sin(angle) -> Graph:
1806def float_sin(angle) -> Graph:
1807    """Float Sine
1808
1809    Computes the sine of a float (in radians).
1810
1811    Args:
1812        Angle in radians: Graph of Float
1813        
1814
1815    Returns:
1816        Graph: A graph node producing a Float.
1817    """
1818    angle_parsed = parse_float_graph(angle)
1819    return float_sin_internal(angle_parsed)

Float Sine

Computes the sine of a float (in radians).

Args: Angle in radians: Graph of Float

Returns: Graph: A graph node producing a Float.

def float_square_root(number) -> Graph:
1821def float_square_root(number) -> Graph:
1822    """Float Square Root
1823
1824    Compares the square root of a number
1825
1826    Args:
1827        Number: Graph of Float
1828        
1829
1830    Returns:
1831        Graph: A graph node producing a Float.
1832    """
1833    number_parsed = parse_float_graph(number)
1834    return float_square_root_internal(number_parsed)

Float Square Root

Compares the square root of a number

Args: Number: Graph of Float

Returns: Graph: A graph node producing a Float.

def float_squared(number) -> Graph:
1836def float_squared(number) -> Graph:
1837    """Float Squared
1838
1839    Raises a float to the power of 2.
1840
1841    Args:
1842        Number: Graph of Float
1843        
1844
1845    Returns:
1846        Graph: A graph node producing a Float.
1847    """
1848    number_parsed = parse_float_graph(number)
1849    return float_squared_internal(number_parsed)

Float Squared

Raises a float to the power of 2.

Args: Number: Graph of Float

Returns: Graph: A graph node producing a Float.

def float_subtract(float1, float2) -> Graph:
1851def float_subtract(float1, float2) -> Graph:
1852    """Float Subtract
1853
1854    Adds two floats together.
1855
1856    Args:
1857        float1: Graph of Float
1858        float2: Graph of Float
1859        
1860
1861    Returns:
1862        Graph: A graph node producing a Float.
1863    """
1864    float1_parsed = parse_float_graph(float1)
1865    float2_parsed = parse_float_graph(float2)
1866    return float_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:
1868def image_from_byte_list(bytes) -> Graph:
1869    """Image from Bytes
1870
1871    Given some bytes, parses an image
1872
1873    Args:
1874        bytes: Graph of ByteList
1875        
1876
1877    Returns:
1878        Graph: A graph node producing a Image.
1879    """
1880    bytes_parsed = parse_graph(bytes)
1881    return image_from_byte_list_internal(bytes_parsed)

Image from Bytes

Given some bytes, parses an image

Args: bytes: Graph of ByteList

Returns: Graph: A graph node producing a Image.

def image_to_byte_list(image) -> Graph:
1883def image_to_byte_list(image) -> Graph:
1884    """Image to Byte List
1885
1886    Given an image, converts it to a byte list
1887
1888    Args:
1889        image: Graph of Image
1890        
1891
1892    Returns:
1893        Graph: A graph node producing a ByteList.
1894    """
1895    image_parsed = parse_graph(image)
1896    return image_to_byte_list_internal(image_parsed)

Image to Byte List

Given an image, converts it to a byte list

Args: image: Graph of Image

Returns: Graph: A graph node producing a ByteList.

def int_abs(number) -> Graph:
1898def int_abs(number) -> Graph:
1899    """Int Absolute Value
1900
1901    Returns the absolute value of an int
1902
1903    Args:
1904        number: Graph of Int
1905        
1906
1907    Returns:
1908        Graph: A graph node producing a Int.
1909    """
1910    number_parsed = parse_int_graph(number)
1911    return int_abs_internal(number_parsed)

Int Absolute Value

Returns the absolute value of an int

Args: number: Graph of Int

Returns: Graph: A graph node producing a Int.

def int_add(int_1, int_2) -> Graph:
1913def int_add(int_1, int_2) -> Graph:
1914    """Int Add
1915
1916    Adds to ints together
1917
1918    Args:
1919        First Int: Graph of Int
1920        Second Int: Graph of Int
1921        
1922
1923    Returns:
1924        Graph: A graph node producing a Int.
1925    """
1926    int_1_parsed = parse_int_graph(int_1)
1927    int_2_parsed = parse_int_graph(int_2)
1928    return int_add_internal(int_1_parsed, int_2_parsed)

Int Add

Adds to ints together

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

Returns: Graph: A graph node producing a Int.

def int_add_to_dictionary(dictionary, key, value) -> Graph:
1930def int_add_to_dictionary(dictionary, key, value) -> Graph:
1931    """Int Add To Dictionary
1932
1933    Adds a Int to a Dictionary
1934
1935    Args:
1936        dictionary: Graph of Dictionary
1937        key: Graph of String
1938        value: Graph of Int
1939        
1940
1941    Returns:
1942        Graph: A graph node producing a Dictionary.
1943    """
1944    dictionary_parsed = parse_graph(dictionary)
1945    key_parsed = parse_string_graph(key)
1946    value_parsed = parse_int_graph(value)
1947    return int_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

Int Add To Dictionary

Adds a Int to a Dictionary

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

Returns: Graph: A graph node producing a Dictionary.

def int_equals(int_1, int_2) -> Graph:
1949def int_equals(int_1, int_2) -> Graph:
1950    """Int Equals
1951
1952    Checks if two ints are equal
1953
1954    Args:
1955        First Int: Graph of Int
1956        Second Int: Graph of Int
1957        
1958
1959    Returns:
1960        Graph: A graph node producing a Bool.
1961    """
1962    int_1_parsed = parse_int_graph(int_1)
1963    int_2_parsed = parse_int_graph(int_2)
1964    return int_equals_internal(int_1_parsed, int_2_parsed)

Int Equals

Checks if two ints are equal

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

Returns: Graph: A graph node producing a Bool.

def int_greater_than(int_1, int_2) -> Graph:
1966def int_greater_than(int_1, int_2) -> Graph:
1967    """Int Greater Than
1968
1969    Checks if the first int is greater than the second int
1970
1971    Args:
1972        First Int: Graph of Int
1973        Second Int: Graph of Int
1974        
1975
1976    Returns:
1977        Graph: A graph node producing a Bool.
1978    """
1979    int_1_parsed = parse_int_graph(int_1)
1980    int_2_parsed = parse_int_graph(int_2)
1981    return int_greater_than_internal(int_1_parsed, int_2_parsed)

Int Greater Than

Checks if the first int is greater than the second int

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

Returns: Graph: A graph node producing a Bool.

def int_greater_than_or_equal(int_1, int_2) -> Graph:
1983def int_greater_than_or_equal(int_1, int_2) -> Graph:
1984    """Int Greater Than Or Equal
1985
1986    Checks if the first int is greater than or equal to the second int
1987
1988    Args:
1989        First Int: Graph of Int
1990        Second Int: Graph of Int
1991        
1992
1993    Returns:
1994        Graph: A graph node producing a Bool.
1995    """
1996    int_1_parsed = parse_int_graph(int_1)
1997    int_2_parsed = parse_int_graph(int_2)
1998    return int_greater_than_or_equal_internal(int_1_parsed, int_2_parsed)

Int Greater Than Or Equal

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

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

Returns: Graph: A graph node producing a Bool.

def int_if(bool, input_1, input_2) -> Graph:
2000def int_if(bool, input_1, input_2) -> Graph:
2001    """Int If
2002
2003    If the boolean is true returns input 1, otherwise input 2. Type: Int
2004
2005    Args:
2006        bool: Graph of Bool
2007        input 1: Graph of Int
2008        input 2: Graph of Int
2009        
2010
2011    Returns:
2012        Graph: A graph node producing a Int.
2013    """
2014    bool_parsed = parse_bool_graph(bool)
2015    input_1_parsed = parse_int_graph(input_1)
2016    input_2_parsed = parse_int_graph(input_2)
2017    return int_if_internal(bool_parsed, input_1_parsed, input_2_parsed)

Int If

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

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

Returns: Graph: A graph node producing a Int.

def int_less_than(int_1, int_2) -> Graph:
2019def int_less_than(int_1, int_2) -> Graph:
2020    """Int Less Than
2021
2022    Checks if the first int is less than the second int
2023
2024    Args:
2025        First Int: Graph of Int
2026        Second Int: Graph of Int
2027        
2028
2029    Returns:
2030        Graph: A graph node producing a Bool.
2031    """
2032    int_1_parsed = parse_int_graph(int_1)
2033    int_2_parsed = parse_int_graph(int_2)
2034    return int_less_than_internal(int_1_parsed, int_2_parsed)

Int Less Than

Checks if the first int is less than the second int

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

Returns: Graph: A graph node producing a Bool.

def int_less_than_or_equal(int_1, int_2) -> Graph:
2036def int_less_than_or_equal(int_1, int_2) -> Graph:
2037    """Int Less Than Or Equal
2038
2039    Checks if the first int is less than or equal to the second int
2040
2041    Args:
2042        First Int: Graph of Int
2043        Second Int: Graph of Int
2044        
2045
2046    Returns:
2047        Graph: A graph node producing a Bool.
2048    """
2049    int_1_parsed = parse_int_graph(int_1)
2050    int_2_parsed = parse_int_graph(int_2)
2051    return int_less_than_or_equal_internal(int_1_parsed, int_2_parsed)

Int Less Than Or Equal

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

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

Returns: Graph: A graph node producing a Bool.

def int_max(int1, int2) -> Graph:
2053def int_max(int1, int2) -> Graph:
2054    """Int Max
2055
2056    Returns the maximum int.
2057
2058    Args:
2059        int1: Graph of Int
2060        int2: Graph of Int
2061        
2062
2063    Returns:
2064        Graph: A graph node producing a Int.
2065    """
2066    int1_parsed = parse_int_graph(int1)
2067    int2_parsed = parse_int_graph(int2)
2068    return int_max_internal(int1_parsed, int2_parsed)

Int Max

Returns the maximum int.

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

Returns: Graph: A graph node producing a Int.

def int_min(int1, int2) -> Graph:
2070def int_min(int1, int2) -> Graph:
2071    """Int Min
2072
2073    Returns the minimum int.
2074
2075    Args:
2076        int1: Graph of Int
2077        int2: Graph of Int
2078        
2079
2080    Returns:
2081        Graph: A graph node producing a Int.
2082    """
2083    int1_parsed = parse_int_graph(int1)
2084    int2_parsed = parse_int_graph(int2)
2085    return int_min_internal(int1_parsed, int2_parsed)

Int Min

Returns the minimum int.

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

Returns: Graph: A graph node producing a Int.

def int_multiply(int_1, int_2) -> Graph:
2087def int_multiply(int_1, int_2) -> Graph:
2088    """Int Multiply
2089
2090    Multiplies two integers together
2091
2092    Args:
2093        First Int: Graph of Int
2094        Second Int: Graph of Int
2095        
2096
2097    Returns:
2098        Graph: A graph node producing a Int.
2099    """
2100    int_1_parsed = parse_int_graph(int_1)
2101    int_2_parsed = parse_int_graph(int_2)
2102    return int_multiply_internal(int_1_parsed, int_2_parsed)

Int Multiply

Multiplies two integers together

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

Returns: Graph: A graph node producing a Int.

def int_passthrough(value) -> Graph:
2104def int_passthrough(value) -> Graph:
2105    """Int Passthrough
2106
2107    Responds with the value provided. Doing nothing to it.
2108
2109    Args:
2110        value: Graph of Int
2111        
2112
2113    Returns:
2114        Graph: A graph node producing a Int.
2115    """
2116    value_parsed = parse_int_graph(value)
2117    return int_passthrough_internal(value_parsed)

Int Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of Int

Returns: Graph: A graph node producing a Int.

def int_subtract(int_1, int_2) -> Graph:
2119def int_subtract(int_1, int_2) -> Graph:
2120    """Int Subtract
2121
2122    Subtracts one int from another
2123
2124    Args:
2125        int 1: Graph of Int
2126        int 2: Graph of Int
2127        
2128
2129    Returns:
2130        Graph: A graph node producing a Int.
2131    """
2132    int_1_parsed = parse_int_graph(int_1)
2133    int_2_parsed = parse_int_graph(int_2)
2134    return int_subtract_internal(int_1_parsed, int_2_parsed)

Int Subtract

Subtracts one int from another

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

Returns: Graph: A graph node producing a Int.

def int_to_float(int) -> Graph:
2136def int_to_float(int) -> Graph:
2137    """Int To Float
2138
2139    Converts an Int to a Float
2140
2141    Args:
2142        int: Graph of Int
2143        
2144
2145    Returns:
2146        Graph: A graph node producing a Float.
2147    """
2148    int_parsed = parse_int_graph(int)
2149    return int_to_float_internal(int_parsed)

Int To Float

Converts an Int to a Float

Args: int: Graph of Int

Returns: Graph: A graph node producing a Float.

def monet_network_download_u_r_l_from_asset_i_d(asset_id) -> Graph:
2151def monet_network_download_u_r_l_from_asset_i_d(asset_id) -> Graph:
2152    """Monet Network Download URL from Asset ID
2153
2154    Creates a Download URL from asset ID in the Monet Network
2155
2156    Args:
2157        asset id: Graph of Int
2158        
2159
2160    Returns:
2161        Graph: A graph node producing a String.
2162    """
2163    asset_id_parsed = parse_int_graph(asset_id)
2164    return monet_network_download_u_r_l_from_asset_i_d_internal(asset_id_parsed)

Monet Network Download URL from Asset ID

Creates a Download URL from asset ID in the Monet Network

Args: asset id: Graph of Int

Returns: Graph: A graph node producing a String.

def not_(bool) -> Graph:
2166def not_(bool) -> Graph:
2167    """Not
2168
2169    Returns the opposite of a boolean
2170
2171    Args:
2172        Bool: Graph of Bool
2173        
2174
2175    Returns:
2176        Graph: A graph node producing a Bool.
2177    """
2178    bool_parsed = parse_bool_graph(bool)
2179    return not_internal(bool_parsed)

Not

Returns the opposite of a boolean

Args: Bool: Graph of Bool

Returns: Graph: A graph node producing a Bool.

def null_value() -> Graph:
2181def null_value() -> Graph:
2182    """Null Value
2183
2184    Returns a null value
2185
2186    Returns:
2187        Graph: A graph node producing a Null.
2188    """
2189    return null_value_internal()

Null Value

Returns a null value

Returns: Graph: A graph node producing a Null.

def ok_lab_color_from_components(l, a, b) -> Graph:
2191def ok_lab_color_from_components(l, a, b) -> Graph:
2192    """OkLab Color from Components
2193
2194    Given the L, a and b creates the color
2195
2196    Args:
2197        l: Graph of Float
2198        a: Graph of Float
2199        b: Graph of Float
2200        
2201
2202    Returns:
2203        Graph: A graph node producing a OkLabColor.
2204    """
2205    l_parsed = parse_float_graph(l)
2206    a_parsed = parse_float_graph(a)
2207    b_parsed = parse_float_graph(b)
2208    return ok_lab_color_from_components_internal(l_parsed, a_parsed, b_parsed)

OkLab Color from Components

Given the L, a and b creates the color

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

Returns: Graph: A graph node producing a OkLabColor.

def ok_lab_hist_lightness_quantile(hist, quantile) -> Graph:
2210def ok_lab_hist_lightness_quantile(hist, quantile) -> Graph:
2211    """OkLab Histogram Lightness Quantile
2212
2213    Given an OkLab histogram and a quantile, returns the lightness value that corresponds to the quantile.
2214
2215    Args:
2216        hist: Graph of OkLabHist
2217        quantile: Graph of Float
2218        
2219
2220    Returns:
2221        Graph: A graph node producing a Float.
2222    """
2223    hist_parsed = parse_graph(hist)
2224    quantile_parsed = parse_float_graph(quantile)
2225    return ok_lab_hist_lightness_quantile_internal(hist_parsed, quantile_parsed)

OkLab Histogram Lightness Quantile

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

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

Returns: Graph: A graph node producing a Float.

def ok_lab_to_r_g_b(ok_lab, color_profile) -> Graph:
2227def ok_lab_to_r_g_b(ok_lab, color_profile) -> Graph:
2228    """OkLab to RGB
2229
2230    Converts an OkLab color to an RGB color
2231
2232    Args:
2233        OkLab: Graph of OkLabColor
2234        color profile: Graph of ColorProfile
2235        
2236
2237    Returns:
2238        Graph: A graph node producing a RGBColor.
2239    """
2240    ok_lab_parsed = parse_graph(ok_lab)
2241    color_profile_parsed = parse_graph(color_profile)
2242    return ok_lab_to_r_g_b_internal(ok_lab_parsed, color_profile_parsed)

OkLab to RGB

Converts an OkLab color to an RGB color

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

Returns: Graph: A graph node producing a RGBColor.

def or_(bool1, bool2) -> Graph:
2244def or_(bool1, bool2) -> Graph:
2245    """Or
2246
2247    Returns true if either inputs are true.
2248
2249    Args:
2250        bool1: Graph of Bool
2251        bool2: Graph of Bool
2252        
2253
2254    Returns:
2255        Graph: A graph node producing a Bool.
2256    """
2257    bool1_parsed = parse_bool_graph(bool1)
2258    bool2_parsed = parse_bool_graph(bool2)
2259    return or_internal(bool1_parsed, bool2_parsed)

Or

Returns true if either inputs are true.

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

Returns: Graph: A graph node producing a Bool.

def painter_add_ellipse_with_render_style(painter, center, dimensions, rotation, render_style, instances) -> Graph:
2261def painter_add_ellipse_with_render_style(painter, center, dimensions, rotation, render_style, instances) -> Graph:
2262    """Painter Add Ellipse with Render Style
2263
2264    Adds an ellipse to the painter and draws it with the render style. Set some transforms on the ellipse as well.
2265
2266    Args:
2267        painter: Graph of Painter
2268        center point of the ellipse: Graph of Point2f
2269        width (a) and height (b) of the ellipse: Graph of Vector2f
2270        rotation angle in radians: Graph of Float
2271        render style: Graph of RenderStyle
2272        instances: Graph of Transform2List
2273        
2274
2275    Returns:
2276        Graph: A graph node producing a Painter.
2277    """
2278    painter_parsed = parse_graph(painter)
2279    center_parsed = parse_graph(center)
2280    dimensions_parsed = parse_graph(dimensions)
2281    rotation_parsed = parse_float_graph(rotation)
2282    render_style_parsed = parse_graph(render_style)
2283    instances_parsed = parse_graph(instances)
2284    return painter_add_ellipse_with_render_style_internal(painter_parsed, center_parsed, dimensions_parsed, rotation_parsed, render_style_parsed, instances_parsed)

Painter Add Ellipse with Render Style

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

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

Returns: Graph: A graph node producing a Painter.

def painter_add_path_with_render_style(painter, path, render_style, instances) -> Graph:
2286def painter_add_path_with_render_style(painter, path, render_style, instances) -> Graph:
2287    """Painter Add Path with Render Style
2288
2289    Adds a path to the painter and draws it with the render style. Set some transforms on the path as well.
2290
2291    Args:
2292        painter: Graph of Painter
2293        path: Graph of Path
2294        render style: Graph of RenderStyle
2295        instances: Graph of Transform2List
2296        
2297
2298    Returns:
2299        Graph: A graph node producing a Painter.
2300    """
2301    painter_parsed = parse_graph(painter)
2302    path_parsed = parse_graph(path)
2303    render_style_parsed = parse_graph(render_style)
2304    instances_parsed = parse_graph(instances)
2305    return painter_add_path_with_render_style_internal(painter_parsed, path_parsed, render_style_parsed, instances_parsed)

Painter Add Path with Render Style

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

Args: painter: Graph of Painter path: Graph of Path render style: Graph of RenderStyle instances: Graph of Transform2List

Returns: Graph: A graph node producing a Painter.

def painter_add_rectangle_with_render_style(painter, center, dimensions, rotation, render_style, instances) -> Graph:
2307def painter_add_rectangle_with_render_style(painter, center, dimensions, rotation, render_style, instances) -> Graph:
2308    """Painter Add Rectangle with Render Style
2309
2310    Adds a rectangle to the painter and draws it with the render style. Set some transforms on the rectangle as well.
2311
2312    Args:
2313        painter: Graph of Painter
2314        center point of the rectangle: Graph of Point2f
2315        width and height of the rectangle: Graph of Vector2f
2316        rotation angle in radians: Graph of Float
2317        render style: Graph of RenderStyle
2318        instances: Graph of Transform2List
2319        
2320
2321    Returns:
2322        Graph: A graph node producing a Painter.
2323    """
2324    painter_parsed = parse_graph(painter)
2325    center_parsed = parse_graph(center)
2326    dimensions_parsed = parse_graph(dimensions)
2327    rotation_parsed = parse_float_graph(rotation)
2328    render_style_parsed = parse_graph(render_style)
2329    instances_parsed = parse_graph(instances)
2330    return painter_add_rectangle_with_render_style_internal(painter_parsed, center_parsed, dimensions_parsed, rotation_parsed, render_style_parsed, instances_parsed)

Painter Add Rectangle with Render Style

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

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

Returns: Graph: A graph node producing a Painter.

def painter_new(color_profile) -> Graph:
2332def painter_new(color_profile) -> Graph:
2333    """Painter New
2334
2335    Creates a new painter.
2336
2337    Args:
2338        color profile: Graph of ColorProfile
2339        
2340
2341    Returns:
2342        Graph: A graph node producing a Painter.
2343    """
2344    color_profile_parsed = parse_graph(color_profile)
2345    return painter_new_internal(color_profile_parsed)

Painter New

Creates a new painter.

Args: color profile: Graph of ColorProfile

Returns: Graph: A graph node producing a Painter.

def path_line_to_point(path, point) -> Graph:
2347def path_line_to_point(path, point) -> Graph:
2348    """Path Line to Point
2349
2350    Moves the path from it's current point to another at another point with a line.
2351
2352    Args:
2353        path: Graph of Path
2354        point: Graph of Point2f
2355        
2356
2357    Returns:
2358        Graph: A graph node producing a Path.
2359    """
2360    path_parsed = parse_graph(path)
2361    point_parsed = parse_graph(point)
2362    return path_line_to_point_internal(path_parsed, point_parsed)

Path Line to Point

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

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

Returns: Graph: A graph node producing a Path.

def path_move_to_point(path, point) -> Graph:
2364def path_move_to_point(path, point) -> Graph:
2365    """Path Move to Point
2366
2367    Moves the path to a specified point without drawing anything.
2368
2369    Args:
2370        path: Graph of Path
2371        point: Graph of Point2f
2372        
2373
2374    Returns:
2375        Graph: A graph node producing a Path.
2376    """
2377    path_parsed = parse_graph(path)
2378    point_parsed = parse_graph(point)
2379    return path_move_to_point_internal(path_parsed, point_parsed)

Path Move to Point

Moves the path to a specified point without drawing anything.

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

Returns: Graph: A graph node producing a Path.

def path_new() -> Graph:
2381def path_new() -> Graph:
2382    """Path New
2383
2384    Creates a new empty path.
2385
2386    Returns:
2387        Graph: A graph node producing a Path.
2388    """
2389    return path_new_internal()

Path New

Creates a new empty path.

Returns: Graph: A graph node producing a Path.

def pi() -> Graph:
2391def pi() -> Graph:
2392    """Pi
2393
2394    Returns π as a float
2395
2396    Returns:
2397        Graph: A graph node producing a Float.
2398    """
2399    return pi_internal()

Pi

Returns π as a float

Returns: Graph: A graph node producing a Float.

def point2f_from_components(x, y) -> Graph:
2401def point2f_from_components(x, y) -> Graph:
2402    """Point 2 Float from Components
2403
2404    Given an x and y creates a point
2405
2406    Args:
2407        x: Graph of Float
2408        y: Graph of Float
2409        
2410
2411    Returns:
2412        Graph: A graph node producing a Point2f.
2413    """
2414    x_parsed = parse_float_graph(x)
2415    y_parsed = parse_float_graph(y)
2416    return point2f_from_components_internal(x_parsed, y_parsed)

Point 2 Float from Components

Given an x and y creates a point

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

Returns: Graph: A graph node producing a Point2f.

def r_g_b_a_color_add_to_dictionary(dictionary, key, value) -> Graph:
2418def r_g_b_a_color_add_to_dictionary(dictionary, key, value) -> Graph:
2419    """RGBA Color Add To Dictionary
2420
2421    Adds a RGBA Color to a Dictionary
2422
2423    Args:
2424        dictionary: Graph of Dictionary
2425        key: Graph of String
2426        value: Graph of RGBAColor
2427        
2428
2429    Returns:
2430        Graph: A graph node producing a Dictionary.
2431    """
2432    dictionary_parsed = parse_graph(dictionary)
2433    key_parsed = parse_string_graph(key)
2434    value_parsed = parse_graph(value)
2435    return r_g_b_a_color_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

RGBA Color Add To Dictionary

Adds a RGBA Color to a Dictionary

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

Returns: Graph: A graph node producing a Dictionary.

def r_g_b_a_color_from_components(r, g, b, a) -> Graph:
2437def r_g_b_a_color_from_components(r, g, b, a) -> Graph:
2438    """RGBA Color from Components
2439
2440    Given the r, g, b and a creates the color
2441
2442    Args:
2443        red: Graph of Float
2444        green: Graph of Float
2445        blue: Graph of Float
2446        alpha: Graph of Float
2447        
2448
2449    Returns:
2450        Graph: A graph node producing a RGBAColor.
2451    """
2452    r_parsed = parse_float_graph(r)
2453    g_parsed = parse_float_graph(g)
2454    b_parsed = parse_float_graph(b)
2455    a_parsed = parse_float_graph(a)
2456    return r_g_b_a_color_from_components_internal(r_parsed, g_parsed, b_parsed, a_parsed)

RGBA Color from Components

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

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

Returns: Graph: A graph node producing a RGBAColor.

def r_g_b_a_color_passthrough(value) -> Graph:
2458def r_g_b_a_color_passthrough(value) -> Graph:
2459    """RGBA Color Passthrough
2460
2461    Responds with the value provided. Doing nothing to it.
2462
2463    Args:
2464        value: Graph of RGBAColor
2465        
2466
2467    Returns:
2468        Graph: A graph node producing a RGBAColor.
2469    """
2470    value_parsed = parse_graph(value)
2471    return r_g_b_a_color_passthrough_internal(value_parsed)

RGBA Color Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of RGBAColor

Returns: Graph: A graph node producing a RGBAColor.

def r_g_b_color_add_to_dictionary(dictionary, key, value) -> Graph:
2473def r_g_b_color_add_to_dictionary(dictionary, key, value) -> Graph:
2474    """RGB Color Add To Dictionary
2475
2476    Adds a RGB Color to a Dictionary
2477
2478    Args:
2479        dictionary: Graph of Dictionary
2480        key: Graph of String
2481        value: Graph of RGBColor
2482        
2483
2484    Returns:
2485        Graph: A graph node producing a Dictionary.
2486    """
2487    dictionary_parsed = parse_graph(dictionary)
2488    key_parsed = parse_string_graph(key)
2489    value_parsed = parse_graph(value)
2490    return r_g_b_color_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

RGB Color Add To Dictionary

Adds a RGB Color to a Dictionary

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

Returns: Graph: A graph node producing a Dictionary.

def r_g_b_color_from_components(r, g, b) -> Graph:
2492def r_g_b_color_from_components(r, g, b) -> Graph:
2493    """RGB Color from Components
2494
2495    Given the r, g and b creates the color
2496
2497    Args:
2498        red: Graph of Float
2499        green: Graph of Float
2500        blue: Graph of Float
2501        
2502
2503    Returns:
2504        Graph: A graph node producing a RGBColor.
2505    """
2506    r_parsed = parse_float_graph(r)
2507    g_parsed = parse_float_graph(g)
2508    b_parsed = parse_float_graph(b)
2509    return r_g_b_color_from_components_internal(r_parsed, g_parsed, b_parsed)

RGB Color from Components

Given the r, g and b creates the color

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

Returns: Graph: A graph node producing a RGBColor.

def r_g_b_color_passthrough(value) -> Graph:
2511def r_g_b_color_passthrough(value) -> Graph:
2512    """RGB Color Passthrough
2513
2514    Responds with the value provided. Doing nothing to it.
2515
2516    Args:
2517        value: Graph of RGBColor
2518        
2519
2520    Returns:
2521        Graph: A graph node producing a RGBColor.
2522    """
2523    value_parsed = parse_graph(value)
2524    return r_g_b_color_passthrough_internal(value_parsed)

RGB Color Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of RGBColor

Returns: Graph: A graph node producing a RGBColor.

def r_g_b_to_ok_lab(rgb, color_profile) -> Graph:
2526def r_g_b_to_ok_lab(rgb, color_profile) -> Graph:
2527    """RGB to OkLab
2528
2529    Converts an RGB color to an OkLab color
2530
2531    Args:
2532        RGB: Graph of RGBColor
2533        color profile: Graph of ColorProfile
2534        
2535
2536    Returns:
2537        Graph: A graph node producing a OkLabColor.
2538    """
2539    rgb_parsed = parse_graph(rgb)
2540    color_profile_parsed = parse_graph(color_profile)
2541    return r_g_b_to_ok_lab_internal(rgb_parsed, color_profile_parsed)

RGB to OkLab

Converts an RGB color to an OkLab color

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

Returns: Graph: A graph node producing a OkLabColor.

def render_style_brush_and_fill(brush, fill) -> Graph:
2543def render_style_brush_and_fill(brush, fill) -> Graph:
2544    """Render Style Brush and Fill
2545
2546    Creates a render style that will have a brush and a fill.
2547
2548    Args:
2549        brush: Graph of Brush
2550        fill: Graph of Fill
2551        
2552
2553    Returns:
2554        Graph: A graph node producing a RenderStyle.
2555    """
2556    brush_parsed = parse_graph(brush)
2557    fill_parsed = parse_graph(fill)
2558    return render_style_brush_and_fill_internal(brush_parsed, fill_parsed)

Render Style Brush and Fill

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

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

Returns: Graph: A graph node producing a RenderStyle.

def render_style_brush_only(brush) -> Graph:
2560def render_style_brush_only(brush) -> Graph:
2561    """Render Style Brush Only
2562
2563    Creates a render style that will only have a brush.
2564
2565    Args:
2566        brush: Graph of Brush
2567        
2568
2569    Returns:
2570        Graph: A graph node producing a RenderStyle.
2571    """
2572    brush_parsed = parse_graph(brush)
2573    return render_style_brush_only_internal(brush_parsed)

Render Style Brush Only

Creates a render style that will only have a brush.

Args: brush: Graph of Brush

Returns: Graph: A graph node producing a RenderStyle.

def render_style_fill_only(fill) -> Graph:
2575def render_style_fill_only(fill) -> Graph:
2576    """Render Style Fill Only
2577
2578    Creates a render style that will only have a fill.
2579
2580    Args:
2581        fill: Graph of Fill
2582        
2583
2584    Returns:
2585        Graph: A graph node producing a RenderStyle.
2586    """
2587    fill_parsed = parse_graph(fill)
2588    return render_style_fill_only_internal(fill_parsed)

Render Style Fill Only

Creates a render style that will only have a fill.

Args: fill: Graph of Fill

Returns: Graph: A graph node producing a RenderStyle.

def sequence_adjust_speed(sequence, factor) -> Graph:
2590def sequence_adjust_speed(sequence, factor) -> Graph:
2591    """Sequence Adjust Speed
2592
2593    Adjusts the speed of a sequence by a speed factor.
2594
2595    Args:
2596        sequence: Graph of Sequence
2597        factor: Graph of Float
2598        
2599
2600    Returns:
2601        Graph: A graph node producing a Sequence.
2602    """
2603    sequence_parsed = parse_graph(sequence)
2604    factor_parsed = parse_float_graph(factor)
2605    return sequence_adjust_speed_internal(sequence_parsed, factor_parsed)

Sequence Adjust Speed

Adjusts the speed of a sequence by a speed factor.

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

Returns: Graph: A graph node producing a Sequence.

def sequence_composition_at_time(sequence, time) -> Graph:
2607def sequence_composition_at_time(sequence, time) -> Graph:
2608    """Sequence Composition at Time
2609
2610    Extracts an composition from a sequence at a particular time
2611
2612    Args:
2613        sequence: Graph of Sequence
2614        time: Graph of Float
2615        
2616
2617    Returns:
2618        Graph: A graph node producing a Composition.
2619    """
2620    sequence_parsed = parse_graph(sequence)
2621    time_parsed = parse_float_graph(time)
2622    return sequence_composition_at_time_internal(sequence_parsed, time_parsed)

Sequence Composition at Time

Extracts an composition from a sequence at a particular time

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

Returns: Graph: A graph node producing a Composition.

def sequence_concatenate(sequence_1, sequence_2) -> Graph:
2624def sequence_concatenate(sequence_1, sequence_2) -> Graph:
2625    """Sequence Concatenate
2626
2627    Given two sequences, combines them into one by playing the first one and then the second one.
2628
2629    Args:
2630        sequence 1: Graph of Sequence
2631        sequence 2: Graph of Sequence
2632        
2633
2634    Returns:
2635        Graph: A graph node producing a Sequence.
2636    """
2637    sequence_1_parsed = parse_graph(sequence_1)
2638    sequence_2_parsed = parse_graph(sequence_2)
2639    return sequence_concatenate_internal(sequence_1_parsed, sequence_2_parsed)

Sequence Concatenate

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

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

Returns: Graph: A graph node producing a Sequence.

def sequence_duration(sequence) -> Graph:
2641def sequence_duration(sequence) -> Graph:
2642    """Sequence Duration
2643
2644    Gets the duration from a sequence
2645
2646    Args:
2647        sequence: Graph of Sequence
2648        
2649
2650    Returns:
2651        Graph: A graph node producing a Float.
2652    """
2653    sequence_parsed = parse_graph(sequence)
2654    return sequence_duration_internal(sequence_parsed)

Sequence Duration

Gets the duration from a sequence

Args: sequence: Graph of Sequence

Returns: Graph: A graph node producing a Float.

def sequence_from_composition_and_duration(composition, duration) -> Graph:
2656def sequence_from_composition_and_duration(composition, duration) -> Graph:
2657    """Sequence from Composition and Duration
2658
2659    Give a Composition and a Duration. Returns a Sequence.
2660
2661    Args:
2662        composition: Graph of Composition
2663        duration: Graph of Float
2664        
2665
2666    Returns:
2667        Graph: A graph node producing a Sequence.
2668    """
2669    composition_parsed = parse_graph(composition)
2670    duration_parsed = parse_float_graph(duration)
2671    return sequence_from_composition_and_duration_internal(composition_parsed, duration_parsed)

Sequence from Composition and Duration

Give a Composition and a Duration. Returns a Sequence.

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

Returns: Graph: A graph node producing a Sequence.

def sequence_from_u_r_l(url) -> Graph:
2673def sequence_from_u_r_l(url) -> Graph:
2674    """Sequence from URL
2675
2676    Creates a sequence from URL
2677
2678    Args:
2679        url: Graph of String
2680        
2681
2682    Returns:
2683        Graph: A graph node producing a Sequence.
2684    """
2685    url_parsed = parse_string_graph(url)
2686    return sequence_from_u_r_l_internal(url_parsed)

Sequence from URL

Creates a sequence from URL

Args: url: Graph of String

Returns: Graph: A graph node producing a Sequence.

def sequence_graph(duration, time, frame) -> Graph:
2688def sequence_graph(duration, time, frame) -> Graph:
2689    """Sequence Graph
2690
2691    Creates a sequence that runs the graph to get the duration and the frame for each time.
2692
2693    Args:
2694        duration: Graph of Float
2695        time: Graph of Float
2696        frame: Graph of Composition
2697        
2698
2699    Returns:
2700        Graph: A graph node producing a Sequence.
2701    """
2702    duration_parsed = parse_float_graph(duration)
2703    time_parsed = parse_float_graph(time)
2704    frame_parsed = parse_graph(frame)
2705    return sequence_graph_internal(duration_parsed, time_parsed, frame_parsed)

Sequence Graph

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

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

Returns: Graph: A graph node producing a Sequence.

def sequence_grayscale(sequence) -> Graph:
2707def sequence_grayscale(sequence) -> Graph:
2708    """Sequence Grayscale
2709
2710    Creates a sequence that converts the video to grayscale
2711
2712    Args:
2713        sequence: Graph of Sequence
2714        
2715
2716    Returns:
2717        Graph: A graph node producing a Sequence.
2718    """
2719    sequence_parsed = parse_graph(sequence)
2720    return sequence_grayscale_internal(sequence_parsed)

Sequence Grayscale

Creates a sequence that converts the video to grayscale

Args: sequence: Graph of Sequence

Returns: Graph: A graph node producing a Sequence.

def sequence_passthrough(value) -> Graph:
2722def sequence_passthrough(value) -> Graph:
2723    """Sequence Passthrough
2724
2725    Responds with the value provided. Doing nothing to it.
2726
2727    Args:
2728        value: Graph of Sequence
2729        
2730
2731    Returns:
2732        Graph: A graph node producing a Sequence.
2733    """
2734    value_parsed = parse_graph(value)
2735    return sequence_passthrough_internal(value_parsed)

Sequence Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of Sequence

Returns: Graph: A graph node producing a Sequence.

def sequence_reverse(sequence) -> Graph:
2737def sequence_reverse(sequence) -> Graph:
2738    """Sequence Reverse
2739
2740    Given a sequence. Reverses it.
2741
2742    Args:
2743        sequence: Graph of Sequence
2744        
2745
2746    Returns:
2747        Graph: A graph node producing a Sequence.
2748    """
2749    sequence_parsed = parse_graph(sequence)
2750    return sequence_reverse_internal(sequence_parsed)

Sequence Reverse

Given a sequence. Reverses it.

Args: sequence: Graph of Sequence

Returns: Graph: A graph node producing a Sequence.

def sequence_to_mp4(sequence, frame_rate) -> Graph:
2752def sequence_to_mp4(sequence, frame_rate) -> Graph:
2753    """Sequence To MP4
2754
2755    Given a sequence. Converts it to MP4 return a local file to where that MP4 is stored.
2756
2757    Args:
2758        sequence: Graph of Sequence
2759        frame rate: Graph of Int
2760        
2761
2762    Returns:
2763        Graph: A graph node producing a ByteList.
2764    """
2765    sequence_parsed = parse_graph(sequence)
2766    frame_rate_parsed = parse_int_graph(frame_rate)
2767    return sequence_to_mp4_internal(sequence_parsed, frame_rate_parsed)

Sequence To MP4

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

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

Returns: Graph: A graph node producing a ByteList.

def sequence_trim_back(sequence, amount) -> Graph:
2769def sequence_trim_back(sequence, amount) -> Graph:
2770    """Sequence Trim Back
2771
2772    Given a sequence. Trims from the back.
2773
2774    Args:
2775        sequence: Graph of Sequence
2776        amount: Graph of Float
2777        
2778
2779    Returns:
2780        Graph: A graph node producing a Sequence.
2781    """
2782    sequence_parsed = parse_graph(sequence)
2783    amount_parsed = parse_float_graph(amount)
2784    return sequence_trim_back_internal(sequence_parsed, amount_parsed)

Sequence Trim Back

Given a sequence. Trims from the back.

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

Returns: Graph: A graph node producing a Sequence.

def sequence_trim_front(sequence, amount) -> Graph:
2786def sequence_trim_front(sequence, amount) -> Graph:
2787    """Sequence Trim Front
2788
2789    Given a sequence. Trims from the front.
2790
2791    Args:
2792        sequence: Graph of Sequence
2793        amount: Graph of Float
2794        
2795
2796    Returns:
2797        Graph: A graph node producing a Sequence.
2798    """
2799    sequence_parsed = parse_graph(sequence)
2800    amount_parsed = parse_float_graph(amount)
2801    return sequence_trim_front_internal(sequence_parsed, amount_parsed)

Sequence Trim Front

Given a sequence. Trims from the front.

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

Returns: Graph: A graph node producing a Sequence.

def string_if(bool, input_1, input_2) -> Graph:
2803def string_if(bool, input_1, input_2) -> Graph:
2804    """String If
2805
2806    If the boolean is true returns input 1, otherwise input 2. Type: String
2807
2808    Args:
2809        bool: Graph of Bool
2810        input 1: Graph of String
2811        input 2: Graph of String
2812        
2813
2814    Returns:
2815        Graph: A graph node producing a String.
2816    """
2817    bool_parsed = parse_bool_graph(bool)
2818    input_1_parsed = parse_string_graph(input_1)
2819    input_2_parsed = parse_string_graph(input_2)
2820    return string_if_internal(bool_parsed, input_1_parsed, input_2_parsed)

String If

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

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

Returns: Graph: A graph node producing a String.

def transform2_identity() -> Graph:
2822def transform2_identity() -> Graph:
2823    """Transform 2D Identity
2824
2825    Creates a 2D transform that is the identity transform.
2826
2827    Returns:
2828        Graph: A graph node producing a Transform2.
2829    """
2830    return transform2_identity_internal()

Transform 2D Identity

Creates a 2D transform that is the identity transform.

Returns: Graph: A graph node producing a Transform2.

def transform2_if(bool, input_1, input_2) -> Graph:
2832def transform2_if(bool, input_1, input_2) -> Graph:
2833    """Transform 2D If
2834
2835    If the boolean is true returns input 1, otherwise input 2. Type: Transform2
2836
2837    Args:
2838        bool: Graph of Bool
2839        input 1: Graph of Transform2
2840        input 2: Graph of Transform2
2841        
2842
2843    Returns:
2844        Graph: A graph node producing a Transform2.
2845    """
2846    bool_parsed = parse_bool_graph(bool)
2847    input_1_parsed = parse_graph(input_1)
2848    input_2_parsed = parse_graph(input_2)
2849    return transform2_if_internal(bool_parsed, input_1_parsed, input_2_parsed)

Transform 2D If

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

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

Returns: Graph: A graph node producing a Transform2.

def transform2_rotate(transform, angle) -> Graph:
2851def transform2_rotate(transform, angle) -> Graph:
2852    """Transform 2D Rotate
2853
2854    Applies a rotation to a 2D transform. Rotation is in radians.
2855
2856    Args:
2857        transform: Graph of Transform2
2858        angle in radians: Graph of Float
2859        
2860
2861    Returns:
2862        Graph: A graph node producing a Transform2.
2863    """
2864    transform_parsed = parse_graph(transform)
2865    angle_parsed = parse_float_graph(angle)
2866    return transform2_rotate_internal(transform_parsed, angle_parsed)

Transform 2D Rotate

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

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

Returns: Graph: A graph node producing a Transform2.

def transform2_scale(transform, scale) -> Graph:
2868def transform2_scale(transform, scale) -> Graph:
2869    """Transform 2D Scale
2870
2871    Applies a scale to a 2D transform.
2872
2873    Args:
2874        transform: Graph of Transform2
2875        scale: Graph of Vector2f
2876        
2877
2878    Returns:
2879        Graph: A graph node producing a Transform2.
2880    """
2881    transform_parsed = parse_graph(transform)
2882    scale_parsed = parse_graph(scale)
2883    return transform2_scale_internal(transform_parsed, scale_parsed)

Transform 2D Scale

Applies a scale to a 2D transform.

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

Returns: Graph: A graph node producing a Transform2.

def transform2_to_list(item) -> Graph:
2885def transform2_to_list(item) -> Graph:
2886    """Transform 2D to List
2887
2888    Converts Transform 2D to a single item list
2889
2890    Args:
2891        item: Graph of Transform2
2892        
2893
2894    Returns:
2895        Graph: A graph node producing a Transform2List.
2896    """
2897    item_parsed = parse_graph(item)
2898    return transform2_to_list_internal(item_parsed)

Transform 2D to List

Converts Transform 2D to a single item list

Args: item: Graph of Transform2

Returns: Graph: A graph node producing a Transform2List.

def transform2_translation(transform, translation) -> Graph:
2900def transform2_translation(transform, translation) -> Graph:
2901    """Transform 2D Translation
2902
2903    Applies a translation to a 2D transform.
2904
2905    Args:
2906        transform: Graph of Transform2
2907        translation: Graph of Vector2f
2908        
2909
2910    Returns:
2911        Graph: A graph node producing a Transform2.
2912    """
2913    transform_parsed = parse_graph(transform)
2914    translation_parsed = parse_graph(translation)
2915    return transform2_translation_internal(transform_parsed, translation_parsed)

Transform 2D Translation

Applies a translation to a 2D transform.

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

Returns: Graph: A graph node producing a Transform2.

def upload_byte_list(bytes, url, content_type) -> Graph:
2917def upload_byte_list(bytes, url, content_type) -> Graph:
2918    """Upload Byte List
2919
2920    Given bytes and a URL. Performs a PUT request and uploads the bytes
2921
2922    Args:
2923        bytes: Graph of ByteList
2924        url: Graph of String
2925        content type: Graph of String
2926        
2927
2928    Returns:
2929        Graph: A graph node producing a Void.
2930    """
2931    bytes_parsed = parse_graph(bytes)
2932    url_parsed = parse_string_graph(url)
2933    content_type_parsed = parse_string_graph(content_type)
2934    return upload_byte_list_internal(bytes_parsed, url_parsed, content_type_parsed)

Upload Byte List

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

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

Returns: Graph: A graph node producing a Void.

def upload_file_path(path, url, content_type) -> Graph:
2936def upload_file_path(path, url, content_type) -> Graph:
2937    """Upload File Path
2938
2939    Reads a file from a local path on disk and uploads its contents to a URL via PUT request
2940
2941    Args:
2942        local file path to read: Graph of String
2943        url: Graph of String
2944        content type: Graph of String
2945        
2946
2947    Returns:
2948        Graph: A graph node producing a Void.
2949    """
2950    path_parsed = parse_string_graph(path)
2951    url_parsed = parse_string_graph(url)
2952    content_type_parsed = parse_string_graph(content_type)
2953    return upload_file_path_internal(path_parsed, url_parsed, content_type_parsed)

Upload File Path

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

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

Returns: Graph: A graph node producing a Void.

def vector2_int_to_vector2_float(vector) -> Graph:
2955def vector2_int_to_vector2_float(vector) -> Graph:
2956    """Vector 2 Int to Vector 2 Float
2957
2958    Given a Vector 2 Int. Creates a Vector 2 Float.
2959
2960    Args:
2961        vector: Graph of Vector2i
2962        
2963
2964    Returns:
2965        Graph: A graph node producing a Vector2f.
2966    """
2967    vector_parsed = parse_graph(vector)
2968    return vector2_int_to_vector2_float_internal(vector_parsed)

Vector 2 Int to Vector 2 Float

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

Args: vector: Graph of Vector2i

Returns: Graph: A graph node producing a Vector2f.

def vector2f_add(lhs, rhs) -> Graph:
2970def vector2f_add(lhs, rhs) -> Graph:
2971    """Vector 2 Float Add
2972
2973    Add two Vector 2s of Floats
2974
2975    Args:
2976        The vector on the left hand side of the add: Graph of Vector2f
2977        The vector on the right hand side of the add: Graph of Vector2f
2978        
2979
2980    Returns:
2981        Graph: A graph node producing a Vector2f.
2982    """
2983    lhs_parsed = parse_graph(lhs)
2984    rhs_parsed = parse_graph(rhs)
2985    return vector2f_add_internal(lhs_parsed, rhs_parsed)

Vector 2 Float Add

Add two Vector 2s of Floats

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

Returns: Graph: A graph node producing a Vector2f.

def vector2f_add_to_dictionary(dictionary, key, value) -> Graph:
2987def vector2f_add_to_dictionary(dictionary, key, value) -> Graph:
2988    """Vector 2 Float Add To Dictionary
2989
2990    Adds a Vector 2 Float to a Dictionary
2991
2992    Args:
2993        dictionary: Graph of Dictionary
2994        key: Graph of String
2995        value: Graph of Vector2f
2996        
2997
2998    Returns:
2999        Graph: A graph node producing a Dictionary.
3000    """
3001    dictionary_parsed = parse_graph(dictionary)
3002    key_parsed = parse_string_graph(key)
3003    value_parsed = parse_graph(value)
3004    return vector2f_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

Vector 2 Float Add To Dictionary

Adds a Vector 2 Float to a Dictionary

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

Returns: Graph: A graph node producing a Dictionary.

def vector2f_from_components(x, y) -> Graph:
3006def vector2f_from_components(x, y) -> Graph:
3007    """Vector 2 Float from Components
3008
3009    Given an x and y creates a vector.
3010
3011    Args:
3012        x: Graph of Float
3013        y: Graph of Float
3014        
3015
3016    Returns:
3017        Graph: A graph node producing a Vector2f.
3018    """
3019    x_parsed = parse_float_graph(x)
3020    y_parsed = parse_float_graph(y)
3021    return vector2f_from_components_internal(x_parsed, y_parsed)

Vector 2 Float from Components

Given an x and y creates a vector.

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

Returns: Graph: A graph node producing a Vector2f.

def vector2f_normalize(vector) -> Graph:
3023def vector2f_normalize(vector) -> Graph:
3024    """Vector 2 Float Normalize
3025
3026    Normalizes a Vector. Converting it's length to 1.
3027
3028    Args:
3029        Vector: Graph of Vector2f
3030        
3031
3032    Returns:
3033        Graph: A graph node producing a Vector2f.
3034    """
3035    vector_parsed = parse_graph(vector)
3036    return vector2f_normalize_internal(vector_parsed)

Vector 2 Float Normalize

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

Args: Vector: Graph of Vector2f

Returns: Graph: A graph node producing a Vector2f.

def vector2f_passthrough(value) -> Graph:
3038def vector2f_passthrough(value) -> Graph:
3039    """Vector 2 Float Passthrough
3040
3041    Responds with the value provided. Doing nothing to it.
3042
3043    Args:
3044        value: Graph of Vector2f
3045        
3046
3047    Returns:
3048        Graph: A graph node producing a Vector2f.
3049    """
3050    value_parsed = parse_graph(value)
3051    return vector2f_passthrough_internal(value_parsed)

Vector 2 Float Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of Vector2f

Returns: Graph: A graph node producing a Vector2f.

def vector2f_scalar_multiply(vector, scalar) -> Graph:
3053def vector2f_scalar_multiply(vector, scalar) -> Graph:
3054    """Vector 2 Float Scalar Multiply
3055
3056    Multiplies each element of the Vector as a scalar
3057
3058    Args:
3059        Vector: Graph of Vector2f
3060        Scalar: Graph of Float
3061        
3062
3063    Returns:
3064        Graph: A graph node producing a Vector2f.
3065    """
3066    vector_parsed = parse_graph(vector)
3067    scalar_parsed = parse_float_graph(scalar)
3068    return vector2f_scalar_multiply_internal(vector_parsed, scalar_parsed)

Vector 2 Float Scalar Multiply

Multiplies each element of the Vector as a scalar

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

Returns: Graph: A graph node producing a Vector2f.

def vector2f_x(vector) -> Graph:
3070def vector2f_x(vector) -> Graph:
3071    """Vector 2 Float get X
3072
3073    Retrieves the X component of a Vector 2 Float.
3074
3075    Args:
3076        vector: Graph of Vector2f
3077        
3078
3079    Returns:
3080        Graph: A graph node producing a Float.
3081    """
3082    vector_parsed = parse_graph(vector)
3083    return vector2f_x_internal(vector_parsed)

Vector 2 Float get X

Retrieves the X component of a Vector 2 Float.

Args: vector: Graph of Vector2f

Returns: Graph: A graph node producing a Float.

def vector2f_y(vector) -> Graph:
3085def vector2f_y(vector) -> Graph:
3086    """Vector 2 Float get Y
3087
3088    Retrieves the Y component of a Vector 2 Float.
3089
3090    Args:
3091        vector: Graph of Vector2f
3092        
3093
3094    Returns:
3095        Graph: A graph node producing a Float.
3096    """
3097    vector_parsed = parse_graph(vector)
3098    return vector2f_y_internal(vector_parsed)

Vector 2 Float get Y

Retrieves the Y component of a Vector 2 Float.

Args: vector: Graph of Vector2f

Returns: Graph: A graph node producing a Float.

def vector2i_add(lhs, rhs) -> Graph:
3100def vector2i_add(lhs, rhs) -> Graph:
3101    """Vector 2 Int Add
3102
3103    Add two Vector 2s of Ints
3104
3105    Args:
3106        The vector on the left hand side of the add: Graph of Vector2i
3107        The vector on the right hand side of the add: Graph of Vector2i
3108        
3109
3110    Returns:
3111        Graph: A graph node producing a Vector2i.
3112    """
3113    lhs_parsed = parse_graph(lhs)
3114    rhs_parsed = parse_graph(rhs)
3115    return vector2i_add_internal(lhs_parsed, rhs_parsed)

Vector 2 Int Add

Add two Vector 2s of Ints

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

Returns: Graph: A graph node producing a Vector2i.

def vector2i_add_to_dictionary(dictionary, key, value) -> Graph:
3117def vector2i_add_to_dictionary(dictionary, key, value) -> Graph:
3118    """Vector 2 Int Add To Dictionary
3119
3120    Adds a Vector 2 Int to a Dictionary
3121
3122    Args:
3123        dictionary: Graph of Dictionary
3124        key: Graph of String
3125        value: Graph of Vector2i
3126        
3127
3128    Returns:
3129        Graph: A graph node producing a Dictionary.
3130    """
3131    dictionary_parsed = parse_graph(dictionary)
3132    key_parsed = parse_string_graph(key)
3133    value_parsed = parse_graph(value)
3134    return vector2i_add_to_dictionary_internal(dictionary_parsed, key_parsed, value_parsed)

Vector 2 Int Add To Dictionary

Adds a Vector 2 Int to a Dictionary

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

Returns: Graph: A graph node producing a Dictionary.

def vector2i_from_components(x, y) -> Graph:
3136def vector2i_from_components(x, y) -> Graph:
3137    """Vector 2 Int from Components
3138
3139    Given an x and y creates a vector.
3140
3141    Args:
3142        x: Graph of Int
3143        y: Graph of Int
3144        
3145
3146    Returns:
3147        Graph: A graph node producing a Vector2i.
3148    """
3149    x_parsed = parse_int_graph(x)
3150    y_parsed = parse_int_graph(y)
3151    return vector2i_from_components_internal(x_parsed, y_parsed)

Vector 2 Int from Components

Given an x and y creates a vector.

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

Returns: Graph: A graph node producing a Vector2i.

def vector2i_passthrough(value) -> Graph:
3153def vector2i_passthrough(value) -> Graph:
3154    """Vector 2 Int Passthrough
3155
3156    Responds with the value provided. Doing nothing to it.
3157
3158    Args:
3159        value: Graph of Vector2i
3160        
3161
3162    Returns:
3163        Graph: A graph node producing a Vector2i.
3164    """
3165    value_parsed = parse_graph(value)
3166    return vector2i_passthrough_internal(value_parsed)

Vector 2 Int Passthrough

Responds with the value provided. Doing nothing to it.

Args: value: Graph of Vector2i

Returns: Graph: A graph node producing a Vector2i.

def vector2i_to_vector2f(vector) -> Graph:
3168def vector2i_to_vector2f(vector) -> Graph:
3169    """Vector 2 Int to Vector 2 Float
3170
3171    Given a Vector 2 Int. Creates a Vector 2 Float.
3172
3173    Args:
3174        vector: Graph of Vector2i
3175        
3176
3177    Returns:
3178        Graph: A graph node producing a Vector2f.
3179    """
3180    vector_parsed = parse_graph(vector)
3181    return vector2i_to_vector2f_internal(vector_parsed)

Vector 2 Int to Vector 2 Float

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

Args: vector: Graph of Vector2i

Returns: Graph: A graph node producing a Vector2f.

def vector2i_x(vector) -> Graph:
3183def vector2i_x(vector) -> Graph:
3184    """Vector 2 Int get X
3185
3186    Retrieves the X component of a Vector 2 Int.
3187
3188    Args:
3189        vector: Graph of Vector2i
3190        
3191
3192    Returns:
3193        Graph: A graph node producing a Int.
3194    """
3195    vector_parsed = parse_graph(vector)
3196    return vector2i_x_internal(vector_parsed)

Vector 2 Int get X

Retrieves the X component of a Vector 2 Int.

Args: vector: Graph of Vector2i

Returns: Graph: A graph node producing a Int.

def vector2i_y(vector) -> Graph:
3198def vector2i_y(vector) -> Graph:
3199    """Vector 2 Int get Y
3200
3201    Retrieves the Y component of a Vector 2 Int.
3202
3203    Args:
3204        vector: Graph of Vector2i
3205        
3206
3207    Returns:
3208        Graph: A graph node producing a Int.
3209    """
3210    vector_parsed = parse_graph(vector)
3211    return vector2i_y_internal(vector_parsed)

Vector 2 Int get Y

Retrieves the Y component of a Vector 2 Int.

Args: vector: Graph of Vector2i

Returns: Graph: A graph node producing a Int.

def vector3f_add(lhs, rhs) -> Graph:
3213def vector3f_add(lhs, rhs) -> Graph:
3214    """Vector 3 Float Add
3215
3216    Add two Vector 3s of Floats
3217
3218    Args:
3219        The vector on the left hand side of the add: Graph of Vector3f
3220        The vector on the right hand side of the add: Graph of Vector3f
3221        
3222
3223    Returns:
3224        Graph: A graph node producing a Vector3f.
3225    """
3226    lhs_parsed = parse_graph(lhs)
3227    rhs_parsed = parse_graph(rhs)
3228    return vector3f_add_internal(lhs_parsed, rhs_parsed)

Vector 3 Float Add

Add two Vector 3s of Floats

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

Returns: Graph: A graph node producing a Vector3f.

def vector3f_from_components(x, y, z) -> Graph:
3230def vector3f_from_components(x, y, z) -> Graph:
3231    """Vector 3 Float from Components
3232
3233    Given an x, y and z creates a vector floats.
3234
3235    Args:
3236        x: Graph of Float
3237        y: Graph of Float
3238        z: Graph of Float
3239        
3240
3241    Returns:
3242        Graph: A graph node producing a Vector3f.
3243    """
3244    x_parsed = parse_float_graph(x)
3245    y_parsed = parse_float_graph(y)
3246    z_parsed = parse_float_graph(z)
3247    return vector3f_from_components_internal(x_parsed, y_parsed, z_parsed)

Vector 3 Float from Components

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

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

Returns: Graph: A graph node producing a Vector3f.

def vector3f_normalize(vector) -> Graph:
3249def vector3f_normalize(vector) -> Graph:
3250    """Vector 3 Normalize
3251
3252    Normalizes a Vector 3 Float. Converting it's length to 1.
3253
3254    Args:
3255        Vector: Graph of Vector3f
3256        
3257
3258    Returns:
3259        Graph: A graph node producing a Vector3f.
3260    """
3261    vector_parsed = parse_graph(vector)
3262    return vector3f_normalize_internal(vector_parsed)

Vector 3 Normalize

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

Args: Vector: Graph of Vector3f

Returns: Graph: A graph node producing a Vector3f.

def vector3f_x(vector) -> Graph:
3264def vector3f_x(vector) -> Graph:
3265    """Vector 3D Float X
3266
3267    Gets the value in the x component for the provided vector
3268
3269    Args:
3270        vector: Graph of Vector3f
3271        
3272
3273    Returns:
3274        Graph: A graph node producing a Float.
3275    """
3276    vector_parsed = parse_graph(vector)
3277    return vector3f_x_internal(vector_parsed)

Vector 3D Float X

Gets the value in the x component for the provided vector

Args: vector: Graph of Vector3f

Returns: Graph: A graph node producing a Float.

def vector3f_y(vector) -> Graph:
3279def vector3f_y(vector) -> Graph:
3280    """Vector 3D Y Float
3281
3282    Gets the value in the y component for the provided vector
3283
3284    Args:
3285        vector: Graph of Vector3f
3286        
3287
3288    Returns:
3289        Graph: A graph node producing a Float.
3290    """
3291    vector_parsed = parse_graph(vector)
3292    return vector3f_y_internal(vector_parsed)

Vector 3D Y Float

Gets the value in the y component for the provided vector

Args: vector: Graph of Vector3f

Returns: Graph: A graph node producing a Float.

def vector3f_z(vector) -> Graph:
3294def vector3f_z(vector) -> Graph:
3295    """Vector 3D Float Z
3296
3297    Gets the value in the z component for the provided vector
3298
3299    Args:
3300        vector: Graph of Vector3f
3301        
3302
3303    Returns:
3304        Graph: A graph node producing a Float.
3305    """
3306    vector_parsed = parse_graph(vector)
3307    return vector3f_z_internal(vector_parsed)

Vector 3D Float Z

Gets the value in the z component for the provided vector

Args: vector: Graph of Vector3f

Returns: Graph: A graph node producing a Float.

def xor(bool1, bool2) -> Graph:
3309def xor(bool1, bool2) -> Graph:
3310    """Exclusive Or
3311
3312    Returns true if either the inputs are true. But false if both are true.
3313
3314    Args:
3315        the first bool: Graph of Bool
3316        The second bool: Graph of Bool
3317        
3318
3319    Returns:
3320        Graph: A graph node producing a Bool.
3321    """
3322    bool1_parsed = parse_bool_graph(bool1)
3323    bool2_parsed = parse_bool_graph(bool2)
3324    return xor_internal(bool1_parsed, bool2_parsed)

Exclusive Or

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

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

Returns: Graph: A graph node producing a Bool.