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

Menu