From a4ec52a4e7b6ac1f797b14e7a38bb659a588d6c5 Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Mon, 11 Nov 2024 00:04:48 -0800 Subject: [PATCH] Alias the type of an element's color --- app-proto/src/assembly.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app-proto/src/assembly.rs b/app-proto/src/assembly.rs index da54210..485448e 100644 --- a/app-proto/src/assembly.rs +++ b/app-proto/src/assembly.rs @@ -11,11 +11,13 @@ use crate::engine::{realize_gram, PartialMatrix}; pub type ElementKey = usize; pub type ConstraintKey = usize; +pub type ElementColor = [f32; 3]; + #[derive(Clone, PartialEq)] pub struct Element { pub id: String, pub label: String, - pub color: [f32; 3], + pub color: ElementColor, pub representation: DVector, pub constraints: BTreeSet,