From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: master 68ae6fa: Improved light/dark colour predicate (bug#41544) Date: Sat, 13 Jun 2020 01:36:30 +0700 Message-ID: References: <20200610181238.9796.44750@vcs0.savannah.gnu.org> <20200610181239.947C4204DF@vcs0.savannah.gnu.org> <93F81C41-E774-4C02-9E9D-5B2CD1F66445@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="86464"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Emacs developers To: =?UTF-8?Q?Mattias_Engdeg=C3=A5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 12 20:37:31 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjoYT-000MNz-Mq for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Jun 2020 20:37:29 +0200 Original-Received: from localhost ([::1]:60114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjoYS-0005BO-M8 for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Jun 2020 14:37:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjoXr-0004kk-6A for emacs-devel@gnu.org; Fri, 12 Jun 2020 14:36:51 -0400 Original-Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]:44851) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjoXp-0002Um-Hm for emacs-devel@gnu.org; Fri, 12 Jun 2020 14:36:50 -0400 Original-Received: by mail-vs1-xe2a.google.com with SMTP id c1so5830833vsc.11 for ; Fri, 12 Jun 2020 11:36:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=SjYLP6dvk58jMMRELJ0dUrHclevqrxcagBGZGmUf0cU=; b=jKVpdkg1YpLfifQYn35G1JPhGEMBGgjdL5C+Pn/GjV1z0LO56n5izVzVnMiqHdVkQK jgVDhMCjsw4RQ6h7ZzLS0Fale/CSV9Yt9IHgyuEubhAhcMSu6ovmwu2WMCLypVtcDCSH 1pT7lmfZaL3HisjJrsRmiQnFdxMLJBwFHnCaFgGXhJBHbS1cBVVfdj1Sl0wSzF+B5ROz O6iV08K1Ev4hACitb8eHBBtA7928jA0ZJ8TgdboqwQdb093I+sj/T2ev14pskDjbO9MP CeBXeVPeLt9+EVzUT9r5gwWs8/5LT73466qUwz2UlpuAoKQ6xthzFlvzVa45YtmB1wcz FG1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=SjYLP6dvk58jMMRELJ0dUrHclevqrxcagBGZGmUf0cU=; b=cIbNc/UzX8cUioaYh5Z+ICAZ+F0qSETtgh29J1/LT2/KhBivusdjzHNWirHzDbEwNG D1TJ1hA37wdz68faTWfLSJMQdBEoe9jIBCmmH0Oq3cMzLIjCfO8B5K5P7rJB+OYrYzDf mqGVR1QIQELPVRpb4JBiZ/t+5M9fVhIZyCYXxlPRaJ+PyjDyrn4lafZRT8uY9HM79klu FK7VX6hAy4VWbKtj0XJgF+Lvb8mAjAhvboO5S24lCO9BUanYxfUh+kAw/D/lzfPUGqvm 8Wp1yI4rj1J2zCekM+oiJXtEUT5HjJgKjH2iur0lJ8zPbylBrE3u7dB5XWOOVah62zHg Kq5g== X-Gm-Message-State: AOAM533MHTFhizZjn45fCP52MkgWjW13/sEfBTqXRmScXLtnbJl9e7sU EuJt7RzQMwgnRa9F2+jLCvFh1WfIvFzrWXgywCg= X-Google-Smtp-Source: ABdhPJz7tnjnn8D1vVrUH3upRAE0RVvb70Dka+Pywd96j9YaAJwCIjiNFTulhTpBN1d64lYPuINzoqGOIygRHebcX6o= X-Received: by 2002:a67:f289:: with SMTP id m9mr11785653vsk.70.1591987002643; Fri, 12 Jun 2020 11:36:42 -0700 (PDT) In-Reply-To: <93F81C41-E774-4C02-9E9D-5B2CD1F66445@acm.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe2a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252143 Archived-At: On Fri, 12 Jun 2020 at 22:50, Mattias Engdeg=C3=A5rd wro= te: > Please load the attached code (any Emacs version), and run M-x contrast-c= ompare with various cutoff values on your favourite system, to find what va= lue is best for readability of the colour names (first column). > Please reply (to emacs-devel or to me) the following pieces of informatio= n: > > * the cutoff value you found optimal > * system information: window system, screen, anything you think is releva= nt > * whether you use a light or dark background in your Emacs Despite science calling for .18, I find that my subjective optimal cutoff is somewhere between .25 and .31, even if I change the formulae to more accurately model the piecewise gamma correction of sRGB: - (r (expt (nth 0 rgb) 2.2)) + (R (nth 0 rgb)) + (r (if (<=3D R 0.03928) + (/ R 12.92) + (expt (/ (+ R 0.055) 1.055) 2.4))) (same for g and b.) I am on GTK+3/X11, Dell P2415Q (HiDPI IPS), RGB-subpixel slight-hinted Cousine font at 10.5pt, on overall dark gray background (#414042).