File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ def _starting_point(self):
7777 spoint [1 ] += w [i ] * self ._corners [i ][1 ]
7878 return spoint
7979
80- def iterate (self , steps : int = 10 , discard : int = 5 ):
80+ def iterate (self , steps : int = 10000 , discard : int = 100 ):
8181 """Discards the first discard points.
8282 The third element in each tuple is the random chosen corner index
8383 be aware that, currently, index is a float"""
@@ -131,7 +131,7 @@ def gradient_color(self):
131131 colors = iter ([plt .cm .tab20 (i ) for i in range (20 )])
132132 cc = []
133133 i = 0
134- # TODO: this can only create a limited number of colors then repeat
134+ # TODO: this can only create a limited number of colors then repeat set pattern
135135 while len (cc ) < self ._corners .shape [0 ]:
136136 cc .append (next (colors ))
137137 i += 1
Original file line number Diff line number Diff line change 1+ import chaos_game as cg
2+
3+
4+ triangle = cg .ChaosGame ()
5+ triangle .iterate (20000 , 100 )
6+ triangle .show (True )
You can’t perform that action at this time.
0 commit comments