LCD patterns are formed when: