<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 5/20/2020 11:23 AM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:14075c23-46a9-e497-615f-3d9da7ee6490@drgeo.eu"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><font size="+1">The sub-optimal rendering of the complete ring
is a bit slow but it is expected.</font><br>
</p>
<p>With imageForm 0:00:00:01.409 <br>
</p>
Without imageForm 0:00:00:01.266<br>
<img moz-do-not-send="false"
src="cid:part1.04050608.02020207@jvuletich.org" alt=""
height="476" width="480">
<p><font size="+1"><br>
</font></p>
<pre>| c p center draw |
"Feature require: 'VectorGraphics'."
c _ VectorCanvas onForm: Display.
center _ 1300@400.
draw _ [: angle |
c strokeWidth: 3 color: Color blue darker fillColor: (Color blue lighter alpha:0.6) do: [ :e |
p _ (Point r: 140 degrees: 80 + angle) * (1@ -1) + center.
e abs_MoveToX: p x y: p y.
p _ (Point r: 200 degrees: 80 + angle ) * (1@ -1) + center.
e abs_LineToX: p x y: p y.
p _ (Point r: 200 degrees: 100 + angle) * (1@ -1) + center.
e abs_ArcToX: p x y: p y radiusX: 200 radiusY: 200 angleOfXAxis: 20 degreesToRadians largeFlag: false sweepFlag: false.
p _ (Point r: 140 degrees: 100 + angle ) * (1@ -1) + center.
e abs_LineToX: p x y: p y.
p _ (Point r: 140 degrees: 80 + angle) * (1@ -1) + center.
e abs_ArcToX: p x y: p y radiusX: 140 radiusY: 140 angleOfXAxis: 20 degreesToRadians largeFlag: false sweepFlag: true].
Display forceToScreen.
p _ (Point r: 170 degrees: 90 + angle) * (1@ -1) + center - 24 asPoint.
DrGIcons line displayOn: Display at: p rule: Form blend].
[0 to: 20 * 17 by: 20 do: [:each | draw value: each]] durationToRun
</pre>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a></pre>
</blockquote>
<br>
Congratulations! This is great! You and Dr. Geo are the first user
of VectorGraphics in Cuis. I'm really happy this is finally
happening!<br>
<br>
Until the VectorGraphics engine is ready to become the main Canvas,
I suggest caching the result in a Form, and use that in your morphs.
That's what we are doing with TrueType, and it works well.<br>
<br>
Cheers,<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
</body>
</html>