Documentation Index
Fetch the complete documentation index at: https://dripart-mintlify-e28287af.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Recraft Color RGB ノードを使用すると、Recraft による画像生成で使用される色を精密に制御するための RGB 色値を定義できます。
ノードの機能
このノードは、色設定オブジェクトを作成し、それを Recraft Controls ノードに接続することで、生成される画像で使用される色を指定します。
パラメーター
基本パラメーター
| パラメーター | 型 | デフォルト値 | 説明 |
|---|
| r | 整数 | 0 | 赤チャンネル (0–255) |
| g | 整数 | 0 | 緑チャンネル (0–255) |
| b | 整数 | 0 | 青チャンネル (0–255) |
| 出力 | 型 | 説明 |
|---|
| recraft_color | Recraft Color | Recraft Controls ノードへ接続するための色設定オブジェクト |
使用例
Recraft Text to Image ワークフローの例
Recraft Text to Image ワークフローの例
ソースコード
[ノードのソースコード(2025-05-03 更新)]
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, )