Watch a demo of different values of the strokeStyle property.
Or click a specific value to see the result:
const c = document.getElementById('myCanvas'); const ctx = c.getContext('2d'); ctx.strokeStyle='#FF9900'; ctx.strokeRect(20,20,150,100);
Play more with the code in our Tryit yourself editor: Try it Yourself ❯