From 78cf29ba29aede2f0463e1747dc728787428d543 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 28 Dec 2022 17:50:00 +0100 Subject: Improve and extend fl_contrast() (#370) - Add internal fl_contrast_cielab() as the new default. - Keep old function as internal fl_contrast_legacy(). - Add fl_contrast_mode() to switch between fl_contrast() functions. - Add fl_contrast_level() to fine tune fl_contrast() per mode. - Add option to register and use a custom contrast function. - Add test/contrast.cxx test program. - Move all fl_contrast() related code to a new file src/fl_contrast.cxx. - Add fl_lightness() convenience function for perceived lightness. - Add fl_luminance() convenience function for physical luminance. --- test/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/Makefile') diff --git a/test/Makefile b/test/Makefile index 3b9afa5eb..df0aee017 100644 --- a/test/Makefile +++ b/test/Makefile @@ -65,6 +65,7 @@ CPPFILES =\ clock.cxx \ colbrowser.cxx \ color_chooser.cxx \ + contrast.cxx \ cube.cxx \ CubeMain.cxx \ CubeView.cxx \ @@ -159,6 +160,7 @@ ALL = \ clock$(EXEEXT) \ colbrowser$(EXEEXT) \ color_chooser$(EXEEXT) \ + contrast$(EXEEXT) \ cursor$(EXEEXT) \ curve$(EXEEXT) \ demo$(EXEEXT) \ @@ -394,6 +396,8 @@ colbrowser$(EXEEXT): colbrowser.o color_chooser$(EXEEXT): color_chooser.o +contrast$(EXEEXT): contrast.o + cursor$(EXEEXT): cursor.o curve$(EXEEXT): curve.o -- cgit v1.2.3