Thanks Christian, that worked nicely.
Daryle.
-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, July 27, 1999 3:13 PM
Subject: [JAVA3D] AW: [JAVA3D] Newbie Question: Fonts and Color
Hi Daryle!
To set the color of inidividual text in J3D, you have to distinguish between
Text2D and Text3D. In Text2D you set the Color with parameters in the
constructor. For Text3D, you have to set the color attributes appearance of
your Textobject.
Text3D example:
...
Text3D txt = new Text3D(font3d, text, new Point3f());
Shape3D s3d = new Shape3D();
Appearance app = new Appearance();
ColoringAttributes colattr = new ColoringAttributes();
colattr.setColor(red, green, blue);
app.setColoringAttributes(colattr);
s3d.setGeometry(txt);
s3d.setAppearance(app);
...
Hope this helps,
Christian
-----Urspr�ngliche Nachricht-----
Von: Daryle Singh [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 26. Juli 1999 11:21
An: [EMAIL PROTECTED]
Betreff: [JAVA3D] Newbie Question: Fonts and Color
Hi,
How do you set the color of individual text in Java3d?
Can't seem to find a setColor method,can set font type and size only.
Any code etc...
TIA
Daryle.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".