Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Recraft 画像生成における色制御を定義するための補助ノード
class RecraftColorRGBNode: """ Create Recraft Color by choosing specific RGB values. """ RETURN_TYPES = (RecraftIO.COLOR,) DESCRIPTION = cleandoc(__doc__ or "") # Handle potential None value RETURN_NAMES = ("recraft_color",) FUNCTION = "create_color" CATEGORY = "api node/image/Recraft" @classmethod def INPUT_TYPES(s): return { "required": { "r": (IO.INT, { "default": 0, "min": 0, "max": 255, "tooltip": "Red value of color." }), "g": (IO.INT, { "default": 0, "min": 0, "max": 255, "tooltip": "Green value of color." }), "b": (IO.INT, { "default": 0, "min": 0, "max": 255, "tooltip": "Blue value of color." }), }, "optional": { "recraft_color": (RecraftIO.COLOR,), } } def create_color(self, r: int, g: int, b: int, recraft_color: RecraftColorChain=None): recraft_color = recraft_color.clone() if recraft_color else RecraftColorChain() recraft_color.add(RecraftColor(r, g, b)) return (recraft_color, )
このページは役に立ちましたか?