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: [External] : Re: [PATCH] color-hsv-to-rgb Date: Fri, 20 Oct 2023 21:04:55 +0000 Message-ID: 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="11851"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "stefankangas@gmail.com" , "jporterbugs@gmail.com" , "dov.grobgeld@gmail.com" , "emacs-devel@gnu.org" To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 20 23:06:24 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 1qtwhM-0002pK-Fr for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Oct 2023 23:06:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtwgF-0003Sf-IA; Fri, 20 Oct 2023 17:05:15 -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 1qtwg8-0003EH-Lk for emacs-devel@gnu.org; Fri, 20 Oct 2023 17:05:09 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtwg6-0004zw-06; Fri, 20 Oct 2023 17:05:08 -0400 Original-Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39KD8PYa030485; Fri, 20 Oct 2023 21:04:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=GmJqZJbRUNCGTQ9zmHhufuHX/jO94bm7STNWTiyDGSY=; b=ct9JvCtCoD8w5iY1kPMPw3q0wZqZj+4vJIZBMvz6vw87W3MHiQR38oqew0/p6YY6AYCx 5glWLfRPBOWpGGuPW0vcMy0/yrRhIMDPikpBGzu3/33JkldCIhRq9r4YzC3+Qtoony3g Tjjs996BVJI9+ItZMqmLbbmQa4uYgiywE4aK07Bf50CDnprxcN7TVtcdrj1VMM9q6rP7 BJ9Q+JwfHKczZvpyWKjzw28O/uH7tikJ33K8QY9jXzuEPnjbJzq63foE114nnnEVZrJB pAZpGQxyedV+ROullD1IJOmvRKOdmRD6Uv3fdi6liJiD+S+sfy+MhpPmoXE8+5klq5Ig DQ== Original-Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3tubwdarb5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 20 Oct 2023 21:04:58 +0000 Original-Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 39KJD8al013188; Fri, 20 Oct 2023 21:04:57 GMT Original-Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3tubw6hct4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 20 Oct 2023 21:04:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yc4JvDjQ+jl5AmJG9q3ZKm9nrxIILWfgg110JqJfumGtKLFZXOqDW5qBtzlZZ/oX1l8meaq3cPDbeNKcPedfhtT1ML/NpnZajUnYKDYWUzoLKYOQrPbN+/BVJmpEjrxN5DaqsuSAgNctgsdtMm8xklb5p/xnKh3ELqdLmnmZ/b+SZ0GWSPNMzAOGbGEZTagULaNKllFoQuGuppjNZ+CZZoT36XeTgtWGsvO6DLlXwHYWpY8koVkakqLDH/YAcwfdD2rTNnXxWcutisM15HKQnYOB6hs7uhGbJKYMIHyTKTFaI+VwsVvqpc/FPlNShHCBFS9WItiqyEp1mGRN0qGw4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GmJqZJbRUNCGTQ9zmHhufuHX/jO94bm7STNWTiyDGSY=; b=Qaw6rBl8l/gNbVlfOpU6gmRgwtinoXjbY4+BKruLOjwvMdfAJSiZYRZ7XYhNQXLhZ0hKf50wfFGwYiBKu1vf2ejxbcDrM9DjAnwjWEBF3V90JUYFD97CC0xOmLD1kq6FjEnlN6IEYnO1dd3+QcCWl2Z9mklYcCcOC9wQqS+T7lKX/Jc/3MBhDE4foagN8YF9/33cgy48gMx7ZfjmJzvnBuHu539ua1VMmE4aCPLa2FeyiMzK8/KvDhvS84NiBqSqGt7rTEgy/8t99Ztjo10+B8qrl0IyjPxCHaBPd8J/OX9Ga8S6m1HHW1Jkl04yoUvW3bPzcgehCyBFYF8zgzp0OQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GmJqZJbRUNCGTQ9zmHhufuHX/jO94bm7STNWTiyDGSY=; b=uIUf6LnSp94xrPSW4MWtDelKfOv7ydSdbTpxR/cxXgZyji2UPRhB1EfrFgAP3ajWU+mfWfNgxwBVwn/0RR7nbSlKkihOnYWg5+7W65bMOTuSg22mzJE9et0GN0oit+ANrN53TEB93aYW4YyC6l3DEhoFp/cvxtPQh6T07TVjiWk= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by DS0PR10MB7522.namprd10.prod.outlook.com (2603:10b6:8:15e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.24; Fri, 20 Oct 2023 21:04:55 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::adae:506b:e9a0:529f]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::adae:506b:e9a0:529f%6]) with mapi id 15.20.6907.025; Fri, 20 Oct 2023 21:04:55 +0000 Thread-Topic: [External] : Re: [PATCH] color-hsv-to-rgb Thread-Index: AQHaA38v1gsRwMJueEyrErn8QGFq9rBTE/wggAANecA= Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|DS0PR10MB7522:EE_ x-ms-office365-filtering-correlation-id: f162493e-bb74-4b92-4d0c-08dbd1b0360f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3QLzaSGSjUqHQ6CU3VCWfnTBTMuE3axXmdDMbwlZj8MiNEkap8AkPkp9SOj7UMpdQ/NPLCKbp9v4baMzD9jtnRbxRjEJeef1Pq4RgoG+xm5ZQPq1VVb2rPXGpZkTTVHnv0OoE4P9W/51XLJh6mwX08MCt3B6UfWlXKwUmyWiS1OSmi7yoTbc/fzGgzqyk6ooc2SvnyCytZH8gWGf5TjF39YxKXFyamRyKShx9T6+McH9MJNuNKrncDuvK7kDHUyf6LdWgNFJHhyeedNImh8hVGxnr9OJKgzurnSrautkS/Y28FQMVZ250iGTYou5qcwdMJTrnmgOCUZzVT0RJ/Uw0a8CRp86qQnvpBLYbP7F8i4zNtOE1QSY7JuCVpbZUp2u5W5Jd/FHgyAu0zsPoe+7CiFRrchR25FKr4Rxg7pSli8fQ0fYh95gODvlZOEmv6Axf6hqtA3T4MGo0nTe73HWMi0LP9I0JpLlzdnUCM9Nv4WC4GdVtERmoGN8TVcqQ4RCx7vA2+emqFRSGBRFysv71ojjbVK3lpJRhyQCmTO4FLzXEGEx9/Eo9acZHUNExTN9DX8MmxXk7ZGhSEC+t6/kUEAuzdj3+7EVMuKh5a7q6eB6hY1F+Zwq1dKaLeDZQQ+d x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(376002)(396003)(136003)(346002)(366004)(230922051799003)(186009)(451199024)(1800799009)(64100799003)(38070700009)(38100700002)(86362001)(2906002)(44832011)(55016003)(33656002)(5660300002)(52536014)(8676002)(4326008)(26005)(8936002)(41300700001)(478600001)(9686003)(83380400001)(66446008)(7696005)(71200400001)(6916009)(122000001)(316002)(6506007)(66946007)(64756008)(66476007)(76116006)(54906003)(66556008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?zcLBc8LYvXzAs9p2jtURKuqgOUdulYw1F0dNubRxNi61Q2AK9RJngjjfTz+/?= =?us-ascii?Q?jxXeR8UjJF/oQVNufJDZsKOUjuEkJKnMf48orLQk2NJSd6fbdTrurVfxcXEP?= =?us-ascii?Q?bf86zK4jzr3JR6mEhHUPSBbfLZ9GiSPa3OaonatjLXDH0vzg+W6iac9Rddrr?= =?us-ascii?Q?XSLdN9rIPaMrt0jJakvcLBcb6bj8OmHmdFwi238zRYm0LwdExfRhAQgE/TL8?= =?us-ascii?Q?GiA0DA2FmlBvMoOiNYXbrJCrIegDWYeoEoVQeRIAtyGHPNBl/us0ZYk/W2wF?= =?us-ascii?Q?J/Pqo8vo0cWgB5CgynuqMn2SITyDp+uCEMBfwHCYtbr6EiEStutdtiE4uKx3?= =?us-ascii?Q?R/wNEd8CcXEvxGeCmDyrjNuH+yHF9hoTiDaOj/2b32o+5KbiESlkZ4/CXq2l?= =?us-ascii?Q?6yc76TT9MywC3zDuzo26U6lpL3YbOqXx6tF51yapPXnEHua7t7fCZ2NBDNnR?= =?us-ascii?Q?MzgJ0OmESRHFMAflQwriLk5lTIT0S+8qEjFUV1mKvJtXsM6mRlgmjnRruXm5?= =?us-ascii?Q?cQayKtFOq0A5MattIxDPai3j/2iOo9Ka9oaYAkNDDqJyk+KsUN2YM/gm0FR6?= =?us-ascii?Q?Ix9iBMQY0l/azh/ebjhX5CeOVIWNkekYdbi6Lp4K8xEbeGDxaAZH9LRyBSLR?= =?us-ascii?Q?rp X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: eWijHiFp2PZTy/Lg54E8VWuuqBtETcttbZBeybfonLgQc+gTw48ocp/atDHR8ZGoWcdgigohM6PiOjTz0P/vDG3dXC+UAR3sUIcNrlmo5zE0WzImyqsznX5A0TnCRCCi1Lu1ErqH3xu2OexWwkSEVD+VbuGEAG+F2X9Chxps49Z4/9EFzKTUYXCmeZfL0bQijnEAUMy+oiYs5nWD+GWUMhFT+S9cBRME01T19Rs7Wobx7lKVJGU4qcfkUzNZAUaFDDmdmX5QNKw1IejkqKkh/39IgwOGFbA7G/JMkgtWHD/Pb2gHf8bdzK2bH3hOucZE1pCvyWAFqlVWqr6Phht1Cj8VWpe8hXnchfhgCA1Gq8UKfSCO3UsGZ1z5TCtnO4g/FrBQo0C7tOlvgej2n7/bYJ0fmUYA8L9ZHJuhIoSu2abiZXsQ8FGUcEI3YgLlxqQ3J3sy+MY7YwZxgEb7yY376NYZI3c0hOeJ/IDKh1SX9SBwPARTvh9HrYuEt3umoWB3C9o3lSFQIrS7q4PvMoOOCDbJ5uOPQe//xLPKVBeexZWFoE+EnU9QNMBEaYcJG/4Aj3/Ei3Or/Wn3+x4jqMaDJkPo/IVugwdUGoSToli98Cr5PP4Zjk3Hp7ZjFGiGGb9MMqjycCMVRVFSUI0XMca/jqj3FUQSmzCdV6c0iOhLOVJrvOzdioU83htVvyqCirwNhygPBoe4XxF5IaVnicHDvQsoY3UsBAW+hlTd3gSKRqwZ52 pcMi85aVa7hUrkht5bb1X04MTc+L2pgTCcQB7QKQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f162493e-bb74-4b92-4d0c-08dbd1b0360f X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Oct 2023 21:04:55.4387 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: I0dlOF7+tvmn+3WPmKP43qmTOsqDqg5cZHVs1IhS7VxRQrxBxkf/2O8knPhYk02MrN2+2Pl4D4oc/6njZwmtMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB7522 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-20_10,2023-10-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 suspectscore=0 mlxscore=0 phishscore=0 malwarescore=0 bulkscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310200178 X-Proofpoint-ORIG-GUID: MLVM26uzSl3mJQIb0-CCnlmNwJgL0F7n X-Proofpoint-GUID: MLVM26uzSl3mJQIb0-CCnlmNwJgL0F7n Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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.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:311629 Archived-At: > It is hard for anyone but you to know what > is your POV on this issue. I don't have a POV on what else in `hexrgb.el' might be missing from `color.el' and might want to be added now by Emacs Dev. And that's what I said, at the outset of my reply to Stefan's question: "Sorry, but I don't know" All of hexrgb.el was considered when `color.el' was being created, including `hexrgb-hsv-to-rgb'. Whatever was wanted was used, and that didn't include `hexrgb-hsv-to-rgb'. I mentioned that function in this thread only because of the thread Subject. Would you have preferred that I not mention it? I figured its code might help in some way, as well as the fact that I (too) think such a function is useful. The latter was the main reason I wrote to the thread: to say +1 to Jim's +1 to Dov's request. That's the main msg: it's useful. There's no need for me to guess what else you might be interested in. If you're interested, just take a look at the available functions. It's not like there are zillions of them, and they're all handily listed in one place, with clear names. As I said, I haven't looked at this code since 2018, and likewise `color.el'. If someone is interested in investigating the differences they are as capable as I am for that. And again, I have no POV about "main things=20 besides `color-hsv-to-rgb'". ___ A quick look now at `color.el' shows it's mostly about color conversion, not color modification, HSL being the sole exception, and only for S and L. `hexrgb.el' has eight functions for incrementing/decrementing: +/- R, G, B individually and together +/- H, S, V individually +/- hex digits together Why `color.el' has separate functions (8 of them!) for the two directions to increment only S and L is a mystery. With `hexrgb.el', just use a negative increment to decrement. `hexrgb.el' also has functions to modify a color by complementing only one component: red/green/blue/hue/saturation/va= lue. E.g., complementing hue doesn't change saturation or value. (hexrgb-hue-complement "LightBlue") ; =3D> "#E6E5BBBAADAC" HTH.