What color names should we expect for
the given values below?
 
   load 'viewmat'
   viewrgb 16bff0000 * ~:/\^:(<`(#&1)) 256 NB. color=?
   viewrgb 16b00ff00 * ~:/\^:(<`(#&1)) 256 NB. color=green
   viewrgb 16b0000ff * ~:/\^:(<`(#&1)) 256 NB. color=?

>From experience with HTML colors and BMP byte layout
for 24 bit encoding, as well as in GL2, for example,
 
   glcolor 256 (#.^:_1) 16bff0000
   256 (#.^:_1) 16bff0000
255 0 0

this should be RED. But it's not what we see in viewrgb.
 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to