Omnimaga
Calculator Community => TI Calculators => Axe => Topic started by: _player1537 on November 02, 2010, 06:15:16 pm
-
Been a while since I played with Axe, but I seem to recall a
Pxl-On(Y*256+X)
command. But when I just checked (Axe 4.1 [upgrading soon]) it gave me an error argument. Is this still here?
Also, somewhat along with my previous question, can/will there be a Line(Y*256A+X,y2*256+x2)
command?
-
For Pxl-On, from what I can see, it has to follow this format:
Pxl-On(X-coordinate,Y-coordinate)
I think there's an output command (for the homescreen) that uses a format kind of like that:
Output(X)
Description: The cursor moves to the cursor position (X/256,X%256)
Not sure why you would want a line command like that - seems a little complicated compared to the one already existent.
-
I think it used to take up a few less bytes, but Axe is now auto-calculating the single value, so it's pretty much pointless now.
-
I don't think it would be pointless. The reason I asked is because for Minigolf, I was hoping to be able to use one simple function (GP: Get Point) and just call it like:
Pxl-On(Sub(GP,x,y,angle,length))
-
Oh, I see. But there's no Pxl-On([pointer to sprite]) command, so how would that help?
EDIT: I don't remember any command that does that... Maybe you're thinking of Output(P) or Text(P)?
-
Erm, sorry, but what did you mean? Pxl-On is for just pixels, no? Why would I point Pxl-On to a sprite? Btw, I probably am thinking of Output/Text, but I was hoping it would be able to be used with Pxl-On (Line would be better)
-
well then you could just write your own pixel plotting function to do the same thing (or build it into your GP routine):
Lbl PXL
Pxl-On(R1^96,R1/96
Return
:D
-
You can use the L6 or L3 buffer directly if you want to get every pixel in order for a screen transformation or something, but otherwise the 2 coordinate pixel plotting is more optimized. There has never been a pixel command with one argument, you must be thinking of Output() and Text().
-
Erm, sorry, but what did you mean? Pxl-On is for just pixels, no? Why would I point Pxl-On to a sprite? Btw, I probably am thinking of Output/Text, but I was hoping it would be able to be used with Pxl-On (Line would be better)
x.x My mistake. I kept reading that as Pt-On.
well then you could just write your own pixel plotting function to do the same thing (or build it into your GP routine):
Lbl PXL
Pxl-On(R1^96,R1/96
Return
:D
Yep, use that :)