We need to draw a rectangle with round edges.



  • индикатор

    Help me draw the canvas, preferably that color.



  • var cnv = document.getElementById('cnv');
    var ctx = cnv.getContext('2d');
    ctx.beginPath();
    ctx.rect(100, 50, 3, 100);
    ctx.fillStyle = '#00BFF5';
    ctx.fill();
    ctx.strokeStyle = '#00BFF5';
    ctx.lineJoin = 'round';
    ctx.lineWidth = 35;
    ctx.stroke();
       
    <canvas id="cnv" width="200" height="200"></canvas>




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2