[cogl/wip/cogl-sharp: 2/51] cogl-sharp: Add a ToString() method to Color
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/cogl-sharp: 2/51] cogl-sharp: Add a ToString() method to Color
- Date: Sat, 5 Jan 2013 16:48:27 +0000 (UTC)
commit 187eb5aa04110ffc02cf8505dd4d9917eeb8e5ce
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]