hue function loses precision too quickly
Bug #700734 reported by
jmil
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fractal Fr0st |
Won't Fix
|
Low
|
Unassigned |
Bug Description
I'm trying to create an animation where the palette hue "rotates" through. I've noticed that with the current logic of the hue function, a 36-step rotation (a hue(10) call) causes the rgb value to differ by as much as 5% between the start and end frame. I'm not sure if the rounding errors are coming from the value normalization or the hue normalization.
To see what I'm talking about, I have attached a script. It demonstrates the error. Just use it with any flame. Pay attention to the first and last hue values, as they should be equivalent but aren't and that results in the RGB values being wrong and the palette slowly goes to crap.
To post a comment you must log in.
I played more with it, and it seems that to keep the precision the palette would need to be stored in both rgb and hsv mode. I've made a workaround script for animating, but it's a problem that will manifest if someone adjust the hue of a palette too many times.