This commit is contained in:
Dragon Fire
2024-03-24 14:06:20 -04:00
parent e687fcd8a6
commit b39e38fd10
+4 -4
View File
@@ -35,10 +35,10 @@ module.exports = class FacesCommand extends Command {
ctx.drawImage(base, 0, 0);
for (const face of faces) {
ctx.fillStyle = 'blue';
ctx.fillRect(face.box.xMin, face.box.yMax, 10, face.box.height);
ctx.fillRect(face.box.xMin, face.box.xMax, face.box.width, 10);
ctx.fillRect(face.box.yMin, face.box.yMax, face.box.width, 10);
ctx.fillRect(face.box.yMin, face.box.xMax, 10, face.box.height);
ctx.fillRect(face.box.xMin, face.box.yMin, 10, face.box.height);
ctx.fillRect(face.box.xMin, face.box.yMin, face.box.width, 10);
ctx.fillRect(face.box.xMin, face.box.yMax, face.box.width, 10);
ctx.fillRect(face.box.xMax, face.box.yMin, 10, face.box.height);
}
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'faces.png' }] });
}