clr := color.RGBA{100, 149, 237, 255} glctx.ClearColor( float32(clr.R)/255.0, float32(clr.G)/255.0, float32(clr.B)/255.0, float32(clr.A)/255.0)
glctx.ClearColor(1.0, 1.0, 1.0, 1.0)In this example, the ClearColor method is used to set the clear color to white (1.0, 1.0, 1.0) with full alpha (1.0). Overall, the package library used here is golang.org.x.mobile.gl and this method is used to set the clear color values for buffer clearing.