mirror of
https://github.com/opus-tango/B12NumbersV3.git
synced 2026-03-20 12:05:21 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19d7c18233 | ||
|
|
84aa477af9 | ||
|
|
0a7a63c3ba | ||
|
|
1a90ebec25 |
@@ -1,3 +1,16 @@
|
|||||||
|
/**
|
||||||
|
* Nayan Sawyer ns9573@bard.edu
|
||||||
|
* May 21 2022
|
||||||
|
* CMSC 141
|
||||||
|
* Final Project: Base 12 Toolkit
|
||||||
|
*
|
||||||
|
* Comments/Reflections: The calculator uses B12Expression, MathPad, B12Button, and MathDisplay.
|
||||||
|
* The clock app uses Clock, Stopwatch, Timer, and TimeDisplay
|
||||||
|
*
|
||||||
|
* Collaboration Statement: I used the processing docs, method relay code by Quark - see https://forum.processing.org/two/discussion/13093/how-to-call-function-by-string-content.html
|
||||||
|
* and the exp4j library see - https://www.objecthunter.net/exp4j/index.html
|
||||||
|
*/
|
||||||
|
|
||||||
import net.objecthunter.exp4j.*; // Math expression evaluation library
|
import net.objecthunter.exp4j.*; // Math expression evaluation library
|
||||||
|
|
||||||
// B12NumbersV3 //
|
// B12NumbersV3 //
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class MathPad{
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void initialize(){
|
private void initialize(){
|
||||||
buttons = new Button[0];
|
buttons = new Button[0];
|
||||||
// Create numpad buttons
|
// Create numpad buttons
|
||||||
for(int i = 0; i < 12; i++){
|
for(int i = 0; i < 12; i++){
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class Timer{
|
|||||||
Timer setPos(PVector _pos){pos = _pos.copy(); initialize(); return this;}
|
Timer setPos(PVector _pos){pos = _pos.copy(); initialize(); return this;}
|
||||||
Timer setPos(float x, float y){pos = new PVector(x,y); initialize(); return this;}
|
Timer setPos(float x, float y){pos = new PVector(x,y); initialize(); return this;}
|
||||||
|
|
||||||
void initialize(){
|
private void initialize(){
|
||||||
buttons = new Button[0];
|
buttons = new Button[0];
|
||||||
td.setPos(pos.x + 13*4 + 2,pos.y-2);
|
td.setPos(pos.x + 13*4 + 2,pos.y-2);
|
||||||
// Create numpad buttons
|
// Create numpad buttons
|
||||||
@@ -119,11 +119,11 @@ class Timer{
|
|||||||
colorMode(RGB,255);
|
colorMode(RGB,255);
|
||||||
fill(255,0,0);
|
fill(255,0,0);
|
||||||
rectMode(CORNERS);
|
rectMode(CORNERS);
|
||||||
rect(-13*5,-20,13*5,0);
|
rect(pos.x - 13*5,pos.y - 20,pos.x + 13*5,pos.y);
|
||||||
fill(0);
|
fill(0);
|
||||||
textSize(16);
|
textSize(16);
|
||||||
textAlign(CENTER,BOTTOM);
|
textAlign(CENTER,BOTTOM);
|
||||||
text("Timer Done!",0,0);
|
text("Timer Done!",pos.x,pos.y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Beta version of a clock in base 12.
|
Beta version of a clock in base 12.
|
||||||
by Nayan Sawyer
|
by Nayan Sawyer
|
||||||
started Mar 2022
|
started Mar 2022
|
||||||
version 1.0.0.0 May 20 2022
|
version 1.0.0.1 May 20 2022
|
||||||
|
|
||||||
Characters are a variation of Kaktovik Inupiaq numerals
|
Characters are a variation of Kaktovik Inupiaq numerals
|
||||||
reversed and in base 12 instead of 20. I take no credit
|
reversed and in base 12 instead of 20. I take no credit
|
||||||
@@ -28,6 +28,12 @@
|
|||||||
- Time48 does not check its inputs in some constructors
|
- Time48 does not check its inputs in some constructors
|
||||||
- renderPriority in Button is only half implemented
|
- renderPriority in Button is only half implemented
|
||||||
- negative signs when timer ends (not urgent)
|
- negative signs when timer ends (not urgent)
|
||||||
|
- B12Digit.setValue() does not check input and only accepts ints
|
||||||
|
- B12Digit.getValue() returns int not byte
|
||||||
|
|
||||||
|
changelog 1.0.0.1
|
||||||
|
- Some bug fixes, made more things private, and fixed
|
||||||
|
timer
|
||||||
|
|
||||||
changelog 1.0.0.0
|
changelog 1.0.0.0
|
||||||
- Finished project to fully working state. Still lots of
|
- Finished project to fully working state. Still lots of
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
# B12NumbersBeta1
|
# B12NumbersV3
|
||||||
|
Release version 1.0.0.0 now available! see [releases](https://github.com/GShadow5/B12NumbersBeta1/releases) for a download
|
||||||
|
|
||||||
The characters are designed after the ingenious Kaktovik Iñupiaq numerals, which were created by a group of middle schoolers in Kaktovik Alaska, to represent the base 20 counting system in Iñupiaq, their Inuit language.
|
The characters are designed after the ingenious Kaktovik Iñupiaq numerals, which were created by a group of middle schoolers in Kaktovik Alaska, to represent the base 20 counting system in Iñupiaq, their Inuit language.
|
||||||
|
|
||||||
I take no credit for the design of the characters. I have merely co-opted the design for the development of this project because it is elegant and convenient to use for compound base number systems, and looks nothing like the Arabic numeral system.
|
I take no credit for the design of the characters. I have merely co-opted the design for the development of this project because it is elegant and convenient to use for compound base number systems, and looks nothing like the Arabic numeral system.
|
||||||
@@ -11,6 +13,4 @@ The time system is now complete with robust syncing and offset features. The bas
|
|||||||
Minutes: there are now 48 minutes in an hour
|
Minutes: there are now 48 minutes in an hour
|
||||||
Seconds: there are now 48 seconds in a minute
|
Seconds: there are now 48 seconds in a minute
|
||||||
|
|
||||||
The number system is such that horizontal ticks on top represent multiples of four, and vertical ticks represent multiples of one. Decimal 11 is 2 horizontal ticks, and 3 vertical ticks. However, since the project is in an alpha state, I will not go into great detail at this point.
|
The number system is such that horizontal ticks on top represent multiples of four, and vertical ticks represent multiples of one. Decimal 11 is 2 horizontal ticks, and 3 vertical ticks.
|
||||||
|
|
||||||
The calculator input system is now working. For an early beta demo see [releases](https://github.com/GShadow5/B12NumbersBeta1/releases)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user