bibliopixel.layout.geometry.segment module

class bibliopixel.layout.geometry.segment.Segment(strip, length, offset=0)[source]

Bases: bibliopixel.layout.geometry.strip.Strip

Represents an offset, length segment within a strip.

next(length)[source]

Return a new segment starting right after self in the same buffer.

bibliopixel.layout.geometry.segment.make_segments(strip, length)[source]

Return a list of Segments that evenly split the strip.