Exemplo n.º 1
0
        private void DrawHoldRibbon(Graphics context, double now, Note startNote, Note endNote)
        {
            OnStageStatus s1 = NotesLayerUtils.GetNoteOnStageStatus(startNote, now), s2 = NotesLayerUtils.GetNoteOnStageStatus(endNote, now);

            if (s1 == s2 && s1 != OnStageStatus.OnStage)
            {
                return;
            }

            var mesh = new HoldRibbonMesh(context, startNote, endNote, now);

            mesh.Initialize();
            mesh.Fill(_ribbonBrush);
        }