Created
January 3, 2025 12:18
-
-
Save CnrLwlss/a1713fdc505ad5d5d25d69f140732571 to your computer and use it in GitHub Desktop.
Generate a random greyscale image and enlarge it using "nearest neighbours".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Images | |
smallpix = rand(UInt8, 8, 8) | |
bigpix = repeat(smallpix, inner=(200,200)) | |
save("greychess.png",bigpix) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment