Registry / utility / modular-scale

modular-scale

JSON →
library3.0.8rbrubygemsunverified

Generates a list of values that share a consistent proportional relationship, often used for sizing type and creating harmony in design.

gem install modular-scale
INSTALL
IMPORT
SIG · MODULAR-SCALE
M
modular-scale
utilityrubyv3.0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ModularScale
require 'modular-scale'

Create a modular scale with a golden ratio and base size, then generate values.

require 'modular-scale' scale = ModularScale.new(ratio: 1.618, base: 16) puts scale.values(5) # => [16, 25.888, 41.888, 67.776, 109.664]
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.0.8latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
modular-scale — gem install modular-scale · libregistry