A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
7
Task/Bitmap/J/bitmap-3.j
Normal file
7
Task/Bitmap/J/bitmap-3.j
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
pixellist=: ,"0/~ i. 10 NB. row and column indices for 10 by 10 block of pixels
|
||||
|
||||
NB. create 10 by 10 block of magenta pixels in the middle of a 300 by 300 green image
|
||||
myimg=: ((145 + pixellist) ; 255 0 255) setPixels 0 255 0 makeRGB 300 300
|
||||
|
||||
NB. get pixel color for 10x10 block offset from magenta block
|
||||
subimg=: (140 + pixellist) getPixels myimg
|
||||
Loading…
Add table
Add a link
Reference in a new issue