diff doodle/tk/color.d @ 101:523269b36711

Update to dmd 2.050
author David Bryant <bagnose@gmail.com>
date Thu, 28 Oct 2010 16:35:11 +1030
parents 535bae7a7305
children bc5baa585b32
line wrap: on
line diff
--- a/doodle/tk/color.d	Mon Oct 18 18:10:02 2010 +1030
+++ b/doodle/tk/color.d	Thu Oct 28 16:35:11 2010 +1030
@@ -1,8 +1,6 @@
 module doodle.tk.color;
 
 struct Color {
-    static immutable Color DEFAULT = Color(0.0, 0.0, 0.0, 1.0);
-
     this(in double r, in double g, in double b, in double a) {
         // XXX how to deal with out of range? Clamp/assert
         _r = r;
@@ -20,6 +18,6 @@
     double a() const { return _a; }
 
     private {
-        double _r, _g, _b, _a;
+        double _r = 0.0, _g = 0.0, _b = 0.0, _a = 1.0;
     }
 }