Pixel
This function block creates a single custom color pixel using three sliders for Blue, Green and Red channel values. Use it when you need a color value (BGR tuple) as an input for other blocks or to build simple images.
π₯ Inputs
This function block does not have any inputs.
π€ Outputs
(Blue, Green, Red) This output is a color tuple with integer channel values in BGR order (each 0β255). It can be used wherever a pixel or color value is required.
πΉοΈ Controls
Blue Value Slider to set blue channel (0β255)
Green Value Slider to set green channel (0β255)
Red Value Slider to set red channel (0β255)
π¨ Features
Live adjustable sliders for each color channel for quick color selection.
Produces a ready-to-use BGR color tuple for other blocks.
Compact and simple UI for picking colors without external tools.
π Usage Instructions
Adjust the
Blue Value,Green Value, andRed Valuesliders to choose your color.Connect the
(Blue, Green, Red)output to any block that accepts a pixel/color or uses a mask/color parameter.
π Evaluation
When evaluated, the block returns a single tuple representing the selected color in BGR order. The value updates as you change the sliders.
π‘ Tips and Tricks
Combine with
Make Imageto create a solid color image quickly (use the selected color as the fill color).Use with
Show Imageto preview the resulting image or color-filled canvas.Use the color tuple as
Mask Colorinput inRGB Maskor as color input forRGB Setto apply or visualize color-based operations.Save example palettes by connecting resulting images to
Image LoggerorImage Writefor later reuse.
Suggested block combinations:
PixelβMake ImageβShow ImagePixelβRGB Mask(asMask Color) β further processingPixelβRGB SetorMerge Channelswhen constructing or altering images
π οΈ Troubleshooting
Unexpected color in results: remember the output ordering is BGR (Blue first). If a downstream block expects RGB, swap channels or use blocks that accept RGB/BGR appropriately.
No effect on image: ensure the downstream block actually accepts a color or pixel tuple (check the target block's expected inputs).
Last updated
Was this helpful?