Drawing curved lines
Thank you for sharing,
I haven’t look at it yet,
But you may also have use an HTML Control to display SVG (which can
display bezier curve).
2018-03-01 1:15 UTC+01:00, Bastiaan Olij <firstname.lastname@example.org>:
> Hi All,
> 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 🙂
> Manage your list subscriptions at lists.omnis-dev.com
> Start a new message -> mailto:email@example.com
Manage your list subscriptions at lists.omnis-dev.com
Start a new message -> mailto:firstname.lastname@example.org