AlphaTab.Rendering.Glyphs.TripletFeelGlyph.RenderTriplet C# (CSharp) Method

RenderTriplet() private method

private RenderTriplet ( float cx, float cy, ICanvas canvas ) : void
cx float
cy float
canvas ICanvas
return void
        private void RenderTriplet(float cx, float cy, ICanvas canvas)
        {
            cy += 2*Scale;
            var font = Renderer.Resources.EffectFont;
            canvas.Font = new Font(font.Family, font.Size * 0.8f, font.Style);

            var rightX = cx + NoteSeparation * Scale + 3 * Scale;

            canvas.BeginPath();
            canvas.MoveTo(cx, cy + (3 * Scale));
            canvas.LineTo(cx, cy);
            canvas.LineTo(cx + (5 * Scale), cy);

            canvas.MoveTo(rightX + (5 * Scale), cy + (3 * Scale));
            canvas.LineTo(rightX + (5 * Scale), cy);
            canvas.LineTo(rightX, cy);

            canvas.Stroke();

            canvas.FillText("3", cx + (7 * Scale), cy - (10 * Scale));

            canvas.Font = font;
        }