From 1e7e1a0c4eaae2bb79a59ba481ee8893335a5359 Mon Sep 17 00:00:00 2001 From: Chromum Date: Fri, 9 May 2025 11:17:01 +0000 Subject: [PATCH] Add Nodes/Images/SingleChannelColor --- Nodes%2FImages%2FSingleChannelColor.md | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Nodes%2FImages%2FSingleChannelColor.md diff --git a/Nodes%2FImages%2FSingleChannelColor.md b/Nodes%2FImages%2FSingleChannelColor.md new file mode 100644 index 0000000..a937533 --- /dev/null +++ b/Nodes%2FImages%2FSingleChannelColor.md @@ -0,0 +1,40 @@ +# Single Channel Color + +--- + +## 🔌 INPUT PORTS + +| Name | Type | Description | +|-----------------|-----------------|----------------------------------------------------| +| `Color` | `GreyscaleValue` | The greyscale value to be used as the color for each pixel. The value must be between 0 and 255. | +| `Width` | `int` | The width of the image (in pixels). | +| `Height` | `int` | The height of the image (in pixels). | + +--- + +## 📤 EXPORT PORTS + +| Name | Type | Description | +|-----------------|--------------------|-------------------------------------------------| +| `Color` | `SplitChannelData` | The output image data where all pixels are set to the input color. | + +--- + +## 📝 DESCRIPTION + +The **Single Channel Color** node generates an image where all pixels are set to a single color, based on the input greyscale value. This node is useful for creating solid color images or channels in image processing workflows. + +This node: +- Accepts a **greyscale value** to define the color. The **color value** must be an integer between **0** and **255**. +- Uses the **width** and **height** to define the output image dimensions. + +This node is derived from [`BaseImageNode`](Nodes/BaseImageNode). + +--- + +## ⚠️ KNOWN ISSUES + +- The node assumes that valid values for width and height are provided. If either value is invalid or zero, the output may be incorrect or the node may fail to process the image. +- The **`GreyscaleValue`** input must be between **0** and **255** to ensure valid color representation. Values outside this range may cause unexpected behavior (While there is checks in place to stop this, it can sometimes occur during a domain reload). + +---