graphic.get_pixel - Printable Version +- HP Forums ( https://www.hpmuseum.org/forum)+-- Forum: HP Calculators (and very old HP Computers) ( /forum-3.html)+--- Forum: HP Prime ( /forum-5.html)+--- Thread: graphic.get_pixel ( /thread-17745.html) |

graphic.get_pixel - jfelten - 11-25-2021 04:56 PM
I don't understand this function. It seems to be able to take either 2 or 3 arguments. With 2 args, it returns "None" if the coordinates are outside the screen boundaries, otherwise it returns "(0, 0, 0)" no matter the color of the pixel at the specified coordinates. With 3 arguments, it returns "-16777216" regardless of the parameter values. Are there any bugs or am I missing something? RE: graphic.get_pixel - Guenter Schink - 11-25-2021 11:53 PM
Unfortunately the Python implementation has a lot of these problems. When I worked on my MandelExpl I tried of course to make use of the graphic module, but finally gave up. Without a proper description of the syntax it's almost useless. You always run into some errors, but can't determine where the error is. And quite often the Prime simply reboots. E.g. try the function apply of the linalg module. provided you have imported the linalg and math modules apply(sin,(1,2,3) gives you obviously corect results but apply((1,2,3), sin) let's the calc reboot. Seems to be the wrong syntax, but learning the hard way ... |