Comfy-Org / Comfy-Org/ComfyUI

[Feature Request] Simple color selector.

Open
#736 4 comments 2 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 10h
Merged PRs (30d)
153

Description

### Description
It would be convenient if it was possible to choose a color in the node for RGB and RGBA. I'll try to describe how I see it.

For `INPUT_TYPES`, 2 types should be added.

Each type should be displayed as a small rectangular area colored in the selected color located opposite the parameter name in the node.

When you click on this rectangle, a window with 3 or 4 parameters should appears.

Parameters for RGB:
```
Red: 0 - 255
Green: 0 - 255
Blue: 0 - 255
```

Parameters for RGBA:

```
Red: 0 - 255
Green: 0 - 255
Blue: 0 - 255
Alpha: 0.0 - 1.0
```

These parameters should come to the node function as a tensor (RGB: [1, 3] and RGBA: [1, 4]), red, green and blue should be divided by 255.0 (converted to 0.0 - 1.0).

### Motivation
Yes, I know that nodes in ComfyUI do not require color as a parameter, but I beg you to think about those who develop plugins for ComfyUI.

Just look at what a node with two incoming RGBA parameters turns into.

![image](https://github.com/comfyanonymous/ComfyUI/assets/22074527/b54f87bc-5ec0-4a57-8837-da617c3cdafa)

It becomes difficult to perceive and frightening, but everything will be the opposite if these 8 parameters are replaced by 2.

I hope for your understanding. Thanks for reading it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.