moved spark files to spark branch

This commit is contained in:
l0ner 2014-04-19 21:09:03 +00:00
parent ea22ccd63f
commit af8c544653
2 changed files with 0 additions and 29 deletions

@ -1,22 +0,0 @@
#include <string>
#include <cstring>
#include "spark.h"
char getSparkByPrecentage(unsigned value) {
char ticks = " ▁▂▃▄▅▆▇█";
unsigned tickVal = (float(value) / 9);
return ticks[tickVal];
}
char getSparkByValue(unsigned value, unsigned max) {
char ticks = " ▁▂▃▄▅▆▇█";
unsigned tickVal = (float(value) / float(max) * 9);
return ticks[tickVal];
}

@ -1,7 +0,0 @@
#ifndef SPARK_H_
#define SPARK_H_
char * getSparkByPrecentage(unsigned);
char * getSparkByValue(unsigned, unsigned);
#endif