Post Reply 
graphic.get_pixel
11-25-2021, 04:56 PM
Post: #1
graphic.get_pixel
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?
Find all posts by this user
Quote this message in a reply
11-25-2021, 11:53 PM
Post: #2
RE: graphic.get_pixel
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
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)