Glyph

classes
   close_path     erase          glyph          move_to        
   control_point  fill           label          new_path       
   curve_to       gif            line_to        stroke         

SYNTAX

g = new Glyph()

DESCRIPTION

Specification of a drawing. The drawing can be rendered on a Graph as many times as desired using
graph.glyph(g, x, y, scalex, scaley, angle)
The drawing style uses commands reminiscent of postscript.

SEE ALSO

Graph glyph


new_path

Glyph

SYNTAX

g = g.path()

DESCRIPTION

Begin a new path.


move_to

Glyph

SYNTAX

g = g.m(x, y)

DESCRIPTION

Set the current point to the coordinates.


line_to

Glyph

SYNTAX

g = g.l(x, y)

DESCRIPTION

A line from the current point to the coordinates.


stroke

Glyph

SYNTAX

g = g.s()
g = g.s(colorindex)
g = g.s(colorindex, brushindex)

DESCRIPTION

Render the current path as a line.


close_path

Glyph

SYNTAX

g = g.close()

DESCRIPTION

A line from the current point to the first point of the path.


fill

Glyph

SYNTAX

g = g.fill()
g = g.fill(colorindex)

DESCRIPTION

For a closed path, fill the interior with the indicated color.


curve_to

Glyph

SYNTAX

g = g.curve(x,y, x1,y1, x2,y2)

DESCRIPTION

Draw a curve from the current point to x,y


control_point

Glyph

SYNTAX

g = g.cpt(x,y)

DESCRIPTION

Draw a small open rectangle at the coordinates. Intended to indicate special locations on the glyph which can be selected. Not very useful at this time.


erase

Glyph

SYNTAX

g = g.erase()

DESCRIPTION

The drawing is empty


label

Glyph

SYNTAX

g = g.label("string", x, y, fixtype, colorindex)

DESCRIPTION

Not implemented


glyph

Glyph

SYNTAX

g = g.glyph(glyphobject, x, y, scale, angle)

DESCRIPTION

Not implemented


gif

Glyph

SYNTAX

g = g.gif("filename")

DESCRIPTION

Reads the gif image in the file. All Graph glyph#Graph arguments still work when the glyph contains a gif image. The gif image is drawn first so other drawing specs will appear on top of it.

SEE ALSO

gif glyph


neuron/general/classes/glyph.hel : May 13 2012