[Ti-Basic] Pt-Change not working

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
Clordio
New Member
Posts: 14
Joined: Thu 22 Feb, 2007 6:28 am

[Ti-Basic] Pt-Change not working

Post by Clordio »

I'm using a Ti-83 plus and the pt-change function doesn't work. This is my code

Code: Select all

:AxesOff
:FnOff
:0->Xmin
:94->Xmax
:0->ymax
:-62->ymin
:ClrDraw
:Text(29,23,"HIGHLIGHTED
:For(X,22,70
:For(Y,-35,-29
:Pt-Change(X,Y
:End
:End
So does anybody know how to get my pt-change function working?

Thanks all.
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

try pixelchange(y,x ofcourse the coordinates should use the pixel-system then.. it's more accurate and doesn't require you to change the window-variables.

that y-first is no typo, for pixel operation the y comes first (silly TI..)

there is also a bug with ClrDraw in some versions of the TI OS, if it is the first command in a program some variables may get destroyed/remain unassigned at any point in the program.


Pt-Change should world, but the coordinates must be right and out-of-range coordinates won't generate errors so they are hard to find.
Clordio
New Member
Posts: 14
Joined: Thu 22 Feb, 2007 6:28 am

Post by Clordio »

pxl-change works great. I guess I'll just go without pt-change then. Thanks KH.
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

You're welcome C ;), the Pt commands have never been very helpful to me except in a custom grapher which was quite pointless anyway.

when working with pixels it might be good to know you can store 8 of them in a byte, and you can use my chars3 to get all 1 byte tokens (you'll have to use a couple of 2byte tokens as well)
that way you could store parts of a picture in the smallest possible format.

Code: Select all

InString(str1,sum({1pxl-test(y,x),2pxl-test(y,x+1),4pxl-test(y,x+2...
where str1 is a string containing all 1-byte tokens and some 2-byte tokens to make it 256 characters long.
Post Reply