Patent attributes
A lighting device has a power interface and a control circuit in communication with a program and the LEDs to simulate a flame. The program determines a first group of LED control integers to simulate a perpetual middle with a perpetual middle center and a perpetual middle range within which one or more of the LEDs are to be at least partially actuated. At least one LED is actuated based on the first group of LED control integers. A first target for simulating movement of the perpetual middle center toward the first target and a first acceleration value is defined. The program determines a second group of LED control integers based on the first target and the first acceleration value such that the perpetual middle center becomes closer to the first target. One or more of the LEDs is actuated based on the second group of LED control integers.