如何使用多个画布上下文? [英] How to use multiple canvas contexts?
本文介绍了如何使用多个画布上下文?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用 experimental-webgl
,以及 2d
画布上下文。在我绘制了3d对象之后,我想在它上面绘制一些2d对象。
I would like to use experimental-webgl
, and the 2d
canvas context also. After I've drawn the 3d objects, I want to draw some 2d objects over it.
我应该怎么做?
推荐答案
您需要一个单独的画布。你可以把另一个画布放在第一个画布上,这不算错误。
You need a separate canvas. You can put the other canvas over the first one, this is not considered bad practice.
这篇关于如何使用多个画布上下文?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文