[cogl/wip/cogl-sharp: 25/43] cogl-sharp: Add a ToString() method to Color



commit 69099641ed4f1d6dab5df073a2ced54b24c1d2d5
Author: Damien Lespiau <damien lespiau intel com>
Date:   Sat Sep 29 18:14:31 2012 +0100

    cogl-sharp: Add a ToString() method to Color

 cogl-sharp/Color.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/cogl-sharp/Color.cs b/cogl-sharp/Color.cs
index 6ff3121..a04b646 100644
--- a/cogl-sharp/Color.cs
+++ b/cogl-sharp/Color.cs
@@ -51,5 +51,10 @@ namespace Cogl
         {
             cogl_color_unpremultiply(ref this);
         }
+
+        public override String ToString()
+        {
+            return String.Format("({0},{1},{2},{3})", Red, Green, Blue, Alpha);
+        }
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]