color-util: add helper to convert RGB → HSV
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Dec 2023 11:08:32 +0000 (12:08 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Dec 2023 18:15:01 +0000 (19:15 +0100)
commit447bcbfc903d56615809d7b578ddbec53704ccc5
treeb115575313bede555fbdcb2b316cffacba277ab5
parenteee799fa86ff7cf67fca47bcb2bd17361fcaced4
color-util: add helper to convert RGB → HSV

We already have HSV → RGB, add the opposite operation.
src/shared/color-util.c
src/shared/color-util.h
src/test/meson.build
src/test/test-color-util.c [new file with mode: 0644]