RosettaCodeData/Task/Bitmap/Mathematica/bitmap-1.math
2023-07-01 13:44:08 -04:00

3 lines
125 B
Text

img = Image[ConstantArray[{1, 0, 0}, {1000, 1000}]];
img = ReplacePart[img, {1, 1, 1} -> {0, 0, 1}];
ImageValue[img, {1, 1}]