stackchan-display
Loading...
Searching...
No Matches
Mouthes.h
1
#pragma once
2
3
#include "FacialDrawable.h"
4
namespace
stackchan::display
5
{
6
class
BaseMouth
:
public
FacialDrawable
7
{
8
protected
:
9
uint8_t breath_amplitude_ = 5;
// in pixels
10
11
public
:
12
using
FacialDrawable::FacialDrawable;
13
};
14
15
// M5StackChan default face
16
class
Mouth
:
public
BaseMouth
17
{
18
protected
:
19
public
:
20
using
BaseMouth::BaseMouth;
21
22
virtual
void
draw(M5Canvas &canvas,
ExpressionWeight
&expression_weight,
ColorPalette
&palette)
override
;
23
// virtual void update() override;
24
};
25
26
class
OmegaMouth
:
public
BaseMouth
27
{
28
// https://github.com/botamochi6277/m5stack-avatar/blob/b2c368c92a05d5a6b405e554c7450dba6db3247d/src/Mouths.cpp#L40
29
30
public
:
31
using
BaseMouth::BaseMouth;
32
virtual
void
draw(M5Canvas &canvas,
ExpressionWeight
&expression_weight,
ColorPalette
&palette)
override
;
33
};
34
}
// namespace stackchan::display
stackchan::display::BaseMouth
Definition
Mouthes.h:7
stackchan::display::ColorPalette
Definition
ColorPalette.h:48
stackchan::display::ExpressionWeight
Definition
Expression.h:39
stackchan::display::FacialDrawable
Definition
FacialDrawable.h:11
stackchan::display::Mouth
Definition
Mouthes.h:17
stackchan::display::OmegaMouth
Definition
Mouthes.h:27
src
faces
Mouthes.h
Generated by
1.12.0