Hi,
it seems that last control point of a bezier line is off.
Here is a comparative view of RTBezierLine (black line) and bezier line
done with SVG (red line). Notice how the bottom half is flatlined and
doesn't match up.
​
And the code (based on RTRoassalExample>>exampleBezierCurve):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| v e1 e2 l s p1 p2 path svg|
v := RTView new.
e1 := (RTEllipse new size: 15; color: (Color blue alpha: 0.4)) element.
e2 := (RTEllipse new size: 15; color: (Color blue alpha: 0.4)) element.
e2 translateBy: -150 @ 150.
p1 := RTBox element.
p2 := RTBox element.
p1 translateTo: (e2 position x + e1 position x / 2) @ e1 position y.
p2 translateTo: (e2 position x + e1 position x / 2) @ e2 position y.
v add: p1.
v add: p2.
s := RTBezierLine new.
s color: Color black.
s controllingElements: (Array with: p1 with: p2).
l := s edgeFrom: e1 to: e2.
v add: e1.
v add: e2.
v add: l.
path := 'M -150 150 Q -75 150 -75 75 Q -75 0 0 0'.
svg := RTSVGPath new borderColor: Color red; path: path; element.
v add: svg.
^ v
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Peter
… if we have XML, why not CSV and JSON? This is all wide-spread standard
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi, in all versions of Roassal I could as an element in which view it is. But it looks like Roassal-Woden doesn’t have this API. Is there a different philosophy?
Uko
Hi all,
When I'm trying to install CoreRoassal by running this:
~~~~
Gofer new
smalltalkhubUser: 'Moose' project: 'GToolkit';
package: 'GT-InspectorExtensions-CoreRoassal';
load.
~~~~
I get this message:
~~~~
This package depends on the following classes:
RTBoxPlotDataSet
You must resolve these dependencies before you will be able to load
these definitions:
examplesProvider
~~~~
I don't how to find the dependencies to get a clean install. Can
somebody point me in the right direction?
Cheers,
Offray
Dear Colleagues and Friends,
We are happy to announce we will organize a CampSmalltalk about the Roassal visualization engine, on _Sunday 12 July_.
As far as we have seen, the interests are multiple. Here is a list of topics we will happy to work on:
- Improving Grapher, our charting library
- Fixing bugs, addressing recently uncovered issues (e.g., composite shapes)
- HTML/JavaScript export
Some participants have indicated a great interest in:
- Port of Roassal on VisualWorks
- Using Roassal on Gemstone
If you wish to participate, get in touch with us. Since we will probably have a sponsoring of the event, it would be nice to know how many will attend to ease the logistic and the pizza ordering :-)
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi all!
I want to build a dynamic graph on a composer.. Is that possible?
It throws up an error on 'b add:ds', ie. when I want to add the dataset. It
throws a 'MessageNotUnderstood' error. Can't I pass the Dynamic Grapher a
RTStackedDataSet?
Thanks!
buildDynamicGraph:anObjectArray onComposer:aComposer
| b ds |
b := RTDynamicGrapher new.
b view: aComposer view.
ds := RTStackedDataSet new.
ds points: anObjectArray.
ds y: #second.
ds barShape width: 30.
ds histogramWithBarTitle: #first rotation: 0.
b add: ds.
b axisX noLabel; noTick.
b build.
^ b
Hi!
If you have an image with Roassal open, give a try:
v := RTView new.
v when: TRMouseClick do: [ :event | v clean ].
v when: TRMouseMove do: [ :event |
e := (RTBox new color: (Color red alpha: 0.2); size: 20 atRandom + 5) element.
e translateTo: event positionFromCamera.
v add: e.
v addAnimation: (RTAccelerationMove to:
event positionFromCamera + ((150 atRandom - 75) @ (150 atRandom - 75)) during: 5 on: e)
].
v
:-)
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Done!
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> On May 4, 2015, at 12:41 PM, Jigyasa Grover <grover.jigyasa1(a)gmail.com> wrote:
>
> Done !
>
> On Mon, May 4, 2015 at 9:47 PM, Yuriy Tymchuk <yuriy.tymchuk(a)me.com <mailto:yuriy.tymchuk@me.com>> wrote:
> Dear Pharo developers,
>
> I kindly ask you to participate in the Code Critics mini-survey: https://www.esurveycreator.com/s/8af18d8 <https://www.esurveycreator.com/s/8af18d8>.
> It will take only a coupe minutes of your time (or less), and will give us the better understanding of how Code Critics are currently used and how to improve them.
>
> Cheers!
> Yuriy
>
Dear Pharo developers,
I kindly ask you to participate in the Code Critics mini-survey: https://www.esurveycreator.com/s/8af18d8.
It will take only a coupe minutes of your time (or less), and will give us the better understanding of how Code Critics are currently used and how to improve them.
Cheers!
Yuriy
Hi!
I have just added a browser for the examples.
Accessible from the World menu.
We are making progresses :-)
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.