mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
Add separator between 7G & 0G
This commit is contained in:
parent
80ccd12a90
commit
ae7276d13c
@ -155,6 +155,20 @@ Window {
|
||||
ctx.font = "bold 18px " + app.monoFont
|
||||
ctx.fillStyle = accel.indicatorColor
|
||||
ctx.fillText(i, dX, dY)
|
||||
|
||||
if (i === 7) {
|
||||
var x = gauge.width / 2
|
||||
var y = gauge.height / 2
|
||||
ctx.lineWidth = 2
|
||||
ctx.strokeStyle = accel.indicatorColor
|
||||
|
||||
ctx.beginPath();
|
||||
ctx.arc(x, y, Math.abs(dX - x) + 21, theta * 1.05, Math.PI * 0.95)
|
||||
ctx.stroke()
|
||||
ctx.beginPath();
|
||||
ctx.arc(x, y, Math.abs(dX - x) + 15, theta * 1.05, Math.PI * 0.95)
|
||||
ctx.stroke()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 52 KiB |
Loading…
x
Reference in New Issue
Block a user