SVGLine
Part of wslib
superclass : SVGObject
The SVGLine holds the data for a line
creation
SVGLine ( x1, y1, x2, y2, name, strokeColor, fillColor, strokeWidth, transform )
creates a new object with the instance variables as described below and in the SVGObject helpfile
SVGLine.fromPoints ( points, name, strokeColor, fillColor, strokeWidth, transform )
creates a new object from an array of 2 Point objects.
instance variables
x1, y1
start x/y location
x2, y2
end x/y location
strokeColor, fillColor
colors for stroke and fill. These can be
a Color
a String or Symbol with a color name ( e.g. "light_blue" or "#0000FF" )
"none" or nil
strokeWidth
defaults to 1.
SVGLine( 200, 200, 150, 10, "my line", "dark_red", "none", 6 ).plot;