I have been trying to figure out a way to sort object arrays based on one of the objects properties.
At line 120, I was trying to add a sort algorithm for _budArr based on the property fill1. I want to order it from dark (first in array) to lightest so that when I call the draw function the darker objects are on the bottom and lighter ones on the top. Can anyone help me.
I am trying to append to an array and float that occurs early on and I managed to get this to work. However after looking through the documentation i can't find a method to delete a specific float in my array. Essentially I'm trying to use an a array to hold a set of coordinates and after the first one is use i.e. [0] then it becomes [i] the last element and is deleted from the front of the array.
Can anyone help me?
Thanks in advance,
Francis
P.S. My programming background is python and HTML5/CS3