"We love Stories" is a programmer for the commemoration and the first anniversary of the fall of the romantic program written by, see is probably just out at the end of the 11, then felt the bunker, did not expect many years later today, the passage of time, changed, when I already have the ability to read part of the code, MM also become a ex_love, can not help but let people sigh. To the bottom, the code is simple appreciation.
Global I divided it into three parts, one is the left part of the confession text, temporarily called it "typewriter" effect, the second part is the most cool heart-shaped petal effect, the third part is the countdown effect. This article first analyzes the most complex effect but applies the simplest heart-shaped petal effect.
Heart-shaped petal effect is actually used in a foreign class flowerpower, at that time I remember I also played, but a few years passed has been reported 404, can only take Hackerzhou code analysis. Looked at, there are three main classes: garden, Bloom and Petal, as the name implies, respectively, gardens, flowers and petals, a layer of floor area is reduced, garden will call bloom method, Bloom will call the method in petal, because the class has been encapsulated, For the time being, I only focus on its invocation.
The flowerpower of the appreciation of our love stories