- CalcText BASIC, a script to simplify text programs
- 06 Dec 2023 06:24:43 pm
- Last edited by reptile23 on 06 Dec 2023 07:19:19 pm; edited 2 times in total
Introducing CalcText BASIC
Hi guys, I've been working on a project the last couple of days that ought to make writing text programs a little easier.
Basically, this allows you to easily write a program in TI-BASIC that displays text of the graph screen, without having to worry about running out of space space on the line or page. Currently just for the TI-84+ CE, a I've started working on a version for the TI-83/84+, though without owning one, won't be able to test (shouldn't be too hard though). The goal of CalcText is to be easy to use on the default settings, but highly customizable.
Repo at: https://github.com/ThroneUnknown/CalcText-BASIC
Note: CalcText requires Python 3.6+ to run which can be downloaded from www.python.org or you can use an online version
Basic Syntax (assuming default settings)
(y,x) Changes the position of the next text in pixels (see next command) to these coordinates. Can add + or minus before a number to increment instead of setting, or leave blank to not change number at all, eg. (,+3). Note that this coordinate is from the top left corner.
,insert text here Would return Text(x,y,"insert text here"
;;; Triggers the new page code immediately
,,, Triggers the new line code immediately
COLOR Just writing the name of the color will convert it into TextColor(color
More advanced commands can be found in README.txt
To run, syntax is python calctext.py [inputfile] [outputfile] in the command line.
Supported characters:
Anything that can be typed on the calculator with the exception to superscripts, subscripts, and the Greek characters (θ is supported though).
Let me know what features you would like added next, and have fun!
Hi guys, I've been working on a project the last couple of days that ought to make writing text programs a little easier.
Basically, this allows you to easily write a program in TI-BASIC that displays text of the graph screen, without having to worry about running out of space space on the line or page. Currently just for the TI-84+ CE, a I've started working on a version for the TI-83/84+, though without owning one, won't be able to test (shouldn't be too hard though). The goal of CalcText is to be easy to use on the default settings, but highly customizable.
Repo at: https://github.com/ThroneUnknown/CalcText-BASIC
Note: CalcText requires Python 3.6+ to run which can be downloaded from www.python.org or you can use an online version
Basic Syntax (assuming default settings)
(y,x) Changes the position of the next text in pixels (see next command) to these coordinates. Can add + or minus before a number to increment instead of setting, or leave blank to not change number at all, eg. (,+3). Note that this coordinate is from the top left corner.
,insert text here Would return Text(x,y,"insert text here"
;;; Triggers the new page code immediately
,,, Triggers the new line code immediately
COLOR Just writing the name of the color will convert it into TextColor(color
More advanced commands can be found in README.txt
To run, syntax is python calctext.py [inputfile] [outputfile] in the command line.
Supported characters:
Anything that can be typed on the calculator with the exception to superscripts, subscripts, and the Greek characters (θ is supported though).
Let me know what features you would like added next, and have fun!