freya-core 0.3.4

Internal core funcionatilies for Freya.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use freya_core::parsing::Parse;
use freya_engine::prelude::*;

#[test]
fn parse_text_shadow() {
    let text_shadow = TextShadow::parse("1 5 12 rgb(255, 0, 0)");
    assert_eq!(
        text_shadow,
        Ok(TextShadow {
            color: Color::RED,
            offset: Point::new(1.0, 5.0),
            blur_sigma: 6.0
        })
    );
}