<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi all,</p>
<p><br>
</p>
<p>try out this:</p>
<p><br>
</p>
<p></p>
<div>m := Morph new color: (Color red alpha: 0.5).</div>
<div>m openInHand.</div>
<div>m imageForm openAsMorph.</div>
<div><br>
</div>
Output:
<p></p>
<p><img size="8995" contenttype="image/png" id="img383607" style="max-width: 99.9%; user-select: none;" contextid="img231790" tabindex="0" src="cid:b8fe602f-7ca6-47d9-bd34-b5b52440cad7"><br>
</p>
<p>And for completeness' sake, "<span>m imageForm asMorph imageForm openAsMorph" appears just a bit darker again.</span></p>
<p><span><br>
</span></p>
<p><span>I traced the issue down to two methods: For the regular Morph, FormCanvas >> #<span>setFillColor:, and for the ImageMorph, Canvas >> #<span>translucentImage:at:sourceRect:. In both methods, at the end, the rule Form blend is used to draw the image.
 If I change it to Form over, the colors are the same and the issue seems to be fixed.</span></span></span></p>
<p><span><span><span>But unfortunately, I could not find any documentation about the different Form rules such as #blend, #over, #paint etc. Can you give me some pointers?</span></span></span></p>
<p><span><span><span><br>
</span></span></span></p>
<p><span style="font-size: 12pt;">Also, I noted the comment in #translucentImage:at:sourceRect: which states</span><span style="font-size: 12pt;">:</span><br>
</p>
<p><span><br>
</span></p>
<p><span></span></p>
<div>"Draw a translucent image using the best available way of representing translucency.</div>
<div><span style="white-space:pre"></span>Note: This will be fixed in the future."</div>
<br>
<p></p>
<p><span>Which workaround is this comment referring to?</span></p>
<p><span><br>
</span></p>
<p><span>Looking forward to your help! :-)</span></p>
<p><span><br>
</span></p>
<p><span>Best,</span></p>
<p><span>Christoph</span></p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<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>
</div>
</body>
</html>