From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: solarized Date: Thu, 17 Sep 2020 15:56:23 +0000 (UTC) Message-ID: <40227585-65d2-4804-a3bb-a46285c23377@default> References: <87mu1ra1ej.fsf@protesilaos.com> <87imcf9wfp.fsf@protesilaos.com> <87wo0uazy7.fsf@protesilaos.com> <24419.5630.619374.863012@mail.eng.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13167"; mail-complaints-to="usenet@ciao.gmane.io" To: Gian Uberto Lauri , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 17 17:59:03 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 1kIwJL-0003K4-9Y for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Sep 2020 17:59:03 +0200 Original-Received: from localhost ([::1]:55160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIwJK-0003wR-BC for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Sep 2020 11:59:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIwGu-0001oH-UO for emacs-devel@gnu.org; Thu, 17 Sep 2020 11:56:32 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:49812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIwGs-0003BL-P3 for emacs-devel@gnu.org; Thu, 17 Sep 2020 11:56:32 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08HFj8Y3113674; Thu, 17 Sep 2020 15:56:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=xZ6MRtpmXIhAVpB8ABKY1s8vs5C8vOpY8XswmHCNwhc=; b=oIYzX16C4OhojvH0t9S8pCLcoqfnv0+qXaYuerHYG0bgcnmoEqksM0AEi0aToEnbyfCM GcIS4+bg7Xx3I4q/L/vHxjpX9sjHIJ4VLRj0kx6B8ZrMc+Wqz5O3q9riJ+7e+cXZVVZD Z6CgyRUVcMRjRomz/pERAbE+SjbXITsGtq/iMSwH9joaNi31sMq6NDozfLK8HSutBKEi u3bQ2HzCOCluCx3MM4UkGUT8w7xOrl52yiIwh8gvLblQran7LIkOT2CE5dUwrBGjZiJc 4cIbJCuYCRqa39fv9bV5BmElauTUa3y2xe/HizgJELvUlPhZYrKgSH71RPrKz2w9yPQC Og== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 33gp9mj5qd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 17 Sep 2020 15:56:26 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08HFj5xY108511; Thu, 17 Sep 2020 15:56:25 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 33h8941ghe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 Sep 2020 15:56:25 +0000 Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 08HFuOMi014631; Thu, 17 Sep 2020 15:56:24 GMT In-Reply-To: <24419.5630.619374.863012@mail.eng.it> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5044.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9747 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 adultscore=0 suspectscore=0 mlxscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009170120 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9747 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 clxscore=1011 lowpriorityscore=0 phishscore=0 spamscore=0 priorityscore=1501 suspectscore=0 impostorscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009170120 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/17 11:56:29 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -73 X-Spam_score: -7.4 X-Spam_bar: ------- X-Spam_report: (-7.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-2.997, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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:256016 Archived-At: > RS> By inverse I mean, the color that is to white as color X is to > RS> black. I don't know what formula is needed for that, but I > RS> presume someone does. >=20 > I think it is something that could be described as >=20 > =09the value of each member of the inverse triplet is #FF minus > =09the value of the corresponding member in the original triplet, > =09that is "computes the complementary color" >=20 > but I fear that other things impact on the perception of the colors, > i.e. the monitor settings, cultural background (don't be surprised, it > is human perception after all, and it's strongly influenced by > psycological components including the name you give to colors, see the > Himbas in Africa, and Japan - I think that they see shades of grue There is the human-perception consideration. And as others have pointed out, that is heavily influenced by things such as ambient lighting. As for color complementing, without taking such perception considerations into account, there is already existing Emacs code for getting the complement (inverse, if you prefer) of a color. There are functions to complement each of hue, saturation, and value. There are functions to complement all (the combination) together, for color name, RGB numeric, or RGB hex values. Standard library color.el has only the latter (fixed combination formula, based on RGB/name). Library hexrgb.el has all of them. https://www.emacswiki.org/emacs/download/hexrgb.el