summaryrefslogtreecommitdiff
path: root/test/contrast.cxx
AgeCommit message (Collapse)Author
2024-05-16Fix and improve fl_contrast() calculationsAlbrecht Schlosser
- src/fl_contrast.cxx: - FL_CONTRAST_LEGACY: reset black/white threshold from 55 to 50 - FL_CONTRAST_CIELAB: change default contrast level from 55 to 39 - test/contrast.cxx: - set default contrast mode to CIELAB - add "random color" button to test random foreground colors (text) - slightly increase terminal size - make the Fl_Terminal widget the resizable() of the window
2023-11-14Fl_Terminal widget (#800)erco77
Pull Fl_Terminal widget from Greg's fork
2022-12-30Use `FL_OVERRIDE` for all overridden virtual methods (#611)Matthias Melcher
FL_OVERRIDE is defined as `override` for C++11 and higher FL_OVERRIDE is defined as `override` for VisualC 2015 and newer Don't interfere with Fl_Widget::override()
2022-12-28Improve and extend fl_contrast() (#370)Albrecht Schlosser
- 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.