Re: still blue

2022-08-24 Thread Emanuel Berg
Thomas Schmitt wrote: >> I have a programmable keyboard so I've done some of that, >> this new idea would be to have a all-blue, all-green etc >> keyboard randomized each time, > > So i guessed that it's about something like these > https://www.amazon.com/programmable-keyboard/s?k=programmable+k

Re: still blue

2022-08-24 Thread Thomas Schmitt
Hi, i wrote: > > Either by your keyborad lights or by above xterm > > color setting. Emanuel Berg wrote: > :O > Did I say that or did you read my mind? In the original post of Mon, 25 Jul 2022 10:17:30 +0200, you wrote: >...> I have a programmable keyboard so I've done some of that [1], >...> t

Re: still blue

2022-08-24 Thread Emanuel Berg
Thomas Schmitt wrote: > So i added the constraint that (Red - Green) must not be > smaller than -64 and not larger than +32. This made the > blueish impression quite stable. OK! I added that ... ;;; -*- lexical-binding: t -*- ;; ;; this file: ;; https://dataswamp.org/~incal/emacs-init/color-in

Re: still blue

2022-08-24 Thread Thomas Schmitt
Hi, i wrote: > > # Minimum brightness for blue to be perceivable > > blue_base=64 > > # Minimum advantage of blue over (red + green)/2 > > blue_advantage=64 Emanuel Berg wrote: > Thanks a lot, this is what I had in mind exactly! My eyes still perceived too much reddishness. They obviously need e

Re: still blue

2022-08-23 Thread Emanuel Berg
Thomas Schmitt wrote: > # Minimum brightness for blue to be perceivable > blue_base=64 > > # Minimum advantage of blue over (red + green)/2 > blue_advantage=64 Thanks a lot, this is what I had in mind exactly! Is this a correct implementation? (defalias '** #'expt) (defun blue-p (r g b) (let

Re: still blue

2022-07-25 Thread Thomas Schmitt
Hi, Nicholas Geovanis wrote: > Schoenes Abendessen :-) I hereby declare Central European Supper Time. Have a nice day :) Thomas

Re: still blue

2022-07-25 Thread Nicholas Geovanis
On Mon, Jul 25, 2022 at 6:17 AM Thomas Schmitt wrote: > Hi, > > refining my proposal i tested this function to list about 7600 blueish > colors: > > > done > > All random samples from this list yielded blueish background with > xterm -bg "$value" & > I hope there are not local spots of no

Re: still blue

2022-07-25 Thread Thomas Schmitt
Hi, i wrote: > > rhex="$(printf '%2.2x' "$r")" Greg Wooledge wrote: > As of bash 3.1, you can use printf -v rhex %2.2x "$r" I'm still at the bash level of DLD Linux 0.99pl13. > > bstart="$(expr "(" "$r" + "$g" ")" / 2 + "$blue_advantage")" > bstart=$(( (r+g)/2 + blue_advantage )) expr is

Re: still blue

2022-07-25 Thread Nicolas George
Thomas Schmitt (12022-07-25): > On my screen i (individually) see pure green brighter than pure red which > is brighter than pure blue: > xterm -bg '#ff' & > xterm -bg '#00ff00' & > xterm -bg '#ff' & Yes, it is perfectly normal. > Nevertheless a slight overweight of blue can create

Re: still blue

2022-07-25 Thread Greg Wooledge
On Mon, Jul 25, 2022 at 01:17:38PM +0200, Thomas Schmitt wrote: > #!/bin/bash > rhex="$(printf '%2.2x' "$r")" As of bash 3.1, you can use printf -v rhex %2.2x "$r" > ghex="$(printf '%2.2x' "$g")" Same. > bstart="$(expr "(" "$r" + "$g" ")" / 2 + "$blue_advantage")" bstart=$(( (r+g)

Re: still blue

2022-07-25 Thread Thomas Schmitt
Hi, refining my proposal i tested this function to list about 7600 blueish colors: --- #!/bin/bash # Minimum brightness for blue to be perceivable blue_base=64 # Minimum advantage of blue over (red + green)/2 blue_advantage

Re: still blue

2022-07-25 Thread Thomas Schmitt
Hi, Nicolas George wrote: > > - Our brain lies to us about colors all the time. This begins already with the combination of light receptors and the first nerve cells in the chain which creates the color evaluations. As mammals we should normally be blind against red-yellow-green contrasts. Dogs