QB64.org Forum
		Active Forums => Programs => Topic started by: AndyA on April 13, 2021, 11:02:30 pm
		
			
			- 
				https://rosettacode.org/wiki/Cantor_set (https://rosettacode.org/wiki/Cantor_set)
 
 
 The task description basically says draw the Cantor Set.
 It's refers to the Wikipedia page here https://en.wikipedia.org/wiki/Cantor_set (https://en.wikipedia.org/wiki/Cantor_set)
 
 [begin edit] Had to delete timing variables not used for posting [end edit]
 
 -   
-   
-   
-   
-   
-   
-     newLength = length \ 3 
-     For-  j  =-  index  To-  high  - 1
 
-         For-  i  =-  start  +-  newLength  To-  start  +-  newLength  * 2 - 1
 
-             a(i, j) = 1 
-     Call-  calc (- start ,-  newLength ,-  index  + 1)
 
-     Call-  calc (- start  +-  newLength  * 2,-  newLength ,-  index  + 1)
 
-   
-         j = y + 1 
-             i = x + 34 
-             If-  a (- x ,-  y ) = 0 Then Line (- i ,-  j  * 24 - 5)-(- i ,-  j  * 24 + 17)