Mercurial > projects > dynamin
diff dynamin/painting/color.d @ 106:acdbb30fee7e
Port to D2.
Most of the effort was dealing with immutable and const.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Mon, 17 Dec 2012 23:41:50 -0600 |
parents | 5c8c1c2e12c0 |
children |
line wrap: on
line diff
--- a/dynamin/painting/color.d Sat Nov 24 10:21:50 2012 -0600 +++ b/dynamin/painting/color.d Mon Dec 17 23:41:50 2012 -0600 @@ -95,7 +95,7 @@ B = 255 - B; } string toUtf8() { - return format("Color [R={,3}, G={,3}, B={,3}]", R, G, B); + return format("Color [R={,3}, G={,3}, B={,3}]", R, G, B).idup; } static: Color opCall(ubyte a, ubyte r, ubyte g, ubyte b) {