-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
I often need to mark something in the image without obscuring it so much. A cross does exactly that.
I'll therefor try to PR something like this:
struct Cross <: Drawable
c::Point
arm::Int
end
function draw!(img::AbstractArray{T, 2}, cross::Cross, color::T) where T<:Colorant
for x in -cross.arm:cross.arm
img[cross.c.y, cross.c.x + x] = color
end
for y in -cross.arm:cross.arm
img[cross.c.y + y, cross.c.x] = color
end
img
endReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels