1.0.0 • Published 8 years ago

angles-impress v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

hexify-impress

Simple script to layout slides using angles and distances for impress.js

Reads HTML from standard input and writes HTML into standard output.

Input

The script will consider the following attributes of the step to calculate position and scale

  • data-angles - a series of pairs separated by spaces. Angles are in degrees.

Output

The script will calculate the following attributes

  • data-x - cos(angle1) distance1 + cos(angle2) distance2 + cos(angle3) * distance3 + ...
  • data-y - sin(angle1) distance1 + sin(angle2) distance2 + sin(angle3) * distance3 + ...
1.0.0

8 years ago