mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
Change the body's background color black
This commit is contained in:
parent
ae04bb17f6
commit
62f47ed02f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user