This commit is contained in:
@@ -115,7 +115,7 @@ function drawTuiParticle(x: number, y: number, size: number, r: number, g: numbe
|
||||
function drawBgParticle(x: number, y: number, size: number, r: number, g: number, b: number) {
|
||||
if (!ctx) return
|
||||
|
||||
ctx.fillStyle = `rgba(${r},${g},${b},0.3)`
|
||||
ctx.fillStyle = `rgba(${r},${g},${b},0.7)`
|
||||
ctx.fillRect(Math.round(x - size / 2), Math.round(y - size / 2), size, size)
|
||||
}
|
||||
|
||||
|
||||
@@ -71,8 +71,8 @@ const palette = [
|
||||
]
|
||||
|
||||
const colorMap = ref({})
|
||||
const selectedColor = ref(palette[0])
|
||||
const selectedColorId = ref(0)
|
||||
const selectedColor = ref(null)
|
||||
const selectedColorId = ref(null)
|
||||
|
||||
const { get, post } = useApi();
|
||||
const { initSocket, onGridCellPaint, removeGridCellPaintListener } = useSocket();
|
||||
|
||||
Reference in New Issue
Block a user