# How to draw a grid of text using Javis.jl?

**URL:** <https://discourse.julialang.org/t/how-to-draw-a-grid-of-text-using-javis-jl/65852>\
**Category:** General Usage\
**Created:** [August 5, 2021, 12:47am UTC](https://discourse.julialang.org/t/how-to-draw-a-grid-of-text-using-javis-jl/65852 "2021-08-05T00:47:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [August 5, 2021, 12:47am UTC](https://discourse.julialang.org/t/how-to-draw-a-grid-of-text-using-javis-jl/65852/1 "2021-08-05T00:47:15Z")

</div>

I am trying to draw a grid of text like this.

![image](https://global.discourse-cdn.com/julialang/original/3X/8/f/8f3865fe626a3b5c074061dab2707265152cbc0d.png)

here’s my code. But I can’t seem to figure how it works. I thought it’d be object at this location.

```julia
using Javis

function ground(args...)
    background("white")
    sethue("black")
end

function numtext(txt, x, y)
    function()
        fontsize(20)
        text(txt, Point(x, y),
            valign=:middle, halign=:center)
    end
end

function face()
    video = Video(500, 500)
    Background(1:88, ground)
    cells = Object[]
    for (i,j) in Iterators.product(1:4, 1:4)
        push!(
            cells,
            Object(
                numtext(
                    string((i,j)),
                    10i,
                    10j
                )
            )
        )
    end
    render(video; pathname="jarvis.gif", framerate=15)
end

face()

```

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [August 5, 2021, 12:49am UTC](https://discourse.julialang.org/t/how-to-draw-a-grid-of-text-using-javis-jl/65852/2 "2021-08-05T00:49:56Z")

</div>

I think i needed `function(args...)`instead
