[squeak-dev] The Inbox: Graphics-ct.441.mcz

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Thu Oct 1 12:09:51 UTC 2020


Hm, isn't it enough to add the parentheses in the store string? (6 at 7) printString does not have parentheses either ...


Best,

Christoph

<http://www.hpi.de/>
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel
Gesendet: Donnerstag, 1. Oktober 2020 12:55:16
An: squeak-dev
Betreff: Re: [squeak-dev] The Inbox: Graphics-ct.441.mcz

Nice. Given that #storeOn: is used, we should take care to always wrap the result in parentheses.

-> '(Color red alpha: 0.4)'

Best,
Marcel

Am 01.10.2020 10:51:29 schrieb Stéphane Rollandin <lecteur at zogotounga.net>:

> Proposal: Isolate alpha channel when printing a named color. This allows it to reuse the color name even for translucent color.
>
> Example:
> (Color red alpha: 0.4) printString
> Output (new):
> 'Color red alpha: 0.4'
> Output (old):
> '(TranslucentColor r: 1 g: 0.0 b: 0.0 alpha: 0.4)'

+1

Stef


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20201001/3c811bb4/attachment-0001.html>


More information about the Squeak-dev mailing list