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/demo.menu | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test/demo.menu') diff --git a/test/demo.menu b/test/demo.menu index 2d5750634..16cce02da 100644 --- a/test/demo.menu +++ b/test/demo.menu @@ -61,7 +61,6 @@ @main:Fluid\n(UI design tool):fluid valuators.fl @main:Cool\nDemos...:@e - @e:X Color\nBrowser:colbrowser rgb.txt @e:Mandelbrot:mandelbrot @e:Fractals:fractals @e:Puzzle:glpuzzle @@ -72,17 +71,19 @@ @e:Clipboard\nViewer:clipboard @main:Other\nTests...:@o - @o:Color Choosers:color_chooser @o:File Chooser:file_chooser @o:Native File Chooser:native-filechooser - @o:Font Tests...:@of - @of:Fonts:fonts - @of:UTF-8:utf8 @o:HelpDialog:help_dialog help_dialog.html @o:Input Choice:input_choice @o:Preferences:preferences @o:Threading:threads @o:XForms Emulation:forms + @o:Colors and Fonts...:@of + @of:X Color\nBrowser:colbrowser rgb.txt + @of:Color Chooser:color_chooser + @of:Color Contrast:contrast + @of:Fonts:fonts + @of:UTF-8 Fonts:utf8 @main:Tutorial\nfrom\nManual...:@j @j:ask\n(modified):ask -- cgit v1.2.3