ComfyUI Node Runs on cloud
BuildColorRangeAdvanced (hsv)
A ComfyUI node in Bmad/CV/Color A. with 4 inputs and 3 outputs.
BuildColorRangeAdvanced (hsv)
- samples
- HSV_COLOR
- HSV_COLOR
- IR_HUE_MODE
◄hue_exp# hue
h_quant2(0, 1).scale_by_constant(16) if 2 < v_median < 253 else to_interval(0, 180)
►
◄sat_exp# saturation
to_interval(5, 255) if 2 < v_median < 253 else s_quant2(0,1).interpolate(0.2, [0, 255])
►
◄val_exp# value
v_quant2(0,1).interpolate(.5, [0, 255]).scale_by_constant(50) if 2 < v_median < 253 else v_quant2(0,1).scale_by_constant(8)
►
CategoryBmad/CV/Color A.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| samples | HSV_SAMPLES | — | |
| hue_exp | STRING | # hue h_quant2(0, 1).scale_by_constant(16) if 2 < v_median < 253 else to_interval(0, 180) | — |
| sat_exp | STRING | # saturation to_interval(5, 255) if 2 < v_median < 253 else s_quant2(0,1).interpolate(0.2, [0, 255]) | — |
| val_exp | STRING | # value v_quant2(0,1).interpolate(.5, [0, 255]).scale_by_constant(50) if 2 < v_median < 253 else v_quant2(0,1).scale_by_constant(8) | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| HSV_COLOR | HSV_COLOR | — |
| HSV_COLOR | HSV_COLOR | — |
| IR_HUE_MODE | IR_HUE_MODE | — |