I am trying to draw a grid of text like this.
here’s my code. But I can’t seem to figure how it works. I thought it’d be object at this location.
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()