Introduction
TI-BASIC is the built-in program language that comes with the TI-83/84+ calculators
Optional Resources
1. TI-83 Plus Flash Debugger -> for running programs
2. TI Graph link -> For writing & saving programs
-or-
a TI-83/84 Plus calculator -> writes and runs programs
Graphics
Graphics are very important when it comes to programming. Good graphics make your program appealing, bad graphics make it not appealing. This tutorial will cover the basics of using graphics functions with TI-BASIC.
Most commonly used graphics functions:
Code:Line( PxlOn( PxlOff( PtOn( PtOff( ClrDraw
Note: For graphics I recommend setting the Window dimensions to the following:
Xmin=0
Ymin=0
Xmax=94
Ymax=62
Line:
Syntax: Line(x1,y1,x2,y2[, N]
To draw a black line from bottom left of screen to top right (only with the previousy listed window dimensions):
For a white line:Code::Line(0,0,94,62
To fill the screen one line at a time, from the bottom up:Code::Line(0,0,94,62,0
Line( is dependent on what you set your window dimensions to.Code::For(A,0,62 :Line(0,A,94,A :End
PxlOn( & PxlOff(:
Syntax: PxlOn(y,x
Syntax: PxlOff(y,x
y starts from the top, x from the left
y and x for PxlOn/Off( do NOT depend on the window dimensions.
PtOn( & PtOff(:
Syntax: PtOn(x,y
Syntax: PtOff(x,y
These are window dependent.
ClrDraw:
Quickly clears the whole draw screen
Challenge:
Create code that fills the screen only using For( loops and PxlOn(.
Last edited by exfyre; 08-31-2009 at 05:58 PM.
Now it is getting interesting. How about some screenshots?
+rep
+rep![]()
Will do ASAP. I let a friend borrow my TI-84 at school & forgot to get it back from him, and my computer is getting a "Can't run 16-bit Windows application Error" when I try to use the TI-Graphlink (which worked a few months ago, but for some reason isn't working now.) If I remember Monday, when I get back from school I'll try to add some screenies to this.
^bump^
added an animated graphic showing one of the examples.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks