While I was working on the Bezigon tool algorithms I was researching into how other programs have implemented pen tools - and I learnt a great deal about bezier curves and their handling - as well as the various ways in which curves are approximated for smoothing. One of the most interesting methods is Catmull-Rom Spline - https://en.wikipedia.org/wiki/Catmull%E ... Rom_spline - It is extremely interesting. I am not going to pester the developers to implement it. It exists on the online app if you wish to try it: https://boxy-svg.com/app - It's free to try.
However, that's not the headline. The headline is XaraXtreme the aborted project of making Xara Open Source for Linux. 20 years ago in 2006, Xara decided that they wanted to make their program Open Source for Linux at least. This, I reckon, was because Xara made a very grave strategic error - they refused to develop their product for Apple. At the time Steve Jobs was out of Apple, and Apple looked like it was about to die. Who could have predicted what came next? Charles Moir, the director at the time, had to make a call: Spend his limited resource on a dying platform or spend it on Windows. He chose Windows. But it backfired on them spectacularly.
So eventually, I speculate, they wanted to make a backdoor comeback through Linux. But unfortunately, Xara jealously guarded their blisteringly fast rendering engine, the actual secret all the developers were really after. They refused to let it go. I found trails of back and forth on Way Back Machine. Frustrated developers complaining that it wasn't really Open Sourcing.
But I found one golden nugget: https://github.com/earl-kent/xara-lx - They did release the code for all their tools!
To me, that is amazing. I found the code for Shape Tool - Xara's version of Pen Tool, but which is far more intuitive than Bezier Pen tool. Shape tool allows you to literally shape your curves like putty clay. It is addictively good. It is under GNU General Public License which allows you to study for behaviour and use for any purpose. Unfortunately, it contains bugs which were never updated from the main version of the software. But that's okay. Here's where Catmull-Rom becomes relevant. Xara's Shape Tool uses a modified version of Catmull-Rom Spline.
Shape Tool in Xara is over 4500 lines of code. For comparison, my entire Bezigon implementation was 500 lines long.
I'm going to study and rebuild it over the next months - perhaps another great addition to PL! Let's see how the Bezigon integration goes.
Another great find for you! XaraXtreme - the Open Source that never happened.
-
Vivi_Ram
- Mitglied
- Beiträge: 488
- Registriert: Sa 28 Sep 2024 15:04