Elisp
(cl-defun block-print (pattern &key (string "NIGGER") (times 3))
"Use STRING as a pixel and generate a larger string from PATTERN."
(let* ((blank (make-string (length string) 32)))
(apply #'append
(seq-map (lambda (row)
(seq-map (lambda (n)
(seq-map (lambda (pixel)
(if (= pixel 1)
string
blank))
row))
(number-sequence 1 times)))
pattern))))
(setq art (block-print '((1 0 1 1 1)
(1 0 1)
(1 1 1 1 1)
(0 0 1 0 1)
(1 1 1 0 1))))
Should block-print return the joined result?
(string-join (cl-loop for row in art
collect (string-join `(,@(cl-loop for col in row
collect col)
"\n"))))