'id' 'hex' [angle]
¶'id' hex [angle]
¶mglGraph
: void
SetMask (char
id, const char *
hex)
¶mglGraph
: void
SetMask (char
id, uint64_t
hex)
¶void
mgl_set_mask (HMGL
gr, const char *
hex)
¶void
mgl_set_mask_val (HMGL
gr, uint64_t
hex)
¶Sets new bit matrix hex of size 8*8 for mask with given id. This is global setting which influence on any later usage of symbol id. The predefined masks are (see Color scheme): ‘-’ give lines (0x000000FF00000000
), ‘+’ give cross-lines (080808FF08080808
), ‘=’ give double lines (0000FF00FF000000
), ‘;’ give dash lines (0x0000000F00000000
), ‘o’ give circles (0000182424180000
), ‘O’ give filled circles (0000183C3C180000
), ‘s’ give squares (00003C24243C0000
), ‘S’ give solid squares (00003C3C3C3C0000
), ‘~’ give waves (0000060990600000
), ‘<’ give left triangles (0060584658600000
), ‘>’ give right triangles (00061A621A060000
), ‘j’ give dash-dot lines (0000002700000000
), ‘d’ give pluses (0x0008083E08080000
), ‘D’ give tacks (0x0139010010931000
), ‘*’ give dots (0x0000001818000000
), ‘^’ give bricks (0x101010FF010101FF
). Parameter angle set the rotation angle too. IMPORTANT: the rotation angle will be replaced by a multiple of 45 degrees at export to EPS.
angle
¶mglGraph
: void
SetMaskAngle (int
angle)
¶void
mgl_set_mask_angle (HMGL
gr, int
angle)
¶Sets the default rotation angle (in degrees) for masks. Note, you can use symbols ‘\’, ‘/’, ‘I’ in color scheme for setting rotation angles as 45, -45 and 90 degrees correspondingly. IMPORTANT: the rotation angle will be replaced by a multiple of 45 degrees at export to EPS.