|
stackchan-display
|
Base class for Eye, draw nothing. More...
#include <Eyes.h>
Public Member Functions | |
| BaseEye (int16_t x, int16_t y, int16_t width, int16_t height, bool is_left) | |
Public Member Functions inherited from stackchan::display::FacialDrawable | |
| virtual void | draw (M5Canvas &canvas, ExpressionWeight &expression_weight, ColorPalette &palette) |
| Drawable ()=default | |
| Drawable (int16_t x, int16_t y, int16_t width, int16_t height) | |
Public Member Functions inherited from stackchan::display::Drawable | |
| Drawable (int16_t x, int16_t y, int16_t width, int16_t height) | |
| virtual void | setPosition (const m5::Vector2i &position) |
| set primary position | |
| virtual m5::Vector2i & | getPosition () |
| virtual void | setRotation (int rotation) |
| virtual int | getRotation () |
| Get the Rotation in degrees, counter-clockwise. | |
| virtual void | setSize (const m5::Size2i &size) |
| virtual m5::Size2i & | getSize () |
| virtual void | setVisible (bool visible) |
| virtual bool | getVisible () |
| virtual bool | isVisible () |
| virtual void | setIgnoreExpression (bool ignore) |
| virtual bool | getIgnoreExpression () |
| virtual bool | isIgnoreExpression () |
| virtual void | draw (M5Canvas &canvas) |
| virtual void | update () |
Protected Member Functions | |
| void | updateGaze (ExpressionWeight &weight, uint16_t range) |
| void | updateSaccade (ExpressionWeight &expression_weight) |
Protected Attributes | |
| bool | is_left_ |
| m5::Vector2i | gaze_ {0, 0} |
| m5::Vector2i | iris_position_ {0, 0} |
| unsigned long | milli_sec_ = 0 |
| unsigned long | last_saccade_millis_ = 0 |
| uint32_t | saccade_interval_ = 1000 |
| m5::Vector2i | saccade_noise_ = m5::Vector2i() |
Protected Attributes inherited from stackchan::display::Drawable | |
| m5::Vector2i | position_ {0, 0} |
| int | rotation_ = 0 |
| m5::Size2i | size_ {100, 100} |
| bool | visible_ = true |
| bool | ignore_expression_ = false |
Base class for Eye, draw nothing.