How do i tint an image with HTML5 Canvas?

后端 未结 6 2037
粉色の甜心
粉色の甜心 2020-11-30 03:23

My question is, what is the best way to tint an image that is drawn using the drawImage method. The target useage for this is advanced 2d particle-effects (game development)

6条回答
  •  情歌与酒
    2020-11-30 04:03

    I would take a look at this: http://www.arahaya.com/canvasscript3/examples/ he seems to have a ColorTransform method, I believe he is drawing a shape to do the transform but perhaps based on this you can find a way to adjust a specific image.

提交回复
热议问题