It works. Thanks Doru,
Alexandre
On 12 Oct 2008, at 13:43, Tudor Girba wrote:
In that case, you have to define another shape before using the
edges.
view newShape
rectangle;
withBorder.
view nodes: domain.
view newShape
line;
lineWidth: 5;
lineColor: ColorValue red.
view edgesFrom: [:v | v * v].
Cheers,
Doru
On Oct 12, 2008, at 12:22 PM, Alexandre Bergel wrote:
> Thanks Doru,
> But actually, I would like to have the lines between nodes with a red
> color and a width of 5 pixels.
>
> Shall I create a new shape?
>
> Cheers,
> Alexandre
>
>
> On 12 Oct 2008, at 12:07, Tudor Girba wrote:
>
>> Hi Alex,
>>
>> line; is for edges. Just remove it and it works.
>>
>> Cheers,
>> Doru
>>
>>
>> On Oct 12, 2008, at 10:59 AM, Alexandre Bergel wrote:
>>
>>> Dear List,
>>>
>>> I was wondering why the following script does not have red and 5
>>> pixels wide edges:
>>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>> | domain |
>>> domain := 1 to: 30.
>>> view newShape
>>> rectangle;
>>> withBorder;
>>> line;
>>> lineWidth: 5;
>>> lineColor: ColorValue red.
>>> view nodes: domain.
>>> view edgesFrom: [:v | v * v].
>>> view circleLayout
>>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>>
>>> I am probably doing something wrong, but haven't see what.
>>>
>>> Cheers,
>>> Alexandre
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel
http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Moose-dev mailing list
>>> Moose-dev(a)iam.unibe.ch
>>>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>
>> --
>>
www.tudorgirba.com
>>
www.tudorgirba.com/blog
>>
>> "Problem solving efficiency grows with the abstractness level of
>> problem understanding."
>>
>>
>> _______________________________________________
>> Moose-dev mailing list
>> Moose-dev(a)iam.unibe.ch
>>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel
http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev(a)iam.unibe.ch
>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
www.tudorgirba.com/blog
"When people care, great things can happen."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev