
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
github.com/4ydx/webgl
Supply Chain Security
Vulnerability
Quality
Maintenance
License
GopherJS bindings for WebGL context.
Supports a subset of webgl2: VAOs and instanced arrays. Adding additional support is trivial and pull requests are welcome.
webgl_example.go:
package main
import (
"github.com/gopherjs/gopherjs/js"
"github.com/gopherjs/webgl"
)
func main() {
document := js.Global.Get("document")
canvas := document.Call("createElement", "canvas")
document.Get("body").Call("appendChild", canvas)
attrs := webgl.DefaultAttributes()
attrs.Alpha = false
gl, err := webgl.NewContext(canvas, attrs)
if err != nil {
js.Global.Call("alert", "Error: "+err.Error())
}
gl.ClearColor(0.8, 0.3, 0.01, 1)
gl.Clear(gl.COLOR_BUFFER_BIT)
}
webgl_example.html:
<html><body><script src="webgl_example.js"></script></body></html>
To produce webgl_example.js
file, run gopherjs build webgl_example.go
.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.