Код: Выделить всё
const canvas = document.querySelector(".canvas");
const ctx = canvas.getContext("2d")
ctx.beginPath()
ctx.arc(75, 75, 60, 0, Math.PI * 2, true)
ctx.moveTo(40, 40)
ctx.arc(50, 50, 10, 0, Math.PI * 2, true)
ctx.moveTo(60, 50)
ctx.arc(100, 50, 10, 0, Math.PI * 2, true)
ctx.moveTo(110, 110)
ctx.arc(80, 110, 30, 0, Math.PI, true)
ctx.stroke()< /code>
Ожидаемое лицо:
Подробнее здесь: https://stackoverflow.com/questions/795 ... aws-a-line