langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
8
Task/Bitmap/Octave/bitmap-3.octave
Normal file
8
Task/Bitmap/Octave/bitmap-3.octave
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
%example
|
||||
im = create_rgb_image(200,200);
|
||||
for x = 1:128
|
||||
im = set_pixel(im, [x, x], [200, 50, 220]);
|
||||
endfor
|
||||
|
||||
% it seems like saveimage wants double class on [0,1]
|
||||
saveimage("image.ppm", double(im)./256, "ppm");
|
||||
Loading…
Add table
Add a link
Reference in a new issue