register_effect_color#
- penzai.deprecated.v1.data_effects.effect_base.register_effect_color(color: str) Callable[[type[Any]], type[Any]] [source]#
Decorator to register a treescope-rendering color for a given effect.
- Parameters:
color – The color to assign, as a CSS string.
- Returns:
A decorator that can be applied to a protocol class to associate it with the given color.