Skip to main content

slot_ticks

Function slot_ticks 

Source
pub fn slot_ticks(grid: u8) -> Option<u32>
Expand description

The ticks of one slot of a bar of grid slots: 12, 16 or 24 slots give 160, 120 or 80 ticks.

Returns None for 0 slots and for a grid whose slots do not last a whole number of ticks, such as 7.