Fix sine wave to return rgb as int