chocolate cookie
This example draws a plate of desserts on an HTML canvas, featuring a chocolate chip cookie, a donut, a strawberry, and nuts. The code uses the Canvas 2D API, including methods like `arc`, `ellipse`, and `fill`, to render each shape with specific colors and positions. Randomly placed chocolate chips are generated on the cookie using `Math.random` to vary their angle and distance from the center. The composition is static, with all elements hardcoded in JavaScript, and displays the final scene on a 600 by 500 pixel canvas.