func (s *CanvasScreen) DrawRect(x, y, w, h int, color Color) {
	ctx := s.Canvas.Call("getContext", "2d")

	ctx.Set("fillStyle", fmt.Sprintf("rgb(%d, %d, %d)", color.R, color.G, color.B))
	ctx.Call("fillRect", x, y, w, h)
}
// HTML5 Canvas implementation of a DrawRect
HTML5 Canvas implementation of a DrawRect
// HTML5 Canvas implementation of a DrawRect
func (s *CanvasScreen) DrawRect(x, y, w, h int, color Color) {
	ctx := s.Canvas.Call("getContext", "2d")
	ctx.Set("fillStyle", fmt.Sprintf("rgb(%d, %d, %d)", color.R, color.G, color.B))
	ctx.Call("fillRect", x, y, w, h)
}
func ( s * CanvasScreen ) DrawRect ( x , y , w , h int , color Color ) { ctx := s . Canvas . Call ( " " , " " ) ctx . Set ( " " , fmt . Sprintf ( " " , color . R , color . G , color . B ) ) ctx . Call ( " " , x , y , w , h ) }
HTML5 Canvas implementation of a DrawRect
HTML5 Canvas implementation of a DrawRect