Help / User / viewmat: viewmat init

From J Wiki
Jump to navigation Jump to search

Legacy content, see Category:Help/User

User


viewmat: viewmat init

Name Type Description
closeall verb close all viewmat windows
gethue verb generate color from color set
readmat verb read viewmat as bitmap
savemat verb save viewmat to .bmp file
viewbmp verb bitmap viewer
viewmat verb view matrix in isigraph control
viewmatcc verb view matrix in given child control

gethue

generate color from color set
x is color set
y is values from 0 to 1, selecting color

viewbmp

bitmap viewer

x = [parentid [;parentname]]
y = filename

e.g.  viewbmp jpath '~system\examples\data\j.bmp'

viewmat

view matrix in isigraph control

[hue] viewmat mat [;title]

mat may be one of:
   boolean         (black/white)
   other numeric   (color scale from 0 upwards)
   other           (converted to numeric)

hue is: 3 column table of R-G-B triplets
    or: list of RGB values
    or: 'rgb'  - mat is an matrix of RGB values

if mat is boolean, x defaults to black/white
otherwise hue defaults to red - purple spectrum

e.g. viewmat (?50 50$2);'Random Boolean'

viewmatcc

view matrix in given child control

[hue] viewmatcc mat;cc

hue and mat are as for viewmat

cc is the id of the isigraph control.


User