Timeline for Possible to pass pygame data to memory map block?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 9, 2014 at 14:52 | vote | accept | toozie21 | ||
Jun 6, 2014 at 23:41 | comment | added | pmoleri | Yes, it's byte data so you have to figure out how every color is stored. You also have other options like: pygame.org/docs/ref/pixelcopy.html to obtain a 3D array (row, column, color). | |
Jun 6, 2014 at 18:51 | comment | added | toozie21 | So the raw pixels are the RGB values for each individual pixel? That would be great if so because an RGB triplet is ultamately what I need to pass along I think. | |
Jun 6, 2014 at 18:16 | comment | added | pmoleri |
Yes that should work. You also have screen.get_view() and screen.get_buffer() functions in case you need to access raw pixel data.
|
|
Jun 6, 2014 at 18:06 | comment | added | toozie21 |
Thanks. So instead of doing something like pygame.display.update() . I could do something like screen = pygame.display.get_surface() , draw my screens like normal, and then pass the "screen" to my memory map reading app, right?
|
|
Jun 5, 2014 at 18:53 | history | answered | pmoleri | CC BY-SA 3.0 |