ComfyUI Node
Contant3Vector(Color)
A ComfyUI node in FunctionAsTexture with 5 inputs and 1 output.
Contant3Vector(Color)
- imga
- IMAGE
◄formula#height, width = 512,512
height, width = imga.shape[1:3]
img = np.ones((1, height, width, 3), dtype=np.float32)
[R,G,B] =[pfloat1,pfloat2,pfloat3]
result = img *[R,G,B] /255 ►
◄pfloat1255►
◄pfloat20►
◄pfloat30►
CategoryFunctionAsTexture
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| formula | STRING | #height, width = 512,512 height, width = imga.shape[1:3] img = np.ones((1, height, width, 3), dtype=np.float32) [R,G,B] =[pfloat1,pfloat2,pfloat3] result = img *[R,G,B] /255 | — |
| pfloat1 | FLOAT | 2550–255 | Optional,RGB::R(0~255). |
| pfloat2 | FLOAT | 00–255 | Optional,RGB::G(0~255). |
| pfloat3 | FLOAT | 00–255 | Optional,RGB::B(0~255). |
| imgaopt | IMAGE | 可选,参考尺寸,默认 =(1,512,512,3) |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |