Draw icons on canvas

as shown in the picture, draw a picture with canvas.
now add an arrow icon / pedestrian icon to the diagram. The icon can be changed in different colors (red, yellow, green and gray)
consult the implementation plan

the method that comes to mind so far..

  1. still draw in pure canvas.
  2. make png, of all icons and colors with drawImage and draw them
  3. Iconfont?

add:
the base map uses canvas because the intersection can be generated dynamically, and several of them can be selected at random in 8 directions,
and each direction can have different configuration parameters

.

clipboard.png

Mar.21,2021

it's easy to put a picture, because it still takes time for a pedestrian icon to be drawn


pixijs. CanvasAPI is not for human use.


I hope I can communicate with jye313@126.com via email

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31483-2bd8d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31483-2bd8d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?