aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Fill
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2017-01-24 12:46:43 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2017-01-24 12:46:43 +0100
commitd8acaa909ce73e150827db9846cd8690fb93d68e (patch)
treec22aab77a5851aad79505a49dc6ac91ca4b0a106 /src/Fill
parente39ac936765e88382d858ee6922293315a18b60d (diff)
parent1a4fe8bd37ed4a3e3324a134df4f90c14b315918 (diff)
Merge branch 'master' into CrowIDE
Diffstat (limited to 'src/Fill')
-rw-r--r--src/Fill/Fill.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fill/Fill.cs b/src/Fill/Fill.cs
index 322fa5ae..1f455419 100644
--- a/src/Fill/Fill.cs
+++ b/src/Fill/Fill.cs
@@ -22,7 +22,10 @@ namespace Crow
return (SolidColor)SolidColor.Parse (s);
}
-
+ public static implicit operator Color(Fill c){
+ SolidColor sc = c as SolidColor;
+ return sc == null ? default(Color) : sc.color;
+ }
public static implicit operator Fill(Color c){
return new SolidColor (c);
}