plottyfile done
This commit is contained in:
parent
71b156aa6f
commit
f59e1d4de8
13 changed files with 235 additions and 64 deletions
13
drv/dot.h
13
drv/dot.h
|
@ -2,24 +2,19 @@
|
|||
#define DOT_H
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
enum DotColor
|
||||
{
|
||||
PURPLE = 0,
|
||||
GREEN = 32,
|
||||
};
|
||||
#include <stdexcept>
|
||||
|
||||
class Dot
|
||||
{
|
||||
public:
|
||||
Dot(uint16_t x, uint16_t y, DotColor color);
|
||||
Dot(uint16_t x, uint16_t y, uint8_t curve);
|
||||
uint16_t getX(void) const;
|
||||
uint16_t getY(void) const;
|
||||
DotColor getColor(void) const;
|
||||
uint8_t getCurve(void) const;
|
||||
|
||||
private:
|
||||
uint16_t x, y;
|
||||
DotColor color;
|
||||
uint8_t curve;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue