private static void HandleTransformForeAlphaTag(AssTagContext context, DateTime startTime, DateTime endTime, float accel, string arg) { ForeColorAnimation anim = FetchColorAnimation(context, startTime, endTime, s => s.ForeColor, (s, e, c) => new ForeColorAnimation(s, c, e, c, accel)); anim.EndColor = ColorUtil.ChangeColorAlpha(anim.EndColor, 255 - (ParseHex(arg) & 255)); }
private static void HandleTransformForeColorTag(AssTagContext context, DateTime startTime, DateTime endTime, float accel, string arg) { ForeColorAnimation anim = FetchColorAnimation(context, startTime, endTime, s => s.ForeColor, (s, e, c) => new ForeColorAnimation(s, c, e, c, accel)); anim.EndColor = ParseColor(arg, anim.EndColor.A); }