# File lib/zyps/views/trails.rb, line 34
        def initialize (width = 600, height = 400, trail_length = 5, trail_width = trail_length)
        
                @width, @height, @trail_length, @trail_width = width, height, trail_length, trail_width
        
                #Create a drawing area.
                @canvas = Gtk::DrawingArea.new
                #Set to correct size.
                resize
                
                #Whenever the drawing area needs updating...
                @canvas.signal_connect("expose_event") do
                        #Copy buffer bitmap to canvas.
                        @canvas.window.draw_drawable(
                                @canvas.style.fg_gc(@canvas.state), #Gdk::GC (graphics context) to use when drawing.
                                buffer, #Gdk::Drawable source to copy onto canvas.
                                0, 0, #Pull from upper left of source.
                                0, 0, #Copy to upper left of canvas.
                                -1, -1 #-1 width and height signals to copy entire source over.
                        )
                end
                
                #Track a list of locations for each object.
                @locations = Hash.new {|h, k| h[k] = Array.new}
                
        end