pyboxbuilder.preview.lid_color

pyboxbuilder.preview.lid_color(box_color: Color) → Color[source]

Return the preview colour for a lid sitting on a box of box_color.

A lid is drawn in a lighter shade at 50% alpha so it reads as a separate piece and the box underneath remains visible through it.

Parameters:
box_color: Color

The colour of the box the lid belongs to.

Returns:

A lighter, semi-transparent pybosl2.Color.