plutchik
1.0.0
A small type representation of Robert Plutchik's "Wheel of Emotions".
Emotion
s (i.e. Emotion::Ecstasy
, Emotion::Terror
, etc).Wheel { radians: f32, weight: f32 }
representation.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 = "*"