Talk:Bitmap: Difference between revisions

Content added Content deleted
m (signed it)
Line 60: Line 60:
<lang J>allocImage=: $&(,:0 0 0)</lang>
<lang J>allocImage=: $&(,:0 0 0)</lang>


Here 0 0 0 represents one pixel, and (,:0 0 0) is a one element list containing a 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:
Here 0 0 0 represents one black pixel, and (,:0 0 0) is a one element list containing that 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)
+&2 (10 100 1000)