4 releases
Uses old Rust 2015
0.2.0 | Oct 21, 2015 |
---|---|
0.1.2 | Jun 17, 2015 |
0.1.1 | Jun 17, 2015 |
0.1.0 | Jun 17, 2015 |
#5 in #emotion
11KB
242 lines
plutchik
A small type representation of Robert Plutchik's "Wheel of Emotions".
- Use labeled
Emotion
s (i.e.Emotion::Ecstasy
,Emotion::Terror
, etc). - Design custom emotions using the
Wheel { radians: f32, weight: f32 }
representation. - Find the difference between two emotions (the magnitude of the vector that separates them on the Wheel).
- Find the mean emotion of multiple given emotions i.e.
assert!(Wheel::mean(&[Serenity, Acceptance, Joy, Trust]).closest_emotion() == Love);
For a demo, see the example.
You can add it to your project by adding this to your Cargo.toml:
[dependencies]
plutchik = "*"
Dependencies
~315KB