Skip to content

Commit

Permalink
Began updating of @jlayer docstring (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCedarPrince authored Jan 1, 2022
1 parent 0ec51d5 commit 64b4218
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/layers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@ function ground(args...)
sethue("black")
end
function object(p = O, color = "black")
sethue(color)
circle(p, 50, :fill)
end
video = Video(500, 500)
Background(1:100, ground)
object((args...)->circle(O, 50, :fill))
l1 = @JLayer 10:70 100 100 Point(150, 150) begin
red_ball = Object(20:60, (args...)->object(O, "red"), Point(50,0))
Expand Down

0 comments on commit 64b4218

Please sign in to comment.