Skip to main content

pin_offset_y

Function pin_offset_y 

Source
pub fn pin_offset_y(top: f32, offset: u32) -> f32
Expand description

Screen y of pin slot offset within a shape whose top edge is at top. offset is a plain contiguous integer index; the pitch lives here, not in the stored value. The first slot sits a PIN_TOP_MARGIN below the top edge; each further slot is one PIN_PITCH down.