You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
572 B
16 lines
572 B
module Squib |
|
class Deck |
|
# Fills the background with the given color |
|
# |
|
# @params opts: the parameter hash. |
|
# @option range: the range of cards over which this will be rendered. See {file:API.md#label-Specifying+Ranges Specifying Ranges} |
|
# @option color: the color the font will render to. See {file:API.md#label-Specifying+Colors Specifying Colors} |
|
# @return [nil] |
|
# @api public |
|
def background(opts = {}) |
|
opts = needs(opts,[:range, :color]) |
|
opts[:range].each { |i| @cards[i].background(opts[:color]) } |
|
end |
|
|
|
end |
|
end |