add more smiley components
This commit is contained in:
parent
f0c0ce7dd1
commit
1fd7f15a3b
@ -274,6 +274,9 @@ pub fn smile(id: Uuid) -> Result<Uuid, Error> {
|
||||
("M0,0 L50,25 M50,0 L0,25", 1), // x
|
||||
("M0,0 L50,12.5 L0,25", 1), // >
|
||||
("M50,0 L0,12.5 L50,25", 1), // <
|
||||
("M0,0 L0,25 L50,25", 1), // L
|
||||
("M50,0 L50,25 L0,25", 1), // J
|
||||
("M12.5,0 L37.5,0 L37.5,25 L12.5,25 L12.5,0", 1), // o
|
||||
];
|
||||
let eye_left_dist = WeightedIndex::new(eyes_left.iter().map(|v| v.1))?;
|
||||
|
||||
@ -283,10 +286,13 @@ pub fn smile(id: Uuid) -> Result<Uuid, Error> {
|
||||
("M150,0 L175,25 L200,0", 1), // v
|
||||
("M150,25 L175,0 L200,25", 1), // ^
|
||||
("M150,0 L200,0", 1), // -
|
||||
("M150,25 L200,25", 1), // -
|
||||
("M150,25 L200,25", 1), // _
|
||||
("M150,0 L200,25 M200,0 L150,25", 1), // x
|
||||
("M150,0 L200,12.5 L150,25", 1), // >
|
||||
("M200,0 L150,12.5 L200,25", 1), // <
|
||||
("M150,0 L150,25 L200,25", 1), // L
|
||||
("M200,0 L200,25 L150,25", 1), // J
|
||||
("M162.5,0 L187.5,0 L187.5,25 L162.5,25 L162.5,0", 1), // o
|
||||
];
|
||||
let eye_right_dist= WeightedIndex::new(eyes_right.iter().map(|v| v.1))?;
|
||||
|
||||
@ -299,6 +305,11 @@ pub fn smile(id: Uuid) -> Result<Uuid, Error> {
|
||||
("M50,75 L75,75 L75,87.5 M75,75 L125,75 L125,87.5 M125,75 L150,75", 1), // vamp
|
||||
("M75,75 L125,75 L125,100 L75,100 L75,75", 1), // o
|
||||
("M50,75 L150,100 M150,75 L50,100", 1), // x
|
||||
("M50,75 L150,75 L150,100 L125,100 L125,75", 1), // p
|
||||
("M50,75 L50,100 L150,100 L150,75", 1), // u
|
||||
("M50,100 L50,75 L150,75 L150,100", 1), // n
|
||||
("M50,75 L50,100 L150,75 L150,100", 1), // Z
|
||||
("M50,87.5 L100,75 L150,87.5 L100,100 L50,87.5", 1), // Z
|
||||
];
|
||||
let mouth_dist = WeightedIndex::new(mouths.iter().map(|v| v.1))?;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user