|
|
@ -184,7 +184,7 @@ const startWork = async () => { |
|
|
|
let currentSpeed = 0 |
|
|
|
// let poll: ReturnType<typeof setInterval> |
|
|
|
console.log(currentSpeed) |
|
|
|
const colors = ['#2E8B57', '#C0FF3E', '#8B658B', '#EE7942', '#EE1289', '#FF00FF', '#C6E2FF'] |
|
|
|
const colors = ['#FAF0E6', '#191970', '#2E8B57', '#C0FF3E', '#8B658B', '#EE7942', '#EE1289', '#FF00FF', '#C6E2FF', '#556B2F', '#00BFFF', '#7B68EE'] |
|
|
|
const sprayPointReceiveMessage = (data: any) => { |
|
|
|
const { currentPoint, nextPoint, index, number } = data |
|
|
|
drawLine(index, { x: currentPoint.x * 5, y: currentPoint.y * 5 }, number) |
|
|
|