#Drawing smth from an array

2 messages · Page 1 of 1 (latest)

south quartz
#

Lets say that I have an array just like this:

[
1, 0, 0
1, 1, 0
1, 1, 1
1, 1,0
]

I wanna convert this to a drawing (each value in the array being 1x1 pixel) using the HTML/JS canvas api. I couldn't figure it out myself and I don't really know which technical term it correlates to thus I couldn't Google it myself.

charred basinBOT
#

Thanks for your question :clap:, if someone gives you an answer it would be great if you thanked them with a :white_check_mark: in response. This response will earn you both points for special roles on this server.