Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ZoomCircle(OsbEasing.InOutBounce, "sb/circle.png", 93404, 96101, new Vector2(320, 240), new Vector2(80, 100), new Color4(200, 200, 200, 255), 0.12);
- public void ZoomCircle(OsbEasing easing, String filepath, double startTime, double endTime, Vector2 startPos, Vector2 endPos, Color4 color, double scale)
- {
- var p = GetLayer("Foreground").CreateSprite(filepath, OsbOrigin.TopCentre);
- p.Color(startTime, color);
- p.Scale(easing, startTime, startTime + (int)Beatmap.GetTimingPointAt((int)startTime).BeatDuration * 2, scale, scale * 3.8488620892437813);
- p.Rotate(easing, startTime, startTime + (int)Beatmap.GetTimingPointAt((int)startTime).BeatDuration * 2, MathHelper.DegreesToRadians(360), 0);
- p.Move(easing, startTime, startTime + (int)Beatmap.GetTimingPointAt((int)startTime).BeatDuration * 2, startPos, endPos);
- p.Move(OsbEasing.InCirc, endTime - (int)Beatmap.GetTimingPointAt((int)startTime).BeatDuration, endTime, endPos, startPos);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement