This adds the option to specify a framerate/delay per frame instead of a single framerate for an entire animation. This is in preparation for adding Aseprite support.
for loop is used to populate the array in the original constructor instead of Enumerable.Repeat because it's faster (Do I need to justify this?) and ++i instead of i++ since we don't need the copy. I believe compiler would optimize this anyway, so feel free to tell me to change it to i++ if preferred.
This adds the option to specify a framerate/delay per frame instead of a single framerate for an entire animation. This is in preparation for adding Aseprite support.
for
loop is used to populate the array in the original constructor instead ofEnumerable.Repeat
because it's faster (Do I need to justify this?) and++i
instead ofi++
since we don't need the copy. I believe compiler would optimize this anyway, so feel free to tell me to change it toi++
if preferred.