我在此配置文件中:
let canvas = document.getElementById("canvas")
canvas.width = canvas.height = 200;
$(canvas).appendTo(document.body)
let ctx = canvas.getContext("2d")
function shape(x,y,s) {
var f = s/18
ctx.moveTo(x-10*f, y-60*f);
ctx.lineTo(x-110*f, y-60*f);
ctx.lineTo(x-160*f, y-10*f);
ctx.lineTo(x-60*f, y-10*f);
ctx.lineTo(x-10*f, y-60*f);
ctx.fill();
ctx.stroke();
}
let update = function(input) {
let scale = input.value;
ctx.clearRect(0, 0, canvas.width, canvas.height)
ctx.lineWidth = Math.min(scale/2, 2);
for (let i = 0; i < 4; i++) {
ctx.beginPath();
ctx.fillStyle = (i === 2) ? "#3b2a19" : "#957e67"
shape(canvas.width, canvas.height -i * scale * 1.5, scale)
}
}
$("input").trigger("input")
但是我要从中排除“ Makefile”。该怎么做?