adjust initial position
Browse files2 unmodified lines3456678913 unmodified lines23242526262728293054 unmodified lines85868787888990912 unmodified linesvar ctx = null;
// candidateの形式:[[x1, y1, score1], [x2, y2, score2], ...]
const candidate = [
const candidateSource = [
[235, 158, 0.93167633],
[234, 220, 0.97106987],
[193, 222, 0.93366587],13 unmodified lines [208, 158, 0.92053992],
[258, 154, 0.73533273]
];
const candidate = candidateSource.map(point => [point[0], point[1] - 70, point[2]]);
// subsetの形式:[[index1, index2, ..., -1], [index1, index2, ..., -1], ...]
const subset = [
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 33.81122635, 18]54 unmodified lines ctx.fillStyle = `rgb(${colors[i].join(',')})`;
ctx.fill();
ctx.fillStyle = 'rgb(255,255,255)'
ctx.fillText(index, x-3, y+4);
// ctx.fillText(index, x-3, y+4);
}
}
}static/poseEditor.js+4-3