Files
mcDandy-more_math/more_math/minimal_test.py
T
2026-04-22 10:43:12 +02:00

37 lines
811 B
Python

"""Color math node using integer color representation."""
from __future__ import annotations
from comfy_api.latest import io
class mintest(io.ComfyNode):
"""Apply expression math to Color values converted to packed RGB integers."""
@classmethod
def define_schema(cls) -> io.Schema:
"""Define node schema."""
return io.Schema(
node_id="mrmth_ag_mintest",
category="More math",
display_name="Minimal test",
inputs=[
io.Color.Input(id="V"),
],
outputs=[
io.Color.Output(id="color"),
],
)
@classmethod
def execute(
cls,
V
):
"""Execute color expression and return resulting color."""
print(V)
return V