Skip to content

hertzforge.drawing.theme

theme

Drawing decisions for the theme: what a figure needs to know, with none of the code that draws it.

Functions:

Name Description
overlay_alphas

The (first, second) opacity of an overlaid pair of shape sets.

Functions:

overlay_alphas

overlay_alphas(first_role: str | None, second_role: str | None) -> tuple[float, float]

The (first, second) opacity of an overlaid pair of shape sets.

The set whose role is 'Basis' is opaque and the other is drawn at OVERLAY_ALPHA over it, whichever order the pair was picked in. With no Basis, or two, the first set is the opaque one.