예제 #1
0
        public ColorLayer(Color color, SizeF contentSize)
        {
            _squareColors = new byte[4 * 4];

            ContentSize = contentSize;
            Color = color;
        }
예제 #2
0
        public override void Start()
        {
            base.Start();

            _from = (Target as TextureNode).Color;
        }
예제 #3
0
 public ColorLayer(Color color)
     : this(color, Director.Instance.WinSize)
 {
 }
예제 #4
0
 public TintTo(float duration, byte red, byte green, byte blue)
     : base(duration)
 {
     _to = Color.FromRGBA(red, green, blue, 255);
 }