14.6 (rounded rectangle) &14.5 (text shadow)&15.7 (nutrition

14.6 (rounded rectangle) &14.5 (text shadow)&15.7 (nutrition.

14.6 (Rounded Rectangle) Generalize the example in Fig 14.7 into a roundedRect function and call it twice with different arguments to place two different rounded rectangles on the canvas. Example Below.

14.7

<!DOCTYPE html>

<!– fig. 14.7 –>

<html>

   <head>

      <meta charset = “utf-8”>

      <title>Quadratic Curves</title>

   </head>

   <body>

      <canvas id = “drawRoundedRect” width = “130” height = “130”

         style = “border; 1px solid black;”>

      </canvas>

      <script>

         var canvas = document.getElementById(“drawRoundedRect”);

         var context = canvas.getContext(“2d”)

         context.beginPath();

         context.moveTo(15, 5);

         context.lineTo(95, 5);

         context.quadraticCurveTo(105, 5, 105, 15);

         context.lineTo(105, 95);

         context.quadraticCurveTo(105, 105, 95, 105);

         context.lineTo(15, 105);

         context.quadraticCurveTo(5, 105, 5, 95);

         context.lineTo(5, 15);

         context.quadraticCurveTo(5, 5, 15, 5);

         context.closePath();

         context.fillStyle = “yellow”;

         context.fill();

         context.strokeStyle = “royalblue”;

         context.lineWidth = 6;

         context.stroke();

      </script>

   </body>

</html>

14.6 (rounded rectangle) &14.5 (text shadow)&15.7 (nutrition

Calculate your order
Pages (275 words)
Standard price: $0.00
Client Reviews
4.9
Sitejabber
4.6
Trustpilot
4.8
Our Guarantees
100% Confidentiality
Information about customers is confidential and never disclosed to third parties.
Original Writing
We complete all papers from scratch. You can get a plagiarism report.
Timely Delivery
No missed deadlines – 97% of assignments are completed in time.
Money Back
If you're confident that a writer didn't follow your order details, ask for a refund.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Power up Your Academic Success with the
Team of Professionals. We’ve Got Your Back.
Power up Your Study Success with Experts We’ve Got Your Back.