plottyfile done

This commit is contained in:
Tristan Krause 2019-03-28 09:38:35 +01:00
parent 71b156aa6f
commit f59e1d4de8
13 changed files with 235 additions and 64 deletions

View file

@ -1,7 +1,9 @@
#include "dot.h"
Dot::Dot(uint16_t x, uint16_t y, DotColor color) : x(x), y(y), color(color)
Dot::Dot(uint16_t x, uint16_t y, uint8_t curve) : x(x), y(y), curve(curve)
{
if(curve >= 64)
throw std::range_error("Kurvenindex muss im Bereich [0, 63] liegen");
}
uint16_t Dot::getX() const
@ -14,7 +16,7 @@ uint16_t Dot::getY() const
return y;
}
DotColor Dot::getColor(void) const
uint8_t Dot::getCurve(void) const
{
return color;
return curve;
}