private void DrawSlideRibbon(Graphics context, double now, Note startNote, Note endNote) { if (endNote.Helper.IsFlick) { DrawFlickRibbon(context, now, startNote, endNote); return; } if (!NotesLayerUtils.IsNoteComing(startNote, now) && !NotesLayerUtils.IsNotePassed(endNote, now)) { var mesh = new SlideRibbonMesh(context, startNote, endNote, now); mesh.Initialize(); mesh.Fill(_ribbonBrush); } }