Attributes
Setting individual attrributes
SimpleDrawingObjects.set_fillalpha! — Functionset_fillalpha!(o::FilledObject, α=1.0)Set the transparency of o to α with 1.0 being completely opaque and 0.0 being fully transparent.
SimpleDrawingObjects.set_fillcolor! — Functionset_fillcolor!(o::FilledObject, col=:white)Change the fill color (for FilledObjects)
SimpleDrawingObjects.set_linecolor! — Functionset_linecolor!(o::SimpleDrawingObject, c=:black)Assign color c to the lines in this object.
SimpleDrawingObjects.set_linewidth! — Functionset_linewidth!(o::SimpleDrawingObject, w=1)Assign line width w to this object.
SimpleDrawingObjects.set_linestyle! — Functionset_linestyle!(o::SimpleDrawingObject, s=:solid)Assign s to be the line style of this object.
SimpleDrawingObjects.set_pointcolor! — Functionset_pointcolor!(p::Point, col = :black)Set the color to draw a Point. The functions set_fillcolor! and set_linecolor! don't apply.
SimpleDrawingObjects.set_pointsize! — Functionset_pointsize!(p::Point, sz = _default_point_size)Set the size at which a Point is drawn.
Resetting
SimpleDrawingObjects.reset_attributes! — Functionreset_attributes!(o::SimpleDrawingObject)Reset o's attributes to factory defaults.
Custom control
SimpleDrawingObjects.set_attribute! — Functionset_attribute!(o::SimpleDrawingObject, attr::Symbol, val)Assign the value val to the object's attribute attr.
SimpleDrawingObjects.get_attributes — Functionget_attributes(o::SimpleDrawingObject)::DictGive access to the attributes dictionary for o.
Line Segments
SimpleDrawingObjects.Segment — TypeSegment(a::Number, b::Number)
Segment(x::Real, y::Real, xx::Real, yy::Real)Create a segment from point a to point b where a and b are complex numbers.
In the second form, create a line segment from x + y*im to xx + yy*im.
SimpleDrawingObjects.Arrow — FunctionArrow(a::Number, b::Number)::Segment
Arrow(x::Real, y::Real, xx::Real, yy::Real)::SegmentCreate a line segment with the added attribute of having an arrow head at b (at (xx,yy)).
Polygons
SimpleDrawingObjects.Polygon — TypePolygon(plist::Vector{T}) where {T<:Number}
Polygon(zs...)Create a polygon from a list of complex numbers. Polygon([0, 2im, 4]) can also be created using Polygon(0, 2im, 4).
SimpleDrawingObjects.FilledPolygon — TypeFilledPolygon(plist::Vector{T}) where {T<:Number}
FilledPolygon(zs...)Create a filled-in polygon from a list of complex numbers. FilledPolygon([0, 2im, 4]) can also be created using FilledPolygon(0, 2im, 4).
SimpleDrawingObjects.Rectangle — FunctionRectangle(a::Number, b::Number)::Polygon
Rectangle(x::Real, y::Real, xx::Real, yy::Real)::PolygonCreate a rectangle with opposite corners a and b [or (x,y) and (xx,yy)].
SimpleDrawingObjects.FilledRectangle — FunctionFilledRectangle(a::Number, b::Number)::FilledPolygon
FilledRectangle(x::Real, y::Real, xx::Real, yy::Real)::FilledPolygonCreate a rectangle with opposite corners a and b [or (x,y) and (xx,yy)].
Circular Shapes
SimpleDrawingObjects.Arc — TypeArc(z::Number, r::Real, t1::Real, t2::Real, t3::Real)
Arc(x::Real, y::Real, r::Real, t1::Real, t2::Real, t3::Real)Create an arc centered at z [at (x,y)] with radius r starting at angle t1, continuing through angle t2, and ending at angle t3.
SimpleDrawingObjects.Circle — TypeCircle(z::Number, r::Real)
Circle(x::Real, y::Real, r::Real)Create a circle centered at z [at (x,y)] with radius r.
SimpleDrawingObjects.FilledCircle — TypeDisk(z::Number, r::Real)
Disk(x::Real, y::Real, r::Real)Create a disk, i.e., a filled circle with default fill color set to :white.
See: set_fillcolor!.
SimpleDrawingObjects.Ellipse — TypeEllipse(x::Real, y::Real, rx::Real, ry::Real)
Ellipse(x::Real, y::Real, rx::Real, ry::Real)Create an ellipse centered at z [at (x,y)] with radii rx and ry.
SimpleDrawingObjects.FilledEllipse — TypeFilledEllipse(x::Real, y::Real, rx::Real, ry::Real)
FilledEllipse(x::Real, y::Real, rx::Real, ry::Real)Create a filled ellipse centered at z [at (x,y)] with radii rx and ry.
Spline Curves
SimpleDrawingObjects.OpenCurve — TypeOpenCurve(plist::Vector{T}) where {T<:Number}
OpenCurve(zs...)Draw an open curve using the given points using a cubic spline.
SimpleDrawingObjects.ClosedCurve — TypeClosedCurve(plist::Vector{T}) where {T<:Number}
ClosedCurve(zs...)Draw a closed curve using the given points using a cubic spline.
SimpleDrawingObjects.FilledClosedCurve — TypeFilledClosedCurve(plist::Vector{T}) where {T<:Number}
FilledClosedCurve(zs...)Draw a closed curve using the given points using a cubic spline whose interior is colored.
Points
SimpleDrawingObjects.Point — TypePoint(a::Number)
Point(x::Real, y::Real)Create a point at location a [or (x,y)].
Types
SimpleDrawingObjects.SimpleDrawingObject — TypeSimpleDrawingObjectParent abstract type for all geometric objects defined in SimpleDrawingObjects.
SimpleDrawingObjects.FilledObject — TypeFilledObjectSubtype of SimpleDrawingObject for geometric objects that can be filled with color.
Index
SimpleDrawingObjects.ArcSimpleDrawingObjects.CircleSimpleDrawingObjects.ClosedCurveSimpleDrawingObjects.EllipseSimpleDrawingObjects.FilledCircleSimpleDrawingObjects.FilledClosedCurveSimpleDrawingObjects.FilledEllipseSimpleDrawingObjects.FilledObjectSimpleDrawingObjects.FilledPolygonSimpleDrawingObjects.OpenCurveSimpleDrawingObjects.PointSimpleDrawingObjects.PolygonSimpleDrawingObjects.SegmentSimpleDrawingObjects.SimpleDrawingObjectSimpleDrawingObjects.ArrowSimpleDrawingObjects.FilledRectangleSimpleDrawingObjects.RectangleSimpleDrawingObjects.get_attributesSimpleDrawingObjects.reset_attributes!SimpleDrawingObjects.set_attribute!SimpleDrawingObjects.set_fillalpha!SimpleDrawingObjects.set_fillcolor!SimpleDrawingObjects.set_linecolor!SimpleDrawingObjects.set_linestyle!SimpleDrawingObjects.set_linewidth!SimpleDrawingObjects.set_pointcolor!SimpleDrawingObjects.set_pointsize!