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.help Subject: Re: Background color in SVG display Date: Thu, 23 Jun 2022 13:45:07 +0300 Message-ID: <83letnek0c.fsf@gnu.org> References: <82czeznamq.fsf@gmail.com> <834k0bg8ww.fsf@gnu.org> <828rpnmzv6.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28870"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 23 12:46:23 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1o4KLu-0007OC-T2 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Jun 2022 12:46:22 +0200 Original-Received: from localhost ([::1]:37926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4KLt-0001u5-Vp for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Jun 2022 06:46:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4KKq-0001t3-F5 for help-gnu-emacs@gnu.org; Thu, 23 Jun 2022 06:45:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40708) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4KKq-0000iH-4o for help-gnu-emacs@gnu.org; Thu, 23 Jun 2022 06:45:16 -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=WkJUjiWlMeY74Jt3PtgfOCABD7m7NhrsEA8g9in9MYA=; b=T5oO9hF7zF0R eamOW7nUaONHSYkM12cHHsxsKtlqHIwgDenJxPl5uF7XyFLlqXbHHO2g3hZsJkVPPvpy9aBh4P/2y UoUT9J/HBZTqSZ7zQBCjgcEko4sh0em2iBI4eQ/Jvq45/O9h+1UM2OCS5JrEXPhYRa6Z5LVyBloty vSbxjdbM1E1U+H8FvxdvOCVImdp/7zGcm1/O8mR3n45pkskucakgKiALriITnqnKoCKMzr4rR02gW FD37FY1FEAkR9pHmbJ/Ar5P6boiosLTKDV+yJmkcFnU0K8pPPU22tTwtK+tNa2AKNP9xGc9GRUMkh ro+4gsu1PGFSG3i35iskfw==; Original-Received: from [87.69.77.57] (port=3514 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 1o4KKp-0005L5-KH for help-gnu-emacs@gnu.org; Thu, 23 Jun 2022 06:45:15 -0400 In-Reply-To: <828rpnmzv6.fsf@gmail.com> (message from Pascal Quesseveur on Thu, 23 Jun 2022 12:35:25 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138009 Archived-At: > From: Pascal Quesseveur > Date: Thu, 23 Jun 2022 12:35:25 +0200 > > >"EZ" == Eli Zaretskii writes: > > EZ> How do you see that background? Please show a recipe, starting > EZ> from "emacs -Q", that reproduces such a display of an SVG image. > > I finally managed to define a minimal test: > > runemacs -Q \ > --eval="(setq initial-frame-alist (list (cons 'background-color \"azure\")))" > > then visit splash.svg > > The background color depends on the frame background color. It is > light orange in this case. I think it's your eyes that play illusion games with you. Start "emacs -Q" with no other arguments and move the frame of that second Emacs near the one with splash.svg: you will see that the background of the image is white, like the one in the second Emacs. What happens here is that the contrast between the azure background of the frame and the white background of the SVG image causes you to perceive the white color as the reverse of the azure one, which is pale red.