Squama is an interactive and computer-controlled window or wall that can independently control the transparency of its small square cells. When Squama is used as a window, it dynamically controls the visibility through its surface and simultaneously satisfies the needs for openness and privacy. It can also control the amount of sunlight and create shadows, called programmable shadows, in order to afford indoor comfort without completely blocking the outer view.