Feat: 레이블 컬러 변경

This commit is contained in:
jhynsoo 2024-09-24 09:47:34 +09:00
parent 2c65cb18bc
commit f74dbd363b

View File

@ -119,7 +119,7 @@ export default function ImageCanvas() {
setPolygonPoints([]);
if (polygonPoints.length < 4) return;
const color = Math.floor(Math.random() * 65535)
const color = Math.floor(Math.random() * 0xffffff)
.toString(16)
.padStart(6, '0');
const id = labels.length + 1;
@ -146,7 +146,7 @@ export default function ImageCanvas() {
return;
}
setRectPoints([]);
const color = Math.floor(Math.random() * 65535)
const color = Math.floor(Math.random() * 0xffffff)
.toString(16)
.padStart(6, '0');
const id = labels.length;