Feat: 레이블 컬러 변경
This commit is contained in:
parent
2c65cb18bc
commit
f74dbd363b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user