Sometimes it would be helpful to be able to add a array to a group, as you can with a list: Gr.group.list <object_number_nvar>, <list_ptr_nexp>
New group command: Gr.group.array <object_number_nvar>, <array_ptr_nexp>
Yes, you can add an array to a list and then add the list to a group, but that is long winded and uses more memory. Could use a list in the first place, but sometimes it is easier to work with an array.
Also, mentioned this before but didn't get a response
Gr.get.bmpixel <bitmap_ptr_nvar>, x, y, alpha, red, green, blue When you x, y is off the bitmap it those an error. could, alpha, red, green, blue return -1 instead of getting an error.
Could do the same for Gr.get.pixel x, y, alpha, red, green, blue, for when x, y is off screen.
The point with using a list for Gr.group.list is that the list is linked with the group. That means you can add and delete objects in the list (which you can't with an array) and the changes would reflect automatically within the group. I guess you can ask for Gr.group.list to convert an array to list, but as you said, you can do this yourself with list.add.array.
Gr.get.bmpixel and Gr.get.pixel are reasonable requests but it's better if you seperate these requests in the future.
_________________ - Failure is not an option. It is bundled with the software. -
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum