jomini 0.34.1

Low level, performance oriented parser for save and game files from EU4, CK3, HOI4, Vic3, Imperator, and other PDS titles
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Extracted color info
///
/// This is only for the binary format. RGB values that are in plaintext are
/// behind a [TextToken::Header](crate::TextToken::Header) of `rgb`
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Rgb {
    /// Red channel
    pub r: u32,

    /// Green channel
    pub g: u32,

    /// Blue channel
    pub b: u32,

    /// Optional alpha channel
    pub a: Option<u32>,
}