From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Adding some convenience functions to color.el Date: Fri, 09 Jun 2023 09:55:17 +0300 Message-ID: <83v8fx15wq.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9400"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yilkal Argaw Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 09 08:56:30 2023 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 1q7W2v-00027i-Fo for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Jun 2023 08:56:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7W1w-0007Fe-Bm; Fri, 09 Jun 2023 02:55:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7W1m-0007Bf-6t for emacs-devel@gnu.org; Fri, 09 Jun 2023 02:55:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7W1l-00047K-3m; Fri, 09 Jun 2023 02:55:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ln7Gxe+xHvN+TYr4dNANNX1AnA1A76DjMW/i0ITGOhY=; b=acDXtBxk/xGG 37cmB4CHhwS4XFZzyTwyx+HfRaEPIRPu/KiUDnxFFV9k36y7XE/eI1KnxTqx8YVxp7HvtH8mVyXII LUHYHR8rzzeztw5OsXgv0Re6nKzihwa3tju0WK7P3eLzsevLw9HCXcn6F8OmOCgnjF15TcAxSe7Jz Qi//cK/ZwulbEaGbwco1orKM/s0vB/RlqJk0F18ec1Nn1H79ulAa5d+zR0E9er4oM0O1jqb+/gC7e i0RK5l8NDEX7yeKe0CoisLp4cUvpSutXxLDfp57hfpu5WDVpgiB+SaAthAtyfphIsUpnY5epcExXh 07fqNRGOJXuWfRRnhF63jQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7W1c-0007ad-N0; Fri, 09 Jun 2023 02:55:15 -0400 In-Reply-To: (message from Yilkal Argaw on Fri, 9 Jun 2023 02:57:41 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306705 Archived-At: > From: Yilkal Argaw > Date: Fri, 9 Jun 2023 02:57:41 +0300 > > Today I was messing around with some theme that made use of color.el and I noticed some functions > that might be of use could be added to color.el to help with the conditionally assigning setting some > colors based on lightness or darkness of some other color. I wondered if it might be useful to other > users and if it might be worth adding it to color.el. I We already have color-dark-p (and color-name-to-rgb to complement it), so I'm not sure I understand the rationale for these functions. Can you explain more why you needed them?