Sha256: 9b41c247ead4c16bd6ed217763304e03fdf30cf0229bf882cd46f9a75376785b

Contents?: true

Size: 316 Bytes

Versions: 3

Compression:

Stored size: 316 Bytes

Contents

cm
--

Given centimeters, returns the number of pixels according to the deck's DPI.

Parameters
^^^^^^^^^^

n
  the number of centimeters


Examples
^^^^^^^^

.. code-block:: ruby

  cm(1)         # 118.11px (for default Deck::dpi of 300)
  cm(2) + cm(1) # 354.33ox (for default Deck::dpi of 300)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
squib-0.12.0 docs/dsl/cm.rst
squib-0.11.0 docs/dsl/cm.rst
squib-0.10.0 docs/dsl/cm.rst