/ bin / app / src / shape / confirm.rs
confirm.rs
 1  use crate::{
 2      mesh::Color,
 3      ui::{ShapeVertex, VectorShape},
 4  };
 5  pub fn create_confirm(color: Color) -> VectorShape {
 6      VectorShape {
 7          verts: vec![
 8              ShapeVertex::from_xy(-0.52, 0.6, color),
 9              ShapeVertex::from_xy(-0.52, -0.6, color),
10              ShapeVertex::from_xy(0.5, 0.0, color),
11              ShapeVertex::from_xy(-1.05, 1.5, color),
12              ShapeVertex::from_xy(-1.05, -1.5, color),
13              ShapeVertex::from_xy(1.5, 0.0, color),
14              ShapeVertex::from_xy(-0.88, 1.2, color),
15              ShapeVertex::from_xy(-0.88, -1.2, color),
16              ShapeVertex::from_xy(1.16, 0.0, color),
17          ],
18          indices: vec![0, 2, 1, 5, 6, 3, 5, 7, 8, 3, 7, 4, 5, 8, 6, 5, 4, 7, 3, 6, 7],
19      }
20  }