[Cuis-dev] [Ann] Major updates to VectorGraphics

Juan Vuletich juan at cuis.st
Mon May 26 12:08:48 PDT 2025


Hi Folks,

On Saturday I pushed to GitHub a major update on VectorGraphics. I 
pushed many updates, and new VMs, including an updated VectorEnginePlugin.

There are two main features:
- Nested Submorph Clipping. Now clipping morphs may contain further 
clipping morphs, and inner morphs are clipped to the convex outline of 
all owners. Note that the clipping morphs need to have a convex shape, 
or the clipping won't be 100% correct.
- The SVG package has been updated to use Submorph Clipping. The 
Telephone.svg example is now drawn correctly.
- Dashed Lines. Now dashed lines are drawn by the VectorEnginePlugin. 
The protocol for drawing dashed lines is now simpler and nicer, using 
$1s and $0s in a binary number to specify the dashes and spacing. See 
Sample02Bezier for an example.
- Performance. Several optimizations were done in the plugin. Some 
operations are up to 5 times faster. I estimate that Vector Graphics 
Morph drawing is twice as fast as before in average.
- Drawing of 8 bit Strings and UTF-32 Strings in addition to UTF-8. This 
may ease the adoption of VectorGraphics by Squeak.

Hilaire, please take a look at the new way to draw dashed lines, and 
adapt your code.

Thanks Eliot Miranda for your help with the VectorEngine VM Plugin, and 
the VM builds. Thanks Hilaire for pushing the limits with DrGeo, and 
requesting features for VectorGraphics.

Thanks,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich



More information about the Cuis-dev mailing list