AnimatedGif
AnimatedGif copied to clipboard
Delay byte calculation
Would you mind sharing more detail about how you came up with the calculation of the delay time low/high byte?
buffer[4] = (byte) (delay / 10 % 0x100); // Delay time low byte
buffer[5] = (byte) (delay / 10 / 0x100); // Delay time high byte
I tested delay values between 1 and 100 where 1 should produce the fastest and 100 the slowest GIF. However, it seems the lowest possible value is 20. Values below 20 are producing a slower result than values between 20 and 99.
Do you have any clue why that is?