Skip to main content
deleted 23 characters in body
Source Link
dzaima
  • 20.3k
  • 2
  • 41
  • 75

Canvas, 1515 14 bytes

0c{«╷Cm±¹m±]/││0c[C²[j}¹m]/││

Try it here!Try it here!

Note that while making this I added a couple built-ins ( & ) as Canvas somehow didn't have any built-ins for ASCII/unicode before...

Explanation (some characters have been replaced to look monospace):

0c               push the charcode of "0" - 48
  {        ]     map over 1..48
   «╷ C             multiply bypush 2the &ASCII decrementcharacters
     Cm²[ ]          repeat moldby the ASCIIcounter characters(0-indexed)
 to that length
   j     ±        remove the last reversecharacter
        ¹m         mold to the length of the counter
          ±        reverse back
            /    pad each line with spaces so it looks like a diagonal
             ││  palindromize the whole thing horizontally

Canvas, 15 bytes

0c{«╷Cm±¹m±]/││

Try it here!

Note that while making this I added a couple built-ins ( & ) as Canvas somehow didn't have any built-ins for ASCII/unicode before...

Explanation (some characters have been replaced to look monospace):

0c               push the charcode of "0" - 48
  {        ]     map over 1..48
   «╷              multiply by 2 & decrement
     Cm            mold the ASCII characters to that length
       ±           reverse
        ¹m         mold to the length of the counter
          ±        reverse back
            /    pad each line with spaces so it looks like a diagonal
             ││  palindromize the whole thing horizontally

Canvas, 15 14 bytes

0c[C²[j}¹m]/││

Try it here!

Note that while making this I added a couple built-ins ( & ) as Canvas somehow didn't have any built-ins for ASCII/unicode before...

Explanation (some characters have been replaced to look monospace):

0c              push the charcode of "0" - 48
  {       ]     map over 1..48
   C              push the ASCII characters
    ²[ ]          repeat by the counter (0-indexed)
      j             remove the last character
        ¹m        mold to the length of the counter
           /    pad each line with spaces so it looks like a diagonal
            ││  palindromize the whole thing horizontally
Source Link
dzaima
  • 20.3k
  • 2
  • 41
  • 75

Canvas, 15 bytes

0c{«╷Cm±¹m±]/││

Try it here!

Note that while making this I added a couple built-ins ( & ) as Canvas somehow didn't have any built-ins for ASCII/unicode before...

Explanation (some characters have been replaced to look monospace):

0c               push the charcode of "0" - 48
  {        ]     map over 1..48
   «╷              multiply by 2 & decrement
     Cm            mold the ASCII characters to that length
       ±           reverse
        ¹m         mold to the length of the counter
          ±        reverse back
            /    pad each line with spaces so it looks like a diagonal
             ││  palindromize the whole thing horizontally