Languages & Coding > BlitzMax / BlitzMax NG

Shifting color hue?

(1/2) > >>

Yellownakji:
Hi.

I'm trying to achieve a 'hue shift' pattern.    Not exactly a "setcolor" to a greyscaled image but to shift a colored image's colors.

Anybody have an appropriate method for this technique?

Derron:
Realtime or a color algorithm?

In my framework there is the code to convert rgb to hsv or other colors
https://github.com/GWRon/Dig/blob/master/base.util.color.bmx

so you can simply read each color and manipulate the color then to your needs.


Of course this wont work in realtime for bigger pictures.

bye
Ron

Yellownakji:

--- Quote from: Derron on May 09, 2019, 03:13:29 PM ---Realtime or a color algorithm?

In my framework there is the code to convert rgb to hsv or other colors
https://github.com/GWRon/Dig/blob/master/base.util.color.bmx

so you can simply read each color and manipulate the color then to your needs.


Of course this wont work in realtime for bigger pictures.

bye
Ron

--- End quote ---


Real-time.   I would like my logo to utilize a rainbow hue effect, instead of just making every letter change color via setcolor.    I'm trying to get every frame to shift the color by 0.4.

Derron:
Use shaders (eg with mojo of mky.mod).

Or trick with some overlay images (tinting the underlaying stuff, mix with another blendmode like Lightblend).


bye
Ron

Henri:
Hi,

there is something to this effect in Bmax samples folder: Samples / flameduck / Circlemania.

-Henri

Navigation

[0] Message Index

[#] Next page

Go to full version