HP Forums

Full Version: graphic.get_pixel
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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 ... Sad
Reference URL's