You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could cache the basic shape of each arc ring in a Form
When drawing it, we could render a rectangle first, reusing the usual Morph>>drawOn: implementation, and then use #image:at:sourceRect:rule:alpha: with rule Form and to limit the visible area (first and operand should be white for arc-ring pixels and transparent for all others). Don't know how many helper forms this requires.
With this approach, custom effects, including transparency, should be possible.
Furthermore, the cache might help us speed up the overall drawing.
Small example:
m :=Morphnew.
m extent:256 @ 256.
m useGradientFill.
m fillStyle colorRamp at:1put:0-> (m fillStyle colorRamp first value ccmWithAlpha:0.5).
form1 :=Formextent: m extent depth:32.
form1 getCanvas fillOval: (0 @ 0rect: form1 extent) color:Color white.
form1 getCanvas image: m imageForm at:0 @ 0sourceRect: (0 @ 0rect: form1 extent) rule:Formand.
form1 openAsMorph.
No description provided.
The text was updated successfully, but these errors were encountered: