HP Forums

Full Version: Is DUP TLINE a reliable pixel toggler?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
(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.
(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!
Reference URL's