From 62f47ed02f0b021874352b1d68c468e5fe4e85c9 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 3 Jan 2015 01:19:25 +0900 Subject: [PATCH] Change the body's background color black --- internal/ui/ui_js.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/ui/ui_js.go b/internal/ui/ui_js.go index 512a91a03..c9622986d 100644 --- a/internal/ui/ui_js.go +++ b/internal/ui/ui_js.go @@ -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,