Hi Angel,
A very timely contribution. I was looking for a way to show positive and negative charges on atoms.
A few experiments later I find that
draw   {atomno=4} "+"
draw   {atomno=4} "–"
works quite nicely.
Control over the colour and font size would be great and Bob suggested that Unicode characters might also work but although they might provide even more scope, I'm unsure how to deploy them.
All the best
Nick
--
3D Organic Animations     http://www.chemtube3d.com
Tel:             +44 (0)151-794-3506 (3500 secretary)
–


On 3 Jun 2008, at 16:50, [EMAIL PROTECTED] wrote:

Date: Mon, 02 Jun 2008 11:55:08 +0200
From: "Angel Herraez" <[EMAIL PROTECTED]>
Subject: [Jmol-users] properties of labels associated to drawn objects
To: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII

Hi

The DRAW command allows to include a text label associated to the
drawn object. This is an excellent tool, but I'd need some
customization:
Is there a way to control the font size and color of such labels?

draw myLine color green diameter 3 "important line" {2.6 -0.7 -0.9}
{2.6 -3.4 -0.9};

Right now, I get them in white (since applet background is black),
SansSerif, about 14 points. If not possible, a good default would be
to match the object's color. I know I can use 3D-positioned echos,
but it is much simpler this way.

Bonus: How is "hoverText" specified differentially to "text" in the
DRAW command?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to