Method: Osb#background

Defined in:
lib/osb/dsl/object.rb

#background(file_path:) ⇒ void

This method returns an undefined value.

Set the background image for the beatmap.

Parameters:

  • file_path (String)

    location of the background image relative to the beatmap directory.



110
111
112
113
114
# File 'lib/osb/dsl/object.rb', line 110

def background(file_path:)
  self.raise_unless_inside_storyboard!

  @storyboard << Background.new(file_path: file_path)
end