Hi All,
I’m experimenting with Luxor and wondering whether Luxor.textformat() has been removed.
It’s listed in the examples and the documentation but is missing from the alphabetical list at the end of the documentation and I’m unable to use it similar to the Luxor.text() function. It’s also missing from the method list at the end of the Luxor.text() documentation entry.
What am I missing?
(The example code is from another post about animation, what is what I would like to do in the end…)
using Luxor
function draw(output, framenumber)
# Settings
x0 = 70
y0 = 100
background("black")
sethue("darkgray")
fontsize(15)
fontface("Monaco")
# Output
txt = string(output[framenumber]) * " " * string(output[framenumber+1])
Luxor.text(txt,
Point(x0 - 100, y0 - 100),
halign=:center)
Luxor.textformat(
(text="S", color=1),
(text="-", color=0))
end
function frame(scene, framenumber)
# Draw the figure
draw(scene.opts, framenumber)
end
output = 100:150
movie = Movie(800, 800, "name_movie", 1:length(output)-1)
anim = Luxor.animate(movie,
[Scene(movie, frame, easingfunction=easeinoutcubic, optarg=output)],
framerate = 5,
tempdirectory=string(@__DIR__, "/tmp/"),
creategif=true,
pathname=string(@__DIR__, "/video.gif"))