# Pen-Down in Agents.jl

**URL:** <https://discourse.julialang.org/t/pen-down-in-agents-jl/125516>\
**Category:** General Usage\
**Tags:** agentsjl\
**Created:** [February 4, 2025, 5:57am UTC](https://discourse.julialang.org/t/pen-down-in-agents-jl/125516 "2025-02-04T05:57:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NebulaComplex](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nebulacomplex/32/214696_2.png) [@NebulaComplex](https://discourse.julialang.org/u/NebulaComplex)\
**Post date:** [February 4, 2025, 5:57am UTC](https://discourse.julialang.org/t/pen-down-in-agents-jl/125516/1 "2025-02-04T05:57:17Z")

</div>

In NetLogo you can easily get a turtle to draw it’s path in continuous space with the pen-down command, how can I do this in Agents.jl - specifically in an interactive GUI? This code successfully adds a button to toggle a pen, but I am lost at how to make it actually draw: `toggle_button = Button(fig, label="Toggle Pen") on(toggle_button.clicks) do _ toggle_pen!(abmobs.model) end`

---

<div class="post-metadata">

**Author:** ![NebulaComplex](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nebulacomplex/32/214696_2.png) [@NebulaComplex](https://discourse.julialang.org/u/NebulaComplex)\
**Post date:** [February 4, 2025, 6:59am UTC](https://discourse.julialang.org/t/pen-down-in-agents-jl/125516/3 "2025-02-04T06:59:00Z")

</div>

InteractiveDynamics is depreciated. I’m using GLMakie. I had the same idea to store a path, but I’m not sure how to get it to be printed. Where in abmplot to I add that command?
