Skip to content

Plugins to extend the functionality of the Snap.svg JavaScript library.

Notifications You must be signed in to change notification settings

ianhirschfeld/Snap.svg-Plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Snap.svg-Plugins

Plugins to extend the functionality of the Snap.svg Javascript library.

Hexagon

  • Snap.Hexagon.width(el)
  • Snap.Hexagon.height(el)
  • Snap.Hexagon.diameter(size)
  • Snap.Hexagon.incircleRadius(size)
  • Snap.Hexagon.incircleDiameter(size)
###
Draws a regular hexagon.

@param r {Number} Radius (aka Side length)
@param a {Number} Angle of rotation in degrees
@param roundness {Number} Roundness of vertices
@param originCenter {Boolean} If true, draws hexagon with center at origin
@return {Element} A Snap Element
###
Paper.hex(r = 50, a = 0, roundness = 0, originCenter = false)

About

Plugins to extend the functionality of the Snap.svg JavaScript library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published