Class Line

"Willian Filus" <[email protected]> Thu, 21 Apr 2005 13:39:26 -0300
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
Hello, 

 

Please i would like to know how use the method connect from class Line, I
have the following code but it not functions

 

@include "Mobile.tz"

@include "Line.tz"

@include "Control.tz"

 

Controller Main.

 

Control : Main{

            + variables:

                        ball2 (object).

                        ball3 (object).

            

            + to init:

                        ball2 = new Balls.

                        ball3 = new Balls.

 

                        ball2 move to (2.0,0.5,0.0).

 

                        connect from ball2 to ball3 with-color (0,0,1)
with-style "------ -----".

 

}

 

Mobile: Ball (aka Balls) {

            + to init:

                        self set-shape to (new Sphere init-with radius .3).

                        self set-color to (0.0,0.0,1.0).

}

 

Another question is, the line thickness, is possible change it ?

 

Thanks for help,

Willian

_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve