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

  1. Adjust the Blue Value, Green Value, and Red Value sliders to choose your color.

  2. 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 Image to create a solid color image quickly (use the selected color as the fill color).

  • Use with Show Image to preview the resulting image or color-filled canvas.

  • Use the color tuple as Mask Color input in RGB Mask or as color input for RGB Set to apply or visualize color-based operations.

  • Save example palettes by connecting resulting images to Image Logger or Image Write for later reuse.

Suggested block combinations:

  • Pixel β†’ Make Image β†’ Show Image

  • Pixel β†’ RGB Mask (as Mask Color) β†’ further processing

  • Pixel β†’ RGB Set or Merge Channels when 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?