Attributes

Setting individual attrributes

Resetting

Custom control

Line Segments

SimpleDrawingObjects.SegmentType
Segment(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.

source
SimpleDrawingObjects.ArrowFunction
Arrow(a::Number, b::Number)::Segment
Arrow(x::Real, y::Real, xx::Real, yy::Real)::Segment

Create a line segment with the added attribute of having an arrow head at b (at (xx,yy)).

source

Polygons

SimpleDrawingObjects.PolygonType
Polygon(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).

source
SimpleDrawingObjects.FilledPolygonType
FilledPolygon(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).

source
SimpleDrawingObjects.RectangleFunction
Rectangle(a::Number, b::Number)::Polygon
Rectangle(x::Real, y::Real, xx::Real, yy::Real)::Polygon

Create a rectangle with opposite corners a and b [or (x,y) and (xx,yy)].

source
SimpleDrawingObjects.FilledRectangleFunction
FilledRectangle(a::Number, b::Number)::FilledPolygon
FilledRectangle(x::Real, y::Real, xx::Real, yy::Real)::FilledPolygon

Create a rectangle with opposite corners a and b [or (x,y) and (xx,yy)].

source

Circular Shapes

SimpleDrawingObjects.ArcType
Arc(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.

source
SimpleDrawingObjects.FilledCircleType
Disk(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!.

source
SimpleDrawingObjects.EllipseType
Ellipse(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.

source
SimpleDrawingObjects.FilledEllipseType
FilledEllipse(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.

source

Spline Curves

SimpleDrawingObjects.FilledClosedCurveType
FilledClosedCurve(plist::Vector{T}) where {T<:Number}
FilledClosedCurve(zs...)

Draw a closed curve using the given points using a cubic spline whose interior is colored.

source

Points

Types

Index