@@ -20,25 +20,32 @@ let width = view.bounds.width
20
20
let height = view.bounds .height
21
21
let comets = [Comet (startPoint : CGPoint (x : 100 , y : 0 ),
22
22
endPoint : CGPoint (x : 0 , y : 100 ),
23
- lineColor : UIColor.white .withAlphaComponent (0.2 )),
23
+ lineColor : UIColor.white .withAlphaComponent (0.2 ),
24
+ cometColor : UIColor.white ),
24
25
Comet (startPoint : CGPoint (x : 0.4 * width, y : 0 ),
25
26
endPoint : CGPoint (x : width, y : 0.8 * width),
26
- lineColor : UIColor.white .withAlphaComponent (0.2 )),
27
+ lineColor : UIColor.white .withAlphaComponent (0.2 ),
28
+ cometColor : UIColor.white ),
27
29
Comet (startPoint : CGPoint (x : 0.8 * width, y : 0 ),
28
30
endPoint : CGPoint (x : width, y : 0.2 * width),
29
- lineColor : UIColor.white .withAlphaComponent (0.2 )),
31
+ lineColor : UIColor.white .withAlphaComponent (0.2 ),
32
+ cometColor : UIColor.white ),
30
33
Comet (startPoint : CGPoint (x : width, y : 0.2 * height),
31
34
endPoint : CGPoint (x : 0 , y : 0.25 * height),
32
- lineColor : UIColor.white .withAlphaComponent (0.2 )),
35
+ lineColor : UIColor.white .withAlphaComponent (0.2 ),
36
+ cometColor : UIColor.white ),
33
37
Comet (startPoint : CGPoint (x : 0 , y : height - 0.8 * width),
34
38
endPoint : CGPoint (x : 0.6 * width, y : height),
35
- lineColor : UIColor.white .withAlphaComponent (0.2 )),
39
+ lineColor : UIColor.white .withAlphaComponent (0.2 ),
40
+ cometColor : UIColor.white ),
36
41
Comet (startPoint : CGPoint (x : width - 100 , y : height),
37
42
endPoint : CGPoint (x : width, y : height - 100 ),
38
- lineColor : UIColor.white .withAlphaComponent (0.2 )),
43
+ lineColor : UIColor.white .withAlphaComponent (0.2 ),
44
+ cometColor : UIColor.white ),
39
45
Comet (startPoint : CGPoint (x : 0 , y : 0.8 * height),
40
46
endPoint : CGPoint (x : width, y : 0.75 * height),
41
- lineColor : UIColor.white .withAlphaComponent (0.2 ))]
47
+ lineColor : UIColor.white .withAlphaComponent (0.2 ),
48
+ cometColor : UIColor.white )]
42
49
43
50
// draw line track and animate
44
51
for comet in comets {
@@ -62,7 +69,7 @@ pod "Comets"
62
69
63
70
### Carthage
64
71
```
65
- github "cruisediary/Comets" ~> 0.3.0
72
+ github "cruisediary/Comets" ~> 0.3.1
66
73
```
67
74
68
75
## ❤️ Contribution
0 commit comments