mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
@ -197,7 +197,7 @@ const (
|
||||
amortization = 0.95
|
||||
)
|
||||
|
||||
fn get_webgl() (&JS.HTMLCanvasElement, JS.WebGLRenderingContext) {
|
||||
fn get_webgl() (JS.HTMLCanvasElement, JS.WebGLRenderingContext) {
|
||||
JS.console.log(dom.document)
|
||||
elem := dom.document.getElementById('myCanvas'.str) or { panic('cannot get canvas') }
|
||||
match elem {
|
||||
|
Reference in New Issue
Block a user