Thread: Enforce a colored-text rule - high contrast

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582

    Enforce a colored-text rule - high contrast

    Lately, it is almost impossible at times to read messages from the user quzah because the text has practically no contrast* to the background. Here's two screenshots that give 3 examples of this and just how hard it is to read:

    Screenshot #1 - the black text is easy to make out since the contrast is about 230 or so*, near the maximum possible. The light text is almost impossible to make out as the contrast is less than 10.
    Screenshot #2 - The top message here is okay for most of the text, but it's the light-colored text that is very hard to read. The bottom message is the opposite in that almost the entire message is unreadable due to low contrast.

    In addition, having the text changing colors very frequently just wastes a lot of space on the server as well. Instead of 1 byte per character, it's almost 25 bytes. The paragraph at the top of this message would use about 4500 bytes just to have the color-changing text. Without the color changing, about 180 bytes would be used instead.

    My suggestion would be to enforce a minimum contrast and/or limit the usage of the color UBBCode tag. I would suggest 64 at the very minimum, the difference between the colors BFBFBF and FFFFFF. I would prefer 96 as the suggested minimum, or the difference between 9F9F9F and FFFFFF. I've gone in great depth to finding a worthy contrast-determination formula and I could offer this (and an algorithm based in C) if needed.



    * Contrast is based on a comparison of shades of gray of the same apparent brightness. This graph plot gives a good idea on the apparent brightness of each color.

    Edit: Just as a side note, no offense is intended. I'm sure this affects everyone. Those with poor vision would really have a lot of problems reading the text which is why I'm strongly suggesting some sort of enforcement.
    Last edited by ulillillia; 05-04-2007 at 04:29 PM. Reason: No offense intended note added

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Having Colored text
    By unknownUser in forum C++ Programming
    Replies: 1
    Last Post: 04-17-2002, 01:38 PM
  2. Accessing a Specific Text Line Inside CEditView :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 04-14-2002, 08:12 PM
  3. Validating the contents of a char buffer
    By mattz in forum C Programming
    Replies: 3
    Last Post: 12-09-2001, 06:21 PM
  4. Colored Text
    By Yoshi in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 11-28-2001, 09:46 AM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 07:35 PM