Plots an optionally semi transparent, shiny or matt coloured ball inside a three dimensional window
Ball/DRAW | centre=Realarray radius=Real table=Colourtable [transparency=Integer] [eye=Realarray] [light=Realarray] | Plots a coloured ball, in a 3d window. |
Ball/ALTER | [centre=Realarray] [radius=Real] [table=Colourtable] [transparency=Integer] [eye=Realarray] [light=Realarray] object=Gobject | Alters a previously plotted ball. |
example:
#Plot a ball >> b=Ball:draw(centre,2.0,table) #alter the radius of the ball >> Ball/alter radius=1.5 object=b
Plots an optionally semi transparent, shiny or matt coloured ball inside a 3d window. All (x,y,z) values are taken to be given in world coordinates. The z component of the balls centre should be negative (< -radius).
centre (Realarray)
(x,y,z) coordinate of the balls centre.
radius (Real)
The radius of the ball.
table (Colourtable)
The colour table to be used, see ColourTable for details.
transparency (Integer)
The level of transparency expressed as a percentage. By default this is zero.
eye (Realarray)
(x,y,z) coordinate of the eye position, see Win_ThreeD for details.
light (Realarray)
(x,y,z) direction of the flood-light, see Win_ThreeD for details.
RESULT = (Gobject)
Returns the properties of the newly created ball.
Alters a ball plotted inside a 3d window.
centre (Realarray)
(x,y,z) coordinate of the balls centre.
radius (Real)
The radius of the ball.
table (Colourtable)
The colour table to be used, see ColourTable for details.
transparency (Integer)
The level of transparency expressed as a percentage.
eye (Realarray)
(x,y,z) coordinate of the eye position, see Win_ThreeD for details.
light (Realarray)
(x,y,z) direction of the flood-light, see Win_ThreeD for details.
object (Gobject)
The ball object to be altered.
RESULT = (Gobject)
Returns the properties of the altered ball.