Skip to content

Instantly share code, notes, and snippets.

@tangentstorm
Created February 25, 2016 02:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tangentstorm/483a93ad4d7fa9e5e0b3 to your computer and use it in GitHub Desktop.
/ ansi color palette:
p: ("#000"; "#800"; "#008"; "#880"; "#008"; "#808"; "#088"; "#ccc")
p:p,("#888"; "#f00"; "#00f"; "#0f0"; "#ff0"; "#f0f"; "#00f"; "#fff")
ansi:p
/ draw boxes of the given size:
boxes: {(;ansi; x # ,,/x #' !16)}[8]
/ background noise, so you can see the black box :)
grays: ("#333"; "#666"; "#999"; "#ccc")
noise: (;grays; (w,h) #(w*h) ? #grays)
draw: {(noise; boxes)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment