Skip to content
A typification of Robert Plutchik's "Wheel of Emotions".
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src
.gitignore
.travis.yml
Cargo.toml
README.md

README.md

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 = "*"
You can’t perform that action at this time.