ladybug_rhino.color module

Collection of methods for converting between Ladybug and .NET colors.

ladybug_rhino.color.argb_color_to_color(color)[source]

Convert a ladybug color into .NET color, including the alpha channel.

ladybug_rhino.color.black()[source]

Get a .NET black color object. Useful for things like default text.

ladybug_rhino.color.color_to_color(color, alpha=255)[source]

Convert a ladybug color into .NET color.

Parameters

alpha – Optional integer between 1 and 255 for the alpha value of the color.

ladybug_rhino.color.gray()[source]

Get a .NET gray color object. Useful when you need a placeholder color.