|
| Avatar (Face *face) |
|
| Avatar (const Avatar &other)=default |
|
Avatar & | operator= (const Avatar &other)=default |
|
Face * | getFace () const |
|
ColorPalette | getColorPalette () const |
|
void | setColorPalette (ColorPalette cp) |
|
void | setFace (Face *face) |
|
void | init (int colorDepth=1) |
|
Expression | getExpression () |
|
void | setExpression (Expression exp) |
|
void | setBreath (float f) |
|
float | getBreath () |
|
void | setRightGaze (float vertical, float horizontal) |
|
void | getRightGaze (float *vertical, float *horizontal) |
|
void | setLeftGaze (float vertical, float horizontal) |
|
void | getLeftGaze (float *vertical, float *horizontal) |
|
void | getGaze (float *vertical, float *horizontal) |
| Get the Gaze of Avatar. More...
|
|
void | setEyeOpenRatio (float ratio) |
|
void | setRightEyeOpenRatio (float ratio) |
|
float | getRightEyeOpenRatio () |
|
void | setLeftEyeOpenRatio (float ratio) |
|
float | getLeftEyeOpenRatio () |
|
void | setIsAutoBlink (bool b) |
|
bool | getIsAutoBlink () |
|
void | setMouthOpenRatio (float ratio) |
|
void | setSpeechText (const char *speechText) |
|
void | setSpeechFont (const lgfx::IFont *speechFont) |
|
void | setRotation (float radian) |
|
void | setPosition (int top, int left) |
|
void | setScale (float scale) |
|
void | draw (void) |
|
bool | isDrawing () |
|
void | start (int colorDepth=1) |
|
void | stop () |
|
void | addTask (TaskFunction_t f, const char *name, const uint32_t stack_size=2048, UBaseType_t priority=4, TaskHandle_t *const task_handle=NULL, const BaseType_t core_id=APP_CPU_NUM) |
|
void | suspend () |
|
void | resume () |
|
void | setBatteryIcon (bool iconStatus) |
|
void | setBatteryStatus (bool isCharging, int32_t batteryLevel) |
|
◆ getGaze()
void m5avatar::Avatar::getGaze |
( |
float * |
vertical, |
|
|
float * |
horizontal |
|
) |
| |
Get the Gaze of Avatar.
[warning] this function return the mean gaze of left gaze & right gaze This is not the gaze representing avatar's direction of awareness
- Parameters
-
vertical | cache for vertical value. this value will be overwritten by this method. |
horizontal | cache for horizontal value. this value will be overwritten by this method. |
The documentation for this class was generated from the following files: