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