[[ Bugfix 11174 ]] Fixed artifacts in legacygradients and tweaked pixel packing for hw_color.