Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Shift HSV-color
Print
Pages: [
1
]
Author
Topic: Shift HSV-color (Read 1389 times)
0 Members and 1 Guest are viewing this topic.
Hedgeberry
Newbie
Posts: 5
Shift HSV-color
«
on:
July 12, 2022, 12:55:55 pm »
Is there any built-in HSV-color shift functionality?
Let's say I need to shift the color shade by 32, is there any simple way to do it or will I have to write my own RGB to HSV conversions, shift and convert back there?
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11033
Re: Shift HSV-color
«
Reply #1 on:
July 12, 2022, 01:16:52 pm »
SFML doesn't offer any color space conversion, everything is in RGBA.
So yes, you'd have to convert it. Entering "HSV SFML" in a web search, I ended up with:
https://gist.github.com/marukrap/7c361f2c367eaf40537a8715e3fd952a
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Hapax
Hero Member
Posts: 3379
My number of posts is shown in hexadecimal.
Re: Shift HSV-color
«
Reply #2 on:
July 16, 2022, 11:42:52 am »
Very slightly gutted my stuff didn't appear in your search...
https://github.com/Hapaxia/Plinth/blob/master/Plinth/Color.hpp
https://github.com/Hapaxia/Plinth/blob/master/Plinth/Color.cpp
Logged
Selba Ward
-SFML drawables
Cheese Map
-Drawable Layered Tile Map
Kairos
-Timing Library
Grambol
*
Hapaxia Links
*
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Shift HSV-color