FLTK logo

Re: [fltk/fltk] Not enough contrast on automatic colors (Issue #370)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Not enough contrast on automatic colors (Issue #370) Albrecht Schlosser Jul 19, 2022  
 

@CendioOssman You wrote

If we use GNOME's default blue (53,132,228), or macOS blue (0, 122, 255) we get black as the contrast color. This an entirely insufficient contrast...

I tested specifically these two colors with the new algorithm and my test program got FL_WHITE as the contrast color (and FL_BLACK with the "legacy" mode as you wrote).

I'm posting two screenshots from my test program which will be included in the FLTK repository together with the update:

  1. Legacy (FLTK 1.3) mode:
    fl_contrast_legacy

  2. CIELAB (FLTK 1.4) mode:
    fl_contrast_cielab

The special test value can be seen in field '255' but you can visually compare the other fields as well. Although the algorithm is final there are some fine tuning options which are still work in progress but the images should show the major differences. Hint: load both screenshots in browser tabs and then switch tabs...


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/370/1188983011@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.