Controlling the amount of light that is allowed to come through a window or a glass pane has become an…