Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Shift HSV-color  (Read 1389 times)

0 Members and 1 Guest are viewing this topic.

Hedgeberry

  • Newbie
  • *
  • Posts: 5
    • View Profile
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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
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
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.
    • View Profile
    • Links
Re: Shift HSV-color
« Reply #2 on: July 16, 2022, 11:42:52 am »
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*