Created
December 11, 2018 17:09
-
-
Save hiiamboris/19251675224a2d182f6f91b284576d7b to your computer and use it in GitHub Desktop.
image inspector func
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
Red [] | |
inspect: function [i] [ | |
pixel: 10x10 | |
? (also i': make image! i/size * pixel | |
x: y: repeat y i/size/y [ | |
repeat x i/size/x [ | |
p: as-pair x y | |
draw i' compose [ | |
line-width 1 pen (i/:p) fill-pen (i/:p) | |
reset-matrix translate (pixel * (p - 1x1)) | |
box 0x0 (pixel - 2x2) | |
] | |
] | |
]) | |
i' | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment