Пример #1
0
        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
        }
Пример #2
0
        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);
        }
Пример #3
0
        public static LuaColor FromString(String colorStr)
        {
            LuaColor color = new LuaColor();

            color.colorObject = LGColorParser.Instance.ParseColor(colorStr);
            color.colorValue  = color.colorObject.ToColorInt();
            return(color);
        }
Пример #4
0
 public void SetStrokeColor(LuaColor color)
 {
     circle.setStrokeColor(color.GetColorValue());
 }
Пример #5
0
 public void SetFillColor(LuaColor color)
 {
     circle.setFillColor(color.GetColorValue());
 }
Пример #6
0
        public void SetStrokeColor(LuaColor color)
        {
#if WINDOWS_PHONE
            polygon.Stroke = new SolidColorBrush(LuaScriptingEngine.CustomControls.ColorExtension.FromColorInt(color.GetColorValue()));
#endif
        }