Skip to main content

nearest_images

Function nearest_images 

Source
fn nearest_images(size: u32, images: &[Image]) -> impl Iterator<Item = &Image>
Expand description

All frames of the theme variant whose pixel size is closest to size. XCursor files bundle the same cursor at several sizes, and choosing the nearest one avoids scaling a mismatched bitmap into a blurry or aliased cursor.