issue-#102 improvements for colors in menu Attributes

Merged to the master branch
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

issue-#102 improvements for colors in menu Attributes

Post by Josef Templ »

CPC 1.7 proposes the following changes to the Attributes menu:

1. Use a darker tone for Green. It is proposed to use 00DD00H instead of 00FF00H.
In my experiments this is still too bright.
I would suggest to use something like 00B000H.

2. The color Purple is added as 0FF00FFH, i.e. RED + BLUE.


For the issue see http://redmine.blackboxframework.org/issues/102.

You can experiment easily with different colors by opening the menus with Info->Menus, then
open System/Rsrc/Menus and type in the required color codes.
There is no need to save the menus file. It suffices to execute Info->Update Menus.

Any comments?

- Josef
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#102 improvements for colors in menu Attributes

Post by Ivan Denisov »

I am using even 008000H for green.
User avatar
DGDanforth
Posts: 1061
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, California, USA
Contact:

Re: issue-#102 improvements for colors in menu Attributes

Post by DGDanforth »

Ivan Denisov wrote:I am using even 008000H for green.
I prefer Josef's 00B000H

Its brighter than Ivan's.
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

Re: issue-#102 improvements for colors in menu Attributes

Post by Zinn »

I prefer any value between 00A000H and 00C000H.
- Helmut
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#102 improvements for colors in menu Attributes

Post by Josef Templ »

I have committed the changes to the topic branch with 00AF00H for Green.
This is almost the same as 00B000H but shows it better that the green bits are set
but not all of them.

The color Purple seems rather special at a first glance.
However, experiments show that it is the only combination of
two fully turned on channels out of R+G+B that leads to a well readable color.
In that sense it may be justified to include it in the Attributes menu indeed.

For the changes see http://redmine.blackboxframework.org/pr ... 693ed02c62.

- Josef
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#102 improvements for colors in menu Attributes

Post by Josef Templ »

According to Wikipedia the color 0FF00FFH is named Magenta.
Purple is defined there as 800080H, thus it is a darker form of Magenta.

I think we need to rename it.

- Josef
User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#102 improvements for colors in menu Attributes

Post by Robert »

Josef Templ wrote:I have committed the changes to the topic branch with 00AF00H for Green
Rather than inventing a new color, how about using an established color name such as "Forest Green" ~ 228B22.
See http://latexcolor.com/ or https://en.wikipedia.org/wiki/Web_colors
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#102 improvements for colors in menu Attributes

Post by Josef Templ »

The currently existing named colors are based on the RGB model.
Green is proposed as an exception because the RGB color Green (00FF00) is
hard to read on displays and thereby without any practical relevance.

The color 00AF00 is close to RGB Green in the sense that it does not use any
other color channels. It only uses a level of brightness that makes it well readable.
Keeping the name Green is a compromise, of course. It avoids any changes
in the docu and Strings file and it avoids long discussions about a better name.
It is justified by only using the green RGB channel and a brightness as close
to 00FF00 as meaningful.

When considering Green colors including R+B channels there is a huge number
of alternatives in various color schemes and it will be very hard
to pick one of them but not the other. It would also deviate further from the
basic idea of using 'simple' RGB colors only.

- Josef
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#102 improvements for colors in menu Attributes

Post by Ivan Denisov »

We can keep only Red, Green, Blue and Black. Does the Magenta is necessary?
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#102 improvements for colors in menu Attributes

Post by Josef Templ »

Purple has been renamed to Magenta.

I don't know if we need Magenta.
I think the need came from using colors for marking changes in the source code of CPC 1.7.
With more changes more colors were needed.
@Helmut: right?

In general, there are two basic color models around:
- the additive colors (RGB)
- the subtractive colors (CMY, = the two-color combinations from RGB)
The menu could list all of them but then it gets longer and Cyan and Yellow
are not very helpful in practice because of readability.

I must add that I don't have a strong preference towards adding Magenta.
But if we add it, I would prefer the name Magenta over the slightly incorrect Purple.

- Josef
Post Reply