emoji_sel.rs
1 /* This file is part of DarkFi (https://dark.fi) 2 * 3 * Copyright (C) 2020-2025 Dyne.org foundation 4 * 5 * This program is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU Affero General Public License as 7 * published by the Free Software Foundation, either version 3 of the 8 * License, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU Affero General Public License for more details. 14 * 15 * You should have received a copy of the GNU Affero General Public License 16 * along with this program. If not, see <https://www.gnu.org/licenses/>. 17 */ 18 19 use crate::{ 20 mesh::Color, 21 ui::{ShapeVertex, VectorShape}, 22 }; 23 pub fn create_emoji_selector(color: Color) -> VectorShape { 24 VectorShape { 25 verts: vec![ 26 ShapeVertex::from_xy(-0.299137, -0.077869, color), 27 ShapeVertex::from_xy(-0.247956, -0.006422, color), 28 ShapeVertex::from_xy(-0.258195, -0.252576, color), 29 ShapeVertex::from_xy(-0.192966, -0.231704, color), 30 ShapeVertex::from_xy(-0.234915, -0.41554, color), 31 ShapeVertex::from_xy(-0.164066, -0.441229, color), 32 ShapeVertex::from_xy(-0.408315, -0.607404, color), 33 ShapeVertex::from_xy(-0.377605, -0.67564, color), 34 ShapeVertex::from_xy(-0.67564, -0.615431, color), 35 ShapeVertex::from_xy(-0.705138, -0.685273, color), 36 ShapeVertex::from_xy(-0.910051, -0.364965, color), 37 ShapeVertex::from_xy(-0.983702, -0.390654, color), 38 ShapeVertex::from_xy(-0.861884, -0.187551, color), 39 ShapeVertex::from_xy(-0.941957, -0.212437, color), 40 ShapeVertex::from_xy(-0.816929, -0.085598, color), 41 ShapeVertex::from_xy(-0.871313, -0.035826, color), 42 ShapeVertex::from_xy(-0.75672, -0.04867, color), 43 ShapeVertex::from_xy(-0.809499, -0.004518, color), 44 ShapeVertex::from_xy(-0.750298, -0.045459, color), 45 ShapeVertex::from_xy(-0.796655, 0.025185, color), 46 ShapeVertex::from_xy(-0.342487, -0.045459, color), 47 ShapeVertex::from_xy(-0.302946, 0.02358, color), 48 ShapeVertex::from_xy(-0.324826, -0.073557, color), 49 ShapeVertex::from_xy(-0.285285, -0.004518, color), 50 ShapeVertex::from_xy(0.294399, -0.075557, color), 51 ShapeVertex::from_xy(0.243218, -0.00411, color), 52 ShapeVertex::from_xy(0.253458, -0.250264, color), 53 ShapeVertex::from_xy(0.188228, -0.229392, color), 54 ShapeVertex::from_xy(0.230177, -0.413228, color), 55 ShapeVertex::from_xy(0.159328, -0.438917, color), 56 ShapeVertex::from_xy(0.403577, -0.605092, color), 57 ShapeVertex::from_xy(0.372867, -0.673328, color), 58 ShapeVertex::from_xy(0.670902, -0.613119, color), 59 ShapeVertex::from_xy(0.7004, -0.682961, color), 60 ShapeVertex::from_xy(0.905313, -0.362653, color), 61 ShapeVertex::from_xy(0.978964, -0.388342, color), 62 ShapeVertex::from_xy(0.857147, -0.185239, color), 63 ShapeVertex::from_xy(0.93722, -0.210125, color), 64 ShapeVertex::from_xy(0.812191, -0.083286, color), 65 ShapeVertex::from_xy(0.866575, -0.033514, color), 66 ShapeVertex::from_xy(0.751983, -0.046358, color), 67 ShapeVertex::from_xy(0.804761, -0.002206, color), 68 ShapeVertex::from_xy(0.74556, -0.043147, color), 69 ShapeVertex::from_xy(0.791917, 0.027497, color), 70 ShapeVertex::from_xy(0.337749, -0.043147, color), 71 ShapeVertex::from_xy(0.298209, 0.025892, color), 72 ShapeVertex::from_xy(0.320088, -0.071245, color), 73 ShapeVertex::from_xy(0.280548, -0.002206, color), 74 ShapeVertex::from_xy(-0.260481, 0.280672, color), 75 ShapeVertex::from_xy(-0.302414, 0.210381, color), 76 ShapeVertex::from_xy(-0.312982, 0.409139, color), 77 ShapeVertex::from_xy(-0.378212, 0.390579, color), 78 ShapeVertex::from_xy(-0.348979, 0.551295, color), 79 ShapeVertex::from_xy(-0.423296, 0.571204, color), 80 ShapeVertex::from_xy(-0.115467, 0.815986, color), 81 ShapeVertex::from_xy(-0.146177, 0.883066, color), 82 ShapeVertex::from_xy(0.11371, 0.81361, color), 83 ShapeVertex::from_xy(0.144364, 0.885764, color), 84 ShapeVertex::from_xy(0.342181, 0.557428, color), 85 ShapeVertex::from_xy(0.419043, 0.572681, color), 86 ShapeVertex::from_xy(0.31395, 0.417031, color), 87 ShapeVertex::from_xy(0.378413, 0.390629, color), 88 ShapeVertex::from_xy(0.256172, 0.276612, color), 89 ShapeVertex::from_xy(0.299407, 0.207885, color), 90 ShapeVertex::from_xy(0.204883, 0.276478, color), 91 ShapeVertex::from_xy(0.25376, 0.206681, color), 92 ShapeVertex::from_xy(0.192886, 0.245393, color), 93 ShapeVertex::from_xy(0.245375, 0.175863, color), 94 ShapeVertex::from_xy(-0.196323, 0.24595, color), 95 ShapeVertex::from_xy(-0.246267, 0.175755, color), 96 ShapeVertex::from_xy(-0.20358, 0.278671, color), 97 ShapeVertex::from_xy(-0.259304, 0.205008, color), 98 ShapeVertex::from_xy(-0.288443, 0.349093, color), 99 ShapeVertex::from_xy(-0.350323, 0.309817, color), 100 ], 101 indices: vec![ 102 0, 3, 2, 3, 4, 2, 5, 6, 4, 7, 8, 6, 9, 10, 8, 10, 13, 12, 12, 15, 14, 14, 17, 16, 17, 103 18, 16, 18, 21, 20, 20, 23, 22, 23, 0, 22, 24, 27, 26, 27, 28, 26, 29, 30, 28, 31, 32, 104 30, 33, 34, 32, 34, 37, 36, 36, 39, 38, 38, 41, 40, 41, 42, 40, 42, 45, 44, 44, 47, 46, 105 47, 24, 46, 48, 73, 72, 51, 52, 50, 52, 55, 54, 54, 57, 56, 57, 58, 56, 58, 61, 60, 61, 106 62, 60, 62, 65, 64, 65, 66, 64, 66, 69, 68, 68, 71, 70, 71, 48, 70, 72, 51, 50, 0, 1, 107 3, 3, 5, 4, 5, 7, 6, 7, 9, 8, 9, 11, 10, 10, 11, 13, 12, 13, 15, 14, 15, 17, 17, 19, 108 18, 18, 19, 21, 20, 21, 23, 23, 1, 0, 24, 25, 27, 27, 29, 28, 29, 31, 30, 31, 33, 32, 109 33, 35, 34, 34, 35, 37, 36, 37, 39, 38, 39, 41, 41, 43, 42, 42, 43, 45, 44, 45, 47, 47, 110 25, 24, 48, 49, 73, 51, 53, 52, 52, 53, 55, 54, 55, 57, 57, 59, 58, 58, 59, 61, 61, 63, 111 62, 62, 63, 65, 65, 67, 66, 66, 67, 69, 68, 69, 71, 71, 49, 48, 72, 73, 51, 112 ], 113 } 114 }