|
|
@@ -0,0 +1,145 @@
|
|
|
+/* This file is part of DarkFi (https://dark.fi)
|
|
|
+ *
|
|
|
+ * Copyright (C) 2020-2026 Dyne.org foundation
|
|
|
+ *
|
|
|
+ * This program is free software: you can redistribute it and/or modify
|
|
|
+ * it under the terms of the GNU Affero General Public License as
|
|
|
+ * published by the Free Software Foundation, either version 3 of the
|
|
|
+ * License, or (at your option) any later version.
|
|
|
+ *
|
|
|
+ * This program is distributed in the hope that it will be useful,
|
|
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
+ * GNU Affero General Public License for more details.
|
|
|
+ *
|
|
|
+ * You should have received a copy of the GNU Affero General Public License
|
|
|
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
+ */
|
|
|
+
|
|
|
+use crate::{
|
|
|
+ mesh::Color,
|
|
|
+ ui::{ShapeVertex, VectorShape},
|
|
|
+};
|
|
|
+pub fn create_darkfi_logo(color: Color) -> VectorShape {
|
|
|
+ VectorShape {
|
|
|
+ verts: vec![
|
|
|
+ ShapeVertex::from_xy(0.0, -0.374527, color),
|
|
|
+ ShapeVertex::from_xy(0.019118, -0.372644, color),
|
|
|
+ ShapeVertex::from_xy(0.037501, -0.367068, color),
|
|
|
+ ShapeVertex::from_xy(0.054444, -0.358012, color),
|
|
|
+ ShapeVertex::from_xy(0.069294, -0.345825, color),
|
|
|
+ ShapeVertex::from_xy(0.081481, -0.330975, color),
|
|
|
+ ShapeVertex::from_xy(0.090537, -0.314033, color),
|
|
|
+ ShapeVertex::from_xy(0.096113, -0.295649, color),
|
|
|
+ ShapeVertex::from_xy(0.097996, -0.276531, color),
|
|
|
+ ShapeVertex::from_xy(0.096113, -0.257413, color),
|
|
|
+ ShapeVertex::from_xy(0.090537, -0.23903, color),
|
|
|
+ ShapeVertex::from_xy(0.081481, -0.222088, color),
|
|
|
+ ShapeVertex::from_xy(0.069294, -0.207238, color),
|
|
|
+ ShapeVertex::from_xy(0.054444, -0.195051, color),
|
|
|
+ ShapeVertex::from_xy(0.037501, -0.185995, color),
|
|
|
+ ShapeVertex::from_xy(0.019118, -0.180418, color),
|
|
|
+ ShapeVertex::from_xy(0.0, -0.178535, color),
|
|
|
+ ShapeVertex::from_xy(-0.019118, -0.180418, color),
|
|
|
+ ShapeVertex::from_xy(-0.037501, -0.185995, color),
|
|
|
+ ShapeVertex::from_xy(-0.054444, -0.195051, color),
|
|
|
+ ShapeVertex::from_xy(-0.069294, -0.207238, color),
|
|
|
+ ShapeVertex::from_xy(-0.081481, -0.222088, color),
|
|
|
+ ShapeVertex::from_xy(-0.090537, -0.23903, color),
|
|
|
+ ShapeVertex::from_xy(-0.096113, -0.257413, color),
|
|
|
+ ShapeVertex::from_xy(-0.097996, -0.276531, color),
|
|
|
+ ShapeVertex::from_xy(-0.096113, -0.295649, color),
|
|
|
+ ShapeVertex::from_xy(-0.090537, -0.314033, color),
|
|
|
+ ShapeVertex::from_xy(-0.081481, -0.330975, color),
|
|
|
+ ShapeVertex::from_xy(-0.069294, -0.345825, color),
|
|
|
+ ShapeVertex::from_xy(-0.054444, -0.358012, color),
|
|
|
+ ShapeVertex::from_xy(-0.037501, -0.367068, color),
|
|
|
+ ShapeVertex::from_xy(-0.019118, -0.372644, color),
|
|
|
+ ShapeVertex::from_xy(-0.0, -0.492595, color),
|
|
|
+ ShapeVertex::from_xy(0.042152, -0.488444, color),
|
|
|
+ ShapeVertex::from_xy(0.082684, -0.476149, color),
|
|
|
+ ShapeVertex::from_xy(0.120039, -0.456182, color),
|
|
|
+ ShapeVertex::from_xy(0.15278, -0.429312, color),
|
|
|
+ ShapeVertex::from_xy(0.179651, -0.39657, color),
|
|
|
+ ShapeVertex::from_xy(0.199617, -0.359215, color),
|
|
|
+ ShapeVertex::from_xy(0.211912, -0.318683, color),
|
|
|
+ ShapeVertex::from_xy(0.216064, -0.276531, color),
|
|
|
+ ShapeVertex::from_xy(0.211912, -0.234379, color),
|
|
|
+ ShapeVertex::from_xy(0.199617, -0.193847, color),
|
|
|
+ ShapeVertex::from_xy(0.179651, -0.156493, color),
|
|
|
+ ShapeVertex::from_xy(0.15278, -0.123751, color),
|
|
|
+ ShapeVertex::from_xy(0.120039, -0.096881, color),
|
|
|
+ ShapeVertex::from_xy(0.082684, -0.076914, color),
|
|
|
+ ShapeVertex::from_xy(0.042152, -0.064619, color),
|
|
|
+ ShapeVertex::from_xy(-0.0, -0.060467, color),
|
|
|
+ ShapeVertex::from_xy(-0.042152, -0.064619, color),
|
|
|
+ ShapeVertex::from_xy(-0.082684, -0.076914, color),
|
|
|
+ ShapeVertex::from_xy(-0.120039, -0.096881, color),
|
|
|
+ ShapeVertex::from_xy(-0.15278, -0.123751, color),
|
|
|
+ ShapeVertex::from_xy(-0.179651, -0.156493, color),
|
|
|
+ ShapeVertex::from_xy(-0.199617, -0.193847, color),
|
|
|
+ ShapeVertex::from_xy(-0.211912, -0.234379, color),
|
|
|
+ ShapeVertex::from_xy(-0.216064, -0.276531, color),
|
|
|
+ ShapeVertex::from_xy(-0.211912, -0.318683, color),
|
|
|
+ ShapeVertex::from_xy(-0.199617, -0.359215, color),
|
|
|
+ ShapeVertex::from_xy(-0.179651, -0.39657, color),
|
|
|
+ ShapeVertex::from_xy(-0.15278, -0.429312, color),
|
|
|
+ ShapeVertex::from_xy(-0.120039, -0.456182, color),
|
|
|
+ ShapeVertex::from_xy(-0.082684, -0.476149, color),
|
|
|
+ ShapeVertex::from_xy(-0.042152, -0.488444, color),
|
|
|
+ ShapeVertex::from_xy(0.0, 0.863409, color),
|
|
|
+ ShapeVertex::from_xy(-1.0, -0.863196, color),
|
|
|
+ ShapeVertex::from_xy(1.0, -0.863196, color),
|
|
|
+ ShapeVertex::from_xy(-0.441695, -0.276531, color),
|
|
|
+ ShapeVertex::from_xy(-0.391302, -0.350744, color),
|
|
|
+ ShapeVertex::from_xy(-0.403298, -0.217013, color),
|
|
|
+ ShapeVertex::from_xy(-0.403298, -0.33605, color),
|
|
|
+ ShapeVertex::from_xy(-0.356577, -0.159782, color),
|
|
|
+ ShapeVertex::from_xy(-0.356577, -0.393281, color),
|
|
|
+ ShapeVertex::from_xy(-0.306856, -0.107038, color),
|
|
|
+ ShapeVertex::from_xy(-0.306856, -0.446025, color),
|
|
|
+ ShapeVertex::from_xy(-0.189599, -0.022866, color),
|
|
|
+ ShapeVertex::from_xy(-0.189599, -0.530196, color),
|
|
|
+ ShapeVertex::from_xy(-0.059518, 0.022687, color),
|
|
|
+ ShapeVertex::from_xy(-0.059518, -0.57575, color),
|
|
|
+ ShapeVertex::from_xy(-0.131092, 0.005326, color),
|
|
|
+ ShapeVertex::from_xy(-0.131092, -0.558389, color),
|
|
|
+ ShapeVertex::from_xy(-0.252187, -0.060807, color),
|
|
|
+ ShapeVertex::from_xy(-0.252187, -0.492256, color),
|
|
|
+ ShapeVertex::from_xy(0.059518, 0.022687, color),
|
|
|
+ ShapeVertex::from_xy(0.059518, -0.57575, color),
|
|
|
+ ShapeVertex::from_xy(0.189599, -0.022866, color),
|
|
|
+ ShapeVertex::from_xy(0.189599, -0.530196, color),
|
|
|
+ ShapeVertex::from_xy(0.252187, -0.060807, color),
|
|
|
+ ShapeVertex::from_xy(0.131092, 0.005326, color),
|
|
|
+ ShapeVertex::from_xy(0.131092, -0.558389, color),
|
|
|
+ ShapeVertex::from_xy(0.306856, -0.107038, color),
|
|
|
+ ShapeVertex::from_xy(0.306856, -0.446025, color),
|
|
|
+ ShapeVertex::from_xy(0.441695, -0.276531, color),
|
|
|
+ ShapeVertex::from_xy(0.403298, -0.33605, color),
|
|
|
+ ShapeVertex::from_xy(0.403298, -0.217013, color),
|
|
|
+ ShapeVertex::from_xy(0.368573, -0.378586, color),
|
|
|
+ ShapeVertex::from_xy(0.356577, -0.393281, color),
|
|
|
+ ShapeVertex::from_xy(0.356577, -0.159782, color),
|
|
|
+ ShapeVertex::from_xy(0.252187, -0.492256, color),
|
|
|
+ ShapeVertex::from_xy(-0.0, -0.581612, color),
|
|
|
+ ShapeVertex::from_xy(-0.0, 0.028549, color),
|
|
|
+ ],
|
|
|
+ indices: vec![
|
|
|
+ 8, 41, 9, 22, 55, 23, 9, 42, 10, 24, 55, 56, 10, 43, 11, 24, 57, 25, 11, 44, 12, 25,
|
|
|
+ 58, 26, 12, 45, 13, 26, 59, 27, 13, 46, 14, 0, 33, 1, 27, 60, 28, 14, 47, 15, 1, 34, 2,
|
|
|
+ 28, 61, 29, 15, 48, 16, 2, 35, 3, 30, 61, 62, 16, 49, 17, 3, 36, 4, 30, 63, 31, 17, 50,
|
|
|
+ 18, 4, 37, 5, 31, 32, 0, 18, 51, 19, 5, 38, 6, 20, 51, 52, 6, 39, 7, 20, 53, 21, 7, 40,
|
|
|
+ 8, 22, 53, 54, 8, 40, 41, 22, 54, 55, 9, 41, 42, 24, 23, 55, 10, 42, 43, 24, 56, 57,
|
|
|
+ 11, 43, 44, 25, 57, 58, 12, 44, 45, 26, 58, 59, 13, 45, 46, 0, 32, 33, 27, 59, 60, 14,
|
|
|
+ 46, 47, 1, 33, 34, 28, 60, 61, 15, 47, 48, 2, 34, 35, 30, 29, 61, 16, 48, 49, 3, 35,
|
|
|
+ 36, 30, 62, 63, 17, 49, 50, 4, 36, 37, 31, 63, 32, 18, 50, 51, 5, 37, 38, 20, 19, 51,
|
|
|
+ 6, 38, 39, 20, 52, 53, 7, 39, 40, 22, 21, 53, 65, 78, 99, 64, 100, 77, 96, 95, 66, 65,
|
|
|
+ 68, 72, 65, 72, 74, 91, 96, 66, 98, 91, 66, 65, 74, 82, 65, 82, 76, 86, 98, 66, 89, 86,
|
|
|
+ 66, 65, 76, 80, 65, 80, 78, 89, 66, 84, 66, 65, 99, 84, 66, 99, 70, 68, 65, 66, 95, 93,
|
|
|
+ 66, 93, 92, 67, 70, 65, 69, 67, 65, 64, 66, 94, 66, 92, 94, 69, 65, 64, 71, 69, 64, 64,
|
|
|
+ 94, 97, 64, 97, 90, 73, 71, 64, 81, 73, 64, 64, 90, 87, 64, 87, 85, 75, 81, 64, 79, 75,
|
|
|
+ 64, 64, 85, 88, 64, 88, 83, 77, 79, 64, 64, 83, 100,
|
|
|
+ ],
|
|
|
+ }
|
|
|
+}
|