Skip to content

Commit dfd0f68

Browse files
committed
README for heatmap example
1 parent 37dc489 commit dfd0f68

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

examples/heatmap/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Creating a heatmap
2+
3+
This example shows how to create a heatmap from positions where players fired their weapons from.
4+
5+
## Running the example
6+
7+
`go run heatmap.go -demo /path/to/demo > out.png`
8+
9+
This will create a PNG with dots on all the locations where shots were fired (the heatmap 'overlay').
10+
11+
This doesn't look too interesting on it's own but that can be helped by quickly mapping it to the map overview in an image editing tool (2 min tops, no skills required).
12+
13+
![Resulting heatmap before and after mapping to map overview](https://raw.githubusercontent.com/markus-wa/demoinfocs-golang/master/examples/heatmap/heatmap.jpg)

0 commit comments

Comments
 (0)