dilevin / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
1 stars 7 forks source link

Problem with hue_shift #47

Closed RaihanFaruque closed 4 years ago

RaihanFaruque commented 4 years ago

My hue shift produces this result: screenshot

but my desaturate produces the correct result. What is causing this?

songfeil commented 4 years ago

This is quite like the situation where hue is below 0 or beyond 360. Check if there's any hue out of bounds and add/substract corresponding values to make it fall in [0, 359].