[Cuis-dev] [Ann] Changes for VectorGraphics
Juan Vuletich
juan at jvuletich.org
Mon Aug 3 08:18:32 PDT 2020
Hi Folks,
I've just pushed to GitHub a bunch of changes. Most of them are to
enable VectorGraphics based morphs. To install them, while installing,
you need to supply author initials. When install finishes, you need to
restart updates install once more.
What these updates do is to enable morphs drawn using VectorGraphics to
live alongside the regular BitBlt based ones, using a "dual mode"
HybridCanvas. BitBltCanvas and BitBltEngine are now just a speed
optimization. When VectorCanvas and VectorEngine are fast enough, they
won't be needed anymore.
To play with all this, do `Feature require: 'VectorGraphics'`. Set the
DejaVu TrueType font.
If you want to experiment (please do this in a throw away image, just in
case) you can activate the new canvas by doing `MorphicCanvas
activeSubclass: HybridCanvas`
Now you can add an EllipseMorph2 or EllipseMorph3 to your world. Or
evaluate in a Workspace the class comment at EllipseMorph3. Play with
the new rotate / zoom halo hande at the left bottom.
You can even try the new halo on a workspace or browser. VectorGraphics
is still pure Smalltalk code (no plugin or any kind of c / openCL / asm
code), so it will be slow! But as regular windows are still drawn using
BitBlt (unless rotated / zoomed), regular Smalltalk tools are as
responsive as usual.
Hilaire, I believe this is ready for DrGeo to use.
All feedback is welcome.
Cheers,
--
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich
More information about the Cuis-dev
mailing list