<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On Apr 19, 2016, at 7:49 PM, Vijay Anand <<a href="mailto:vijay2@cox.net" class="">vijay2@cox.net</a>> wrote:</div><div class=""><div class="">The colors look a little weird, so I probably have a bug.<br class=""></div></div></blockquote><div><br class=""></div><div>It works better with a true-color image (third argument to the constructor).</div><div><br class=""></div><div><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">my $image = GD::Image::->new($cols,$rows<b class="">,1</b>)</span></div></div><div><br class=""></div><div>Good lord, string eval is slow. It’s much faster if you write it out to a temp file and then require it. That’s still much slower than JSON::XS.</div><div><br class=""></div><div> -bob</div><div><br class=""></div></div></body></html>