Like in this pictures.
Thanks in advance!
Jesper
You can also change the direction any number of times within a single beam, to create something like your first picture (that accels then decels).