未验证 提交 d480ce5a 编写于 作者: 葛亚芳 提交者: Gitee

update en/application-dev/reference/apis/js-apis-webgl.md.

Signed-off-by: N@ge-yafang <geyafang@huawei.com>
上级 e490a925
......@@ -12,7 +12,8 @@ This module provides WebGL APIs that correspond to the OpenGL ES 2.0 feature set
Create a **<canvas\>** component in the HML file. The following is an example:
```
```html
<!--xxx.hml-->
<div class="container">
<canvas ref="canvas1" style="width : 400px; height : 200px; background-color : lightyellow;"></canvas>
<button class="btn-button" onclick="BtnDraw2D">BtnDraw2D</button>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册