Crates.io | plutchik |
lib.rs | plutchik |
version | 0.2.0 |
source | src |
created_at | 2015-06-17 08:16:49.729206 |
updated_at | 2015-12-11 23:55:08.907714 |
description | A typification of Robert Plutchik's Wheel of Emotions. |
homepage | https://github.com/mitchmindtree/plutchik |
repository | https://github.com/mitchmindtree/plutchik.git |
max_upload_size | |
id | 2405 |
size | 13,506 |
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 = "*"