Poptart.Drawings
Drawings
shapes
Poptart.Drawings.Line
โ TypeLine(; points::Vector{<:NTuple{2}}, [thickness=3], [color::RGBA])
Poptart.Drawings.Rect
โ TypeRect(; rect::NTuple{4}, [rounding], [thickness=3], [color::RGBA])
Poptart.Drawings.RectMultiColor
โ TypeRectMultiColor(; rect::NTuple{4}, color_upper_left::RGBA, color_upper_right::RGBA, color_bottom_left::RGBA, color_bottom_right::RGBA)
Poptart.Drawings.Circle
โ TypeCircle(; center::NTuple{2}, [radius=30], [num_segments=32], [thickness=3], [color::RGBA])
Poptart.Drawings.Quad
โ TypeQuad(; points::Vector{<:NTuple{2}}, [thickness=3], [color::RGBA])
Poptart.Drawings.Triangle
โ TypeTriangle(; points::Vector{<:NTuple{2}}, [thickness=3], [color::RGBA])
Poptart.Drawings.Arc
โ TypeArc(; center::NTuple{2}, angle, [radius=30], [num_segments=32], [thickness=3], [color::RGBA])
Poptart.Drawings.Pie
โ TypePie(; center::NTuple{2}, angle, [radius=30], [num_segments=32], [thickness=3], [color::RGBA])
Poptart.Drawings.Curve
โ TypeCurve(; startPoint::NTuple{2}, control1::NTuple{2}, control2::NTuple{2}, endPoint::NTuple{2}, [thickness=3], [color::RGBA])
Poptart.Drawings.Polyline
โ TypePolyline(; points::Vector{<:NTuple{2}}, [thickness=3], [color::RGBA])
Poptart.Drawings.Polygon
โ TypePolygon(; points::Vector{<:NTuple{2}}, [thickness=3], [color::RGBA])
Poptart.Drawings.TextBox
โ TypeTextBox(; text::String, rect::NTuple{4}, [font_size], [color::RGBA])
Poptart.Drawings.ImageBox
โ TypeImageBox(; image::Union{Nothing, GenericImage}, [rect::Union{Nothing, NTuple{4}}])
paints
Poptart.Drawings.stroke
โ MethodDrawings.stroke(element::DrawingElement)
Base.fill
โ MethodDrawings.fill(element::DrawingElement)
stroke โ fill
transforms
Poptart.Drawings.translate
โ Functiontranslate(tup::Tuple{Real,Real}, xy::Tuple{Real,Real})
translate(tup::Tuple{Real,Real}, x::Real)
translate(tup::Tuple{Real,Real,Real,Real}, xy::Tuple{Real,Real})
translate(tup::Tuple{Real,Real,Real,Real}, x::Real)
Poptart.Drawings.scale
โ Functionscale(tup::Tuple{Real,Real}, xy::Tuple{Real,Real})
scale(tup::Tuple{Real,Real}, x::Real)
scale(tup::Tuple{Real,Real,Real,Real}, xy::Tuple{Real,Real})
scale(tup::Tuple{Real,Real,Real,Real}, x::Real)
Poptart.Drawings.translate!
โ Functiontranslate!(element::Union{Line, Triangle, Quad, Polyline, Polygon}, xy::Tuple{Real,Real})
translate!(element::Union{Circle, Arc, Pie}, xy::Tuple{Real,Real})
translate!(element::Curve, xy::Tuple{Real,Real})
translate!(element::Union{Rect, RectMultiColor, TextBox}, xy::Tuple{Real,Real})
translate!(element::ImageBox, xy::Tuple{Real,Real})
Poptart.Drawings.scale!
โ Functionscale!(element::Union{Line, Triangle, Quad, Polyline, Polygon}, xy::Tuple{Real,Real})
scale!(element::Curve, xy::Tuple{Real,Real})
scale!(element::Union{Rect, RectMultiColor, TextBox}, xy::Tuple{Real,Real})
scale!(element::ImageBox, xy::Tuple{Real,Real})
scale!(element::Union{Line, Rect, RectMultiColor, Triangle, Quad, Polyline, Polygon, Curve, Rect, RectMultiColor, TextBox, ImageBox}, x::Real)
scale!(element::Union{Circle, Arc, Pie}, scale_center::Tuple{Real, Real}, scale_radius::Real)