// wheels ctx.fillStyle = "#111"; ctx.beginPath(); ctx.rect(-w/2+4, -h/2+32, 7, 12); ctx.rect(w/2-11, -h/2+32, 7, 12); ctx.rect(-w/2+4, h/2-12, 7, 12); ctx.rect(w/2-11, h/2-12, 7, 12); ctx.fill(); // rims ctx.fillStyle = "#aaa"; ctx.beginPath(); ctx.arc(-w/2+7, -h/2+38, 4, 0, Math.PI*2); ctx.arc(w/2-7, -h/2+38, 4, 0, Math.PI*2); ctx.arc(-w/2+7, h/2-6, 4, 0, Math.PI*2); ctx.arc(w/2-7, h/2-6, 4, 0, Math.PI*2); ctx.fill(); ctx.restore();
Notes:
button background: #f5b642; border: none; font-weight: bold; font-family: monospace; padding: 0.3rem 1rem; border-radius: 2rem; cursor: pointer; transition: 0.1s linear; box-shadow: 0 2px 0 #7a3e0a; drift hunters html code