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.
17 lines
381 B
17 lines
381 B
module Squib |
|
class Deck |
|
|
|
# Given inches, returns the number of pixels according to the deck's DPI. |
|
# |
|
# @example |
|
# inches(2.5) # 750 (for default Deck::dpi of 300) |
|
# |
|
# @param [Decimal] n, the number of inches |
|
# @return [Decimal] the number of pixels, according to the deck's DPI |
|
# @api public |
|
def inches(n) |
|
@dpi * n |
|
end |
|
|
|
end |
|
end |