plutchik

Crates.ioplutchik
lib.rsplutchik
version0.2.0
sourcesrc
created_at2015-06-17 08:16:49.729206
updated_at2015-12-11 23:55:08.907714
descriptionA typification of Robert Plutchik's Wheel of Emotions.
homepagehttps://github.com/mitchmindtree/plutchik
repositoryhttps://github.com/mitchmindtree/plutchik.git
max_upload_size
id2405
size13,506
(mitchmindtree)

documentation

README

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 = "*"
Commit count: 14

cargo fmt