HTML 5 캔버스를 사용하고 이미지 경로를 변경할 수 있습니다. 나는 당신을 도울 수있는 jsfiddle을 만들었습니다.
http://jsfiddle.net/ihordeyneka/NKbBD/
var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
var pattern = null;
var currentSize = 100;
var step = 1;
var direction = 1;
var imageObj = new Image();
imageObj.onload = function() {
pattern = context.createPattern(imageObj, 'repeat');
setInterval(draw, 10);
};
imageObj.src = 'http://www.html5canvastutorials.com/demos/assets/wood-pattern.png';
function draw() {
context.clearRect(0, 0, 200, 200);
context.beginPath();
context.moveTo(25,25);
context.lineTo(currentSize,25);
context.lineTo(25,currentSize);
context.closePath();
context.fillStyle = pattern;
context.fill();
currentSize += direction * step;
if(currentSize > 150){
direction = -1;
}
if(currentSize < 50){
direction = 1;
}
};
당신이 지금까지 함께 와서 무엇을 작동하지 않는가? – seemly
나는 표준 자르기를 생각해 냈다. 그러나 기울임 꼴을 적용하는 방법을 모릅니다. – friedman
기울이기 셰이프에 캔버스를 사용할 수 있습니다. http://jsfiddle.net/peteng/KAkvX/ – Pete