Example Wiggle Word

ASnake Documentation

Table Of Contents

    Uses loop iterations to print spaces in various amounts to produce a 'wiggle' effect on a word.

    Code:

    word is "Wiggle"
    int:
        swayAmount 12
        lineAmount 2
    loop 4
        loop swayAmount space print f"{' '*space then word}"
        loop lineAmount print f"{' '*swayAmount then word}"
        swayAmount -: space print f"{' '*space then word}"
        loop lineAmount print word
    

    Result:

    Wiggle
     Wiggle
      Wiggle
       Wiggle
        Wiggle
         Wiggle
          Wiggle
           Wiggle
            Wiggle
             Wiggle
              Wiggle
               Wiggle
                Wiggle
                Wiggle
                Wiggle
               Wiggle
              Wiggle
             Wiggle
            Wiggle
           Wiggle
          Wiggle
         Wiggle
        Wiggle
       Wiggle
      Wiggle
     Wiggle
    Wiggle
    Wiggle
    Wiggle
     Wiggle
      Wiggle
       Wiggle
        Wiggle
         Wiggle
          Wiggle
           Wiggle
            Wiggle
             Wiggle
              Wiggle
               Wiggle
                Wiggle
                Wiggle
                Wiggle
               Wiggle
              Wiggle
             Wiggle
            Wiggle
           Wiggle
          Wiggle
         Wiggle
        Wiggle
       Wiggle
      Wiggle
     Wiggle
    Wiggle
    Wiggle
    Wiggle
     Wiggle
      Wiggle
       Wiggle
        Wiggle
         Wiggle
          Wiggle
           Wiggle
            Wiggle
             Wiggle
              Wiggle
               Wiggle
                Wiggle
                Wiggle
                Wiggle
               Wiggle
              Wiggle
             Wiggle
            Wiggle
           Wiggle
          Wiggle
         Wiggle
        Wiggle
       Wiggle
      Wiggle
     Wiggle
    Wiggle
    Wiggle
    Wiggle
     Wiggle
      Wiggle
       Wiggle
        Wiggle
         Wiggle
          Wiggle
           Wiggle
            Wiggle
             Wiggle
              Wiggle
               Wiggle
                Wiggle
                Wiggle
                Wiggle
               Wiggle
              Wiggle
             Wiggle
            Wiggle
           Wiggle
          Wiggle
         Wiggle
        Wiggle
       Wiggle
      Wiggle
     Wiggle
    Wiggle
    Wiggle
    
    Scroll to top