여기에 내 스크립트가 있습니다. 검은 색 부분 만 대체하기 위해 아크 캔버스에 이미지를 삽입하려고하지만 해결책은 없습니다 ./ 스택에 처음 게시 한 것입니다. 도와 주시기를 바랍니다. 스크립트를 보는 바이올린 : http://jsfiddle.net/a1u6jmfj/
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
margin: 0px;
padding: 0px;
}
</style>
</head>
<body>
<canvas id="myCanvas" width="578" height="250"></canvas>
<script>
var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
var x = canvas.width / 2;
var y = canvas.height / 2;
var radius = 50;
var startAngle = 1.1 * Math.PI;
var endAngle = 1 * Math.PI;
var counterClockwise = false;
context.beginPath();
context.arc(x, y, radius, startAngle, endAngle, counterClockwise);
context.lineWidth = 100;
// line color
context.strokeStyle = 'black';
context.stroke();
</script>
</body>
</html>
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다