Skip to content

Commit e0fa370

Browse files
author
ctrlaltdev
committed
Update map to light theme
1 parent 8ca3838 commit e0fa370

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

map/canvas/map.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
const height = canvas.height
1111
const width = canvas.width
1212

13-
ctx.fillStyle = "rgb(0,0,0)"
13+
ctx.fillStyle = "rgb(255,255,255)"
1414
ctx.fillRect(0, 0, width, height)
1515

1616
function draw (shapes) {
@@ -21,7 +21,7 @@
2121
ctx.lineTo(getLon(p.lon), getLat(p.lat))
2222
})
2323

24-
ctx.strokeStyle = `rgba(0,255,255)`
24+
ctx.strokeStyle = `rgba(30,30,30)`
2525
ctx.lineWidth = 1
2626
ctx.stroke()
2727
})
@@ -39,7 +39,7 @@
3939
const radius = parseInt(ip.count) * 100 / maxCount
4040
ctx.arc(getLon(ip.loc.split(',')[1]), getLat(ip.loc.split(',')[0]), radius, 0, 2 * Math.PI)
4141

42-
ctx.strokeStyle = `rgba(255,0,0)`
42+
ctx.strokeStyle = `rgba(255,${-(radius * 2.55) + 255},0)`
4343
ctx.lineWidth = 1
4444
ctx.stroke()
4545
})

map/map.png

43.6 KB
Loading

0 commit comments

Comments
 (0)