ComfyUI Node

Contant3Vector(Color)

A ComfyUI node in FunctionAsTexture with 5 inputs and 1 output.

By CoiiChan·Created about a year ago·Updated about a year ago· 2
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)

NameTypeDefaultDescription
formulaSTRING#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
pfloat1FLOAT2550–255Optional,RGB::R(0~255).
pfloat2FLOAT00–255Optional,RGB::G(0~255).
pfloat3FLOAT00–255Optional,RGB::B(0~255).
imgaoptIMAGE可选,参考尺寸,默认 =(1,512,512,3)

Outputs (1)

NameTypeDescription
IMAGEIMAGE