File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 22var two = new Two ( {
33 fullscreen : true ,
44 autostart : true
5- } ) . appendTo ( document . body ) ; ;
5+ } ) . appendTo ( document . body ) ;
6+ document . body . style . background = 'black' ;
67
78var rows = Math . floor ( two . height / 150 ) ;
89var cols = Math . floor ( two . width / 150 ) ;
910var radius = Math . floor ( Math . max ( two . width , two . height ) / Math . max ( rows , cols ) ) / 2 ;
1011var shapes = makeFlowers ( ) ;
11- var container = two . makeGroup ( getBackground ( ) ) ;
12+ var container = two . makeGroup ( ) ;
13+
1214for ( var r = 0 ; r < rows ; r ++ ) {
1315 // even rows have an offset of 0.5
1416 var even = ! ! ( r % 2 ) ;
@@ -46,14 +48,6 @@ two.update();
4648//
4749// });
4850
49- function getBackground ( ) {
50- var background = two . makeRectangle ( two . width / 2 , two . height / 2 ,
51- two . width , two . height ) ;
52- background . noStroke ( ) ;
53- background . fill = 'black' ;
54- background . name = 'background' ;
55- return background
56- }
5751
5852function roseMath ( v , k , t ) {
5953 v . x = radius * Math . cos ( k * t ) * Math . cos ( t ) ;
You can’t perform that action at this time.
0 commit comments