RosettaCodeData/Task/Bitmap/Mathematica/bitmap-2.mathematica
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

3 lines
128 B
Mathematica

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