<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Sorry, I wasn't aware of this thread.</p>
<p>How about: Moving the current #asHTMLColor implementation into #printHtmlString (without the hashtag, of course), and prepending the hashtag in #asHTMLColor?</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com><br>
<b>Gesendet:</b> Montag, 9. September 2019 22:58:13<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] The Inbox: Graphics-ct.413.mcz</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Yes, that's one way to fix it.</div>
<div>The other is in asHTMLColor</div>
<div>See <a href="http://lists.squeakfoundation.org/pipermail/squeak-dev/2019-May/202392.html">
http://lists.squeakfoundation.org/pipermail/squeak-dev/2019-May/202392.html</a></div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Le lun. 9 sept. 2019 à 19:54, <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>> a écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
A new version of Graphics was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Graphics-ct.413.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/inbox/Graphics-ct.413.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Graphics-ct.413<br>
Author: ct<br>
Time: 9 September 2019, 7:54:08.629903 pm<br>
UUID: 3e468ae2-a322-c847-81b2-4029a9ecf6dd<br>
Ancestors: Graphics-mt.410<br>
<br>
Color>>#printHtmlString: Use rounding instead of truncations<br>
<br>
Fixes #testPrintHtmlString<br>
<br>
=============== Diff against Graphics-mt.410 ===============<br>
<br>
Item was changed:<br>
  ----- Method: Color>>printHtmlString (in category 'html') -----<br>
  printHtmlString<br>
        "answer a string whose characters are the html representation  <br>
        of the receiver"<br>
+       ^ ((self red * 255) rounded printStringBase: 16 length: 2 padded: true)<br>
+               , ((self green * 255) rounded printStringBase: 16 length: 2 padded: true)<br>
+               , ((self blue * 255) rounded printStringBase: 16 length: 2 padded: true)!<br>
-       ^ ((self red * 255) asInteger printStringBase: 16 length: 2 padded: true)<br>
-       , ((self green * 255) asInteger printStringBase: 16 length: 2 padded: true)<br>
-       , ((self blue * 255) asInteger printStringBase: 16 length: 2 padded: true)!<br>
<br>
<br>
</blockquote>
</div>
</div>
</body>
</html>