예제 #1
0
파일: CirclePiece.cs 프로젝트: ry00001/osu
 private void resetEdgeEffects()
 {
     background.EdgeEffect = new EdgeEffectParameters
     {
         Type   = EdgeEffectType.Glow,
         Colour = AccentColour.Opacity(KiaiMode ? edge_alpha_kiai : 1f),
         Radius = KiaiMode ? 32 : 8
     };
 }
예제 #2
0
파일: DrawableFruit.cs 프로젝트: tgi74/osu
            public Pulp()
            {
                Size = new Vector2(pulp_size);

                EdgeEffect = new EdgeEffectParameters
                {
                    Type   = EdgeEffectType.Glow,
                    Radius = 5,
                    Colour = AccentColour.Opacity(0.5f),
                };
            }
예제 #3
0
        private void updateAccentColour()
        {
            if (!IsLoaded)
            {
                return;
            }

            foreground.Colour = AccentColour.Opacity(0.5f);
            background.Colour = AccentColour.Opacity(0.7f);

            const float animation_length = 50;

            foreground.ClearTransforms(false, nameof(foreground.Colour));
            if (hitting)
            {
                // wait for the next sync point
                double synchronisedOffset = animation_length * 2 - Time.Current % (animation_length * 2);
                using (foreground.BeginDelayedSequence(synchronisedOffset))
                    foreground.FadeColour(AccentColour.Lighten(0.2f), animation_length).Then().FadeColour(foreground.Colour, animation_length).Loop();
            }

            subtractionCache.Invalidate();
        }