Pixel

This function block allows you to manipulate and specify RGB color values for a pixel. Users can set the individual color components that determine the final pixel color.

📥 Inputs

This function block does not accept any inputs.

📤 Outputs

(Blue, Green, Red) This output provides the RGB color values as a tuple. The values are derived from the sliders for each color component.

🕹️ Controls

Red Value A slider that allows you to set the red component of the pixel color, ranging from 0 to 255.

Green Value A slider that allows you to set the green component of the pixel color, ranging from 0 to 255.

Blue Value A slider that allows you to set the blue component of the pixel color, ranging from 0 to 255.

🎨 Features

Dynamic RGB Control Individual control of red, green, and blue color channels through sliders provides precise manipulation of pixel colors.

Real-Time Output Adjusting the sliders updates the output, enabling immediate visual feedback on color changes.

📝 Usage Instructions

  1. Set Color Values: Use the sliders to adjust the values for the red, green, and blue components of the pixel.

  2. Retrieve Output: The output will automatically update to reflect the current RGB value of the pixel based on the slider adjustments.

📊 Evaluation

This function block outputs the currently set RGB value as a tuple, allowing users to use it as a pixel color input in downstream operations.

💡 Tips and Tricks

Creating Custom Colors

Experiment with different combinations of the RGB sliders to create custom colors for use in other function blocks.

Visual Feedback

If you're using this pixel value in conjunction with functions like Image Color Match or Image ROI, dynamically adjust the sliders to instantly see effects on the image.

Connecting to Other Blocks

Consider connecting this block with image processing blocks, such as RGB Mask, for creative color masking based on pixel values.

🛠️ Troubleshooting

Output Not Updating

Ensure that the evaluation process is being triggered after adjusting the sliders. If it still doesn't update, try reconnecting this function block to ensure data flows correctly.

Wrong Color Representation

If the output does not match the expected color, double-check the slider values. Remember that the higher the value, the closer it is to the corresponding color (e.g., 255 red produces pure red).

Last updated