How can I turn a matrix into pixels?

Let’s say I have a 2d matrix with 0’s and 1’s…

I wanna turn that into a 2d scene where the index of each 0 means that pixel is black and 1 means that pixel is white…

For example…
2d matrix[64][64]
This would create a scene with a square of 64 by 64, where each pixel color in that square is determined by the matrix’s value

How can I do something like this?

Thank you.

Create a new Texture2D of your matrix’s dimensions, use SetPixel or SetPixels to set each pixel’s color in the texture. Call Apply() on the texture to apply the changes. Create a quad or new sprite to apply that new texture to.