A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
|
|
@ -0,0 +1,7 @@
|
|||
require 'files'
|
||||
|
||||
NB. ($x) is height, width, colors per pixel
|
||||
writeppm=:dyad define
|
||||
header=. 'P6',LF,(":1 0{$x),LF,'255',LF
|
||||
(header,,x{a.) fwrite y
|
||||
)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
NB. create 10 by 10 block of magenta pixels in top right quadrant of a 300 wide by 600 high green image
|
||||
myimg=: ((145 + pixellist) ; 255 0 255) setPixels 0 255 0 makeRGB 600 200
|
||||
myimg writeppm jpath '~temp/myimg.ppm'
|
||||
360015
|
||||
Loading…
Add table
Add a link
Reference in a new issue