#emotion #aesthetic #tags #feeling

plutchik

A typification of Robert Plutchik's Wheel of Emotions

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

Apache-2.0/MIT

11KB
242 lines

plutchik Build Status

A small type representation of Robert Plutchik's "Wheel of Emotions".

  • Use labeled Emotions (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);

Image of the Wheel of Emotions

For a demo, see the example.

You can add it to your project by adding this to your Cargo.toml:

[dependencies]
plutchik = "*"

Dependencies

~315KB