1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Improve a couple of docstrings

This commit is contained in:
Emil Ernerfeldt
2022-01-08 11:15:05 +01:00
parent 7b641be7b0
commit 342737e2f0
2 changed files with 9 additions and 2 deletions

View File

@@ -6,7 +6,9 @@ pub struct FontImage {
pub version: u64,
pub width: usize,
pub height: usize,
/// White color with the given alpha (linear space 0-255).
/// The alpha (linear space 0-255) of something white.
///
/// One byte per pixel. Often you want to use [`Self::srgba_pixels`] instead.
pub pixels: Vec<u8>,
}