mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +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("width", 16)
|
||||||
canvas.Set("height", 16)
|
canvas.Set("height", 16)
|
||||||
doc.Get("body").Call("appendChild", canvas)
|
doc.Get("body").Call("appendChild", canvas)
|
||||||
|
doc.Get("body").Get("style").Set("backgroundColor", "#000")
|
||||||
webglContext, err := webgl.NewContext(canvas, &webgl.ContextAttributes{
|
webglContext, err := webgl.NewContext(canvas, &webgl.ContextAttributes{
|
||||||
Alpha: true,
|
Alpha: true,
|
||||||
PremultipliedAlpha: true,
|
PremultipliedAlpha: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user