You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: 3D_Earth_rotation_animation.rb
    path of file: ./repos/Ruby_on_Rails
    
    the code of the file until where you have to start completion: # To run this code, make sure you have the ruby-processing gem in
    
  def draw
    background(255)
    @map = create_map unless @map
    draw_map(@frame)
    @frame += 2
    @frame = 0 if @frame >= 360
  end