units: support mm

Closes #161
This commit is contained in:
Andy Meneely
2016-06-27 11:10:39 -04:00
parent acd04b34a3
commit 4ea30c63e2
7 changed files with 77 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
mm
------
Given millimeters, returns the number of pixels according to the deck's DPI.
Parameters
^^^^^^^^^^
n
the number of mm
Examples
^^^^^^^^
.. code-block:: ruby
mm(1) # 11.811px (for default Deck::dpi of 300)
mm(2) + mm(1) # 35.433ox (for default Deck::dpi of 300)