Skip to content

shadypollen/nested-triangles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Nested Triangle Generator

*******************************.*******************************
 *****************************...***************************** 
  ***************************.....***************************  
   *************************.......*************************   
    ***********************.........***********************    
     *********************...........*********************     
      *******************.............*******************      
       *****************...............*****************       
        ***************.*******.*******.***************        
         *************...*****...*****...*************         
          ***********.....***.***.***.....***********          
           *********.......*...*...*.......*********           
            *******.........*******.........*******            
             *****...........*****...........*****             
              ***.............***.............***              
               *...............*...............*               
                *******************************                
                 *****************************                 
                  ***************************                  
                   *************************                   
                    ***********************                    
                     *********************                     
                      *******************                      
                       *****************                       
                        ***************                        
                         *************                         
                          ***********                          
                           *********                           
                            *******                            
                             *****                             
                              ***                              
                               *                               

This is a simple Python 3 script that generates nested triangles.

Simply input the size of the base of the triangle(must be an odd integer) and how many times you'd like for it to nest.

The nesting works by putting the previous nested triangle into the new one.

About

Generates nested triangles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages