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