Nested CANVAS elements

后端 未结 4 1093
孤街浪徒
孤街浪徒 2021-01-17 12:14

Is it possible to have a element within another element? I know i can layer them, but is this possible -


    

        
4条回答
  •  逝去的感伤
    2021-01-17 12:48

    You might want to consider doing a virtual embedding by translating to various positions on your canvas.

    Here's an example of doing this:

    http://marketimpacts.com/storage/9781118385357%20ls0702%20Complex%20Objects.htm

    It's from:

    http://www.amazon.com/HTML5-Canvas-For-Dummies-Cowan/dp/1118385357/ref=cm_cmu_up_thanks_hdr

提交回复
热议问题