The electrochromic coatings — which function as so-called sunglasses for windows — change color on demand and subsequently prevent light from entering a space, thereby keeping it cool.