Drawing curved lines
I needed to draw curved lines in Omnis, something that is unfortunately
not supported as far as I know (would really be nice to have this as a
proper background object, hint hint Omnis Studio devs).
Anyway, I wrote some logic that applies a Bezier curve algorithm and
draws a curve using a set number of background line objects.
As its a neat little bit of code I just uploaded it to github, also to
do my bit to make Omnis a little bit more visible 🙂
It’s not perfect, Omnis does something weird when height or width
becomes negative, and its being broken up in a fixed number of segments
so for long lines you can see the straight lines. That really is
something that can only be effectively done in either an XCOMP or build
in background object.
Even if you are not on Studio 8.1 you can copy the code relatively
easily into an older version of Studio (the original I did is in Studio
6). I’ll also gladly send a Studio 6 version of the library to anyone
who asks 🙂