repeat

repeat() Instance Public methods This method ties together the simulation engine and the graphical display code that visualizes it.

showPendulum

showPendulum(x=nil, y=nil) Instance Public methods This procedure makes the pendulum appear at the correct place on the canvas. If the additional arguments x, y are passed instead of computing the position of the pendulum from the length of the pendulum rod and its angle, the length and angle are computed in reverse from the given location (which is taken to be the centre of the pendulum bob.)

showPhase

showPhase() Instance Public methods Update the phase-space graph according to the current angle and the rate at which the angle is changing (the first derivative with respect to time.)

new

new(*args) Class Public methods

fig_erase

fig_erase() Instance Public methods

get_texts

get_texts() Instance Public methods

load_photo

load_photo(filename) Instance Public methods

modified?

modified?() Instance Public methods

reset_region

reset_region() Instance Public methods

new

new(*args) Class Public methods Create a new image with the given options. Examples of use : Create an empty image of 300x200 pixels image = TkPhotoImage.new(:height => 200, :width => 300) Create an image from a file image = TkPhotoImage.new(:file: => 'my_image.gif') Options Photos support the following options: :data Specifies the contents of the image as a string. :format Specifies the name of the file format for the data. :file Gives the name of a file that is to