Timed stimulus presentation with ruby

Is there a command in Ruby or a ruby toolbox that would allow me to do
the following:

I would like to open a window, and flash the letters of a word
sequentially in the middle of the screen, for my own use. for example
the word apple would be flashed one letter at a time, “a” then “p” then
“p” then …

I would like to control font size and letter position as well as the
timing of the presentation.

If ruby is not the best tool for this, what is?

I found that processing meets my requirements and is easy to program.

Ruby is a data processing programming language, it does not support a
GUI, except through ruby on rails which I cannot install (brew doctor
has a complaint list a mile long).

Is my understanding correct?

Thanks

Although I cannot find the documentation for what you suggest so I can
run it, I can see what it might look like.

Anne Gr wrote in post #1161395:

Is there a command in Ruby or a ruby toolbox that would allow me to do
the following:

If ruby is not the best tool for this, what is?
===============================================
require ‘Ruiby’

$font=“Arial bold 27”
$words=ARGV.join(" ")
$words=“Hello words” if $words.size<2

Ruiby.app width: 400,height: 100,title: “Letters” do
chrome(true) #?
lab=[]
stack do
space
flowi { space; $words.split(//).each { |c|
lab << label(c,font: $font)
}
space
end
anim(100) {
apply_options(lab.first, {bg: “#FFF”})
lab= lab[1…-1]+[lab.first]
apply_options(lab.first, {bg: “#F00”})
}
end

timeing dev: 22:14:02,72 ==> 22:29:03,93 :slight_smile: