Skip to main content
2 of 4
deleted 8 characters in body
Razetime
  • 27.4k
  • 3
  • 29
  • 72

APL(Dyalog Unicode), 110 bytes SBCS

{⊃,/⍪⌿⍺∘{(' ',⍵)[1+⍺ ⍺⍴⍺{⍵='\':∘.=⍨⍳⍺⋄⍵='/':⌽∘.=⍨⍳⍺⋄'|'=⍵:(⌈⍺÷2)=⍳⍺⋄'_'=⍵:⌽⍺/⍺↑1⋄'-'=⍵:⍉⍺ ⍺⍴(⌈⍺÷2)=⍳⍺⋄0}⍵]}¨⍵}

Try it on APLgolf!

A dfn submission which takes a character matrix on the right and the scale on the left.

Just runs a huge conditional for each character in the matrix. A possible way to improve this would be to figure out a formula to generate the binary arrays required for each character.

Razetime
  • 27.4k
  • 3
  • 29
  • 72