Change the body's background color black

This commit is contained in:
Hajime Hoshi 2015-01-03 01:19:25 +09:00
parent ae04bb17f6
commit 62f47ed02f

View File

@ -58,6 +58,7 @@ func init() {
canvas.Set("width", 16)
canvas.Set("height", 16)
doc.Get("body").Call("appendChild", canvas)
doc.Get("body").Get("style").Set("backgroundColor", "#000")
webglContext, err := webgl.NewContext(canvas, &webgl.ContextAttributes{
Alpha: true,
PremultipliedAlpha: true,