HP Forums
Is DUP TLINE a reliable pixel toggler? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: Is DUP TLINE a reliable pixel toggler? (/thread-8493.html)



Is DUP TLINE a reliable pixel toggler? - Joe Horn - 06-12-2017 01:30 AM

To toggle a pixel on the HP 50g, is DUP TLINE reliable? Does it ever fail to toggle exactly one pixel? It seems to be more efficient than IF DUP PIX? THEN PIXOFF ELSE PIXON END but I just want to be sure.

Sorry if this has already been discussed. My knowledge of RPL is rapidly fading due to lack of use.


RE: Is DUP TLINE a reliable pixel toggler? - DavidM - 06-12-2017 07:47 PM

(06-12-2017 01:30 AM)Joe Horn Wrote:  To toggle a pixel on the HP 50g, is DUP TLINE reliable? Does it ever fail to toggle exactly one pixel? It seems to be more efficient than IF DUP PIX? THEN PIXOFF ELSE PIXON END but I just want to be sure.

Sorry if this has already been discussed. My knowledge of RPL is rapidly fading due to lack of use.

I just ran through a series of tests with this, using both absolute coordinates and user coordinates, and it seemed to always toggle 1 pixel in every test I did. I can't claim to have tested it exhaustively, but everything I tried seemed to confirm a single pixel being toggled.

That's actually a very efficient way to toggle a pixel. Great idea, Joe! I hate to think that your RPL days are behind you, though. That's bad news indeed.


RE: Is DUP TLINE a reliable pixel toggler? - Joe Horn - 06-13-2017 04:23 AM

(06-12-2017 07:47 PM)DavidM Wrote:  I just ran through a series of tests with this, using both absolute coordinates and user coordinates, and it seemed to always toggle 1 pixel in every test I did. I can't claim to have tested it exhaustively, but everything I tried seemed to confirm a single pixel being toggled.

Thanks for testing it! Greatly appreciated!