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



commit 26e62f573da90c9f2fcb072cc72076722be6f113
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 5330abe..f19da49 100644
--- a/cogl-sharp/Color.cs
+++ b/cogl-sharp/Color.cs
@@ -26,5 +26,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]