/Shapes

Draw shapes using input

Primary LanguageJavaScript

Shapes

Draw shapes using NodeJS

Usage: node shapes.js:

  • Pattern: String (required), PyramidSquare, Square, DiamondAnimation.
  • Size: Number (required), this will be the size of the shape.

Square size: 20

####################
#                  #
#                  #
#                  #
#                  #
#                  #
#                  #
#                  #
#                  #
#                  #
#                  #
####################

PyramidSquare size: 20

########################################
#                   @                  #
#                  @@@                 #
#                 @@@@@                #
#                @@@@@@@               #
#               @@@@@@@@@              #
#              @@@@@@@@@@@             #
#             @@@@@@@@@@@@@            #
#            @@@@@@@@@@@@@@@           #
########################################

DiamondAnimation size: 10

        ##
       ####
      ######
     ########
    ##########
   ############
  ##############
 ################
##################
 ################
  ##############
   ############
    ##########
     ########
      ######
       ####
        ##