rust/land_dump/src/main.rs
changeset 14137 3119d665d3c6
parent 14130 ab280be4b617
child 14152 5acfdf49742d
equal deleted inserted replaced
14135:7f5a591e1c43 14137:3119d665d3c6
    34 }
    34 }
    35 
    35 
    36 fn template() -> OutlineTemplate {
    36 fn template() -> OutlineTemplate {
    37     let mut template = OutlineTemplate::new(Size::new(4096, 2048));
    37     let mut template = OutlineTemplate::new(Size::new(4096, 2048));
    38     template.islands = vec![vec![
    38     template.islands = vec![vec![
    39         Rect::new(100, 2050, 1, 1),
    39         Rect::from_size_coords(100, 2050, 1, 1),
    40         Rect::new(100, 500, 400, 1200),
    40         Rect::from_size_coords(100, 500, 400, 1200),
    41         Rect::new(3600, 500, 400, 1200),
    41         Rect::from_size_coords(3600, 500, 400, 1200),
    42         Rect::new(3900, 2050, 1, 1),
    42         Rect::from_size_coords(3900, 2050, 1, 1),
    43     ]];
    43     ]];
    44     template.fill_points = vec![Point::new(2047, 2047)];
    44     template.fill_points = vec![Point::new(2047, 2047)];
    45 
    45 
    46     template
    46     template
    47 }
    47 }