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



commit 99e5b65730651d79992c742a467a6a39c28d5505
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]