Talk:Bitmap: Difference between revisions

m
m (signed it)
Line 60:
<lang J>allocImage=: $&(,:0 0 0)</lang>
 
Here 0 0 0 represents one black pixel, and (,:0 0 0) is a one element list containing athat pixel. Meanwhile <lang J>dimensions $ items</lang> creates an array with the specified dimensions from the list of items on the right. Meanwhile, & curries an operation. For example:
 
+&2 (10 100 1000)
6,951

edits