confirm.rs 729 B

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