public void SetFillColor(LuaColor color) { #if WINDOWS_PHONE polygon.Fill = new SolidColorBrush(LuaScriptingEngine.CustomControls.ColorExtension.FromColorInt(color.GetColorValue())); #elif NETFX_CORE polygon.FillColor = color.GetColorObject(); #endif }
public static LuaColor CreateFromRGB(int red, int green, int blue) { LuaColor color = new LuaColor(); color.colorObject = Color.FromArgb(255, (byte)red, (byte)green, (byte)blue); color.colorValue = color.colorObject.ToColorInt(); return(color); }
public static LuaColor FromString(String colorStr) { LuaColor color = new LuaColor(); color.colorObject = LGColorParser.Instance.ParseColor(colorStr); color.colorValue = color.colorObject.ToColorInt(); return(color); }
public void SetStrokeColor(LuaColor color) { circle.setStrokeColor(color.GetColorValue()); }
public void SetFillColor(LuaColor color) { circle.setFillColor(color.GetColorValue()); }
public void SetStrokeColor(LuaColor color) { #if WINDOWS_PHONE polygon.Stroke = new SolidColorBrush(LuaScriptingEngine.CustomControls.ColorExtension.FromColorInt(color.GetColorValue())); #endif }