From: Luis Rosales (ludwig_at_biomedicas.unam.mx)
Date: Mon Mar 28 2005 - 21:23:07 CST

Hi all!!

Nitin,

To draw an sphere you use the command draw:

draw sphere {0 0 0}

Or:

draw sphere {0 0 0} radius 2 resolution 20

and to change the color you are using:

draw color 2

And as you said, all subsequent objects will be drawn on that color.
Hope this helps,

Ludwig

> -----Original Message-----
> From: owner-vmd-l_at_ks.uiuc.edu
> [mailto:owner-vmd-l_at_ks.uiuc.edu] On Behalf Of Nitin Bhardwaj
> Sent: Monday, March 28, 2005 6:56 PM
> To: vmd-l_at_ks.uiuc.edu
> Subject: vmd-l: Problem with the Graphics Command
>
>
> Hi,
>
> Problem 1:
> >From the manual of the graphics command, I gather that to
> change a color,
> I need to say:
>
> color = 2 (or whatever color id)
>
> and then all the subsequent objects are in that color.
>
> But no matter what color id or name I type in, all the
> objects are in blue
> (color id 0). Am i missing something?
>
> Problem 2:
> Also when I want to set the radius of a sphere to 2, I say:
>
> sphere {0 0 0} [r=2].
>
> This does not work. I guess I am putting in the command
> inapproprately.
> What is the correct format of the command.
>
> Please help for both the points.
>
>
> Thanks,
> Keep up the good work.
> Rgds,
> Nitin
>
>