public ColorLayer(Color color, SizeF contentSize) { _squareColors = new byte[4 * 4]; ContentSize = contentSize; Color = color; }
public override void Start() { base.Start(); _from = (Target as TextureNode).Color; }
public ColorLayer(Color color) : this(color, Director.Instance.WinSize) { }
public TintTo(float duration, byte red, byte green, byte blue) : base(duration) { _to = Color.FromRGBA(red, green, blue, 255); }