operations: Make color-to-alpha work on float instead of double.