1.0.0.0 - First full release!

This commit is contained in:
61616
2022-05-20 16:46:13 -04:00
parent 8838f763ce
commit f81325dffd
25 changed files with 1065 additions and 1072 deletions

View File

@@ -0,0 +1,27 @@
class MathDisplay {
/*
Displays a B12Expression
*/
PVector pos;
B12Expression ex;
MathDisplay(B12Expression _ex){
ex = _ex;
pos = new PVector(0,0);
}
PVector getPos(){ return pos; }
MathDisplay setPos(PVector _pos){ pos = _pos; return this;}
void display(){
pushMatrix();
translate(pos.x,pos.y);
int count = 0;
for(int i = ex.length() - 1; i >= 0 ; i--){
ex.getDigit(i).setPos((-12 * (count+1)), 0);
ex.getDigit(i).display();
count++;
}
popMatrix();
}
}