PanelSpec#

Import

from scenet import PanelSpec

Defined in

scenet.ir (source)

Install

pip install scenet

Since

0.1

Stability

Public: follows semantic versioning. Below 1.0, a minor release may change it, and the CHANGELOG says how.

class scenet.ir.PanelSpec[source]#

Bases: Strict

The panel’s own dimensions.

Example

>>> from scenet import PanelSpec
>>> PanelSpec(size=(1200.0, 600.0)).width
1200.0

See also

PanelIR, whose panel it is.

size: tuple[float, float]#

The panel’s width and height, [width, height], in panel units: everything else is measured against them. Printed, a unit is a tenth of a millimetre.

margin: float#

An inset on all four sides, in panel units. Balloons, captions and sound effects keep inside it; figures may run past it, as comics let them.

property width: float#

Panel width in panel units.

property height: float#

Panel height in panel units.