Use Color type wherever possible.

This commit is contained in:
2018-04-03 19:22:14 +02:00
parent f62c2859e3
commit d4d4d6d431
5 changed files with 32 additions and 25 deletions

View File

@@ -13,7 +13,6 @@ namespace fmri
: public Animation
{
public:
typedef std::array<float, 3> Color;
typedef std::function<Color(float)> ColoringFunction;
ActivityAnimation(
@@ -28,7 +27,7 @@ namespace fmri
private:
std::size_t bufferLength;
std::vector<std::array<float, 3>> colorBuf;
std::vector<Color> colorBuf;
std::vector<float> startingPos;
std::vector<float> delta;
std::vector<int> lineIndices;