Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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,5 @@
|
|||
NB. create 10 by 10 block of magenta pixels in top right quadrant of a 300 wide by 600 high green image
|
||||
pixellist=: >,{;~i.10
|
||||
myimg=: ((150 + pixellist) ; 255 0 255) setPixels 0 255 0 makeRGB 600 300
|
||||
myimg writeppm jpath '~temp/myimg.ppm'
|
||||
540015
|
||||
Loading…
Add table
Add a link
Reference in a new issue