Skip to content

ivanbanov/PolygonJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PolygonJS v0.2.0

A script to generate any regular polygon.

Live Demo

You can see the script running here.

Installation

To use the polygonJS you just need add to your project the polygon script and css.

<link rel="stylesheet" href="path/polygon.css" />
<script src="path/polygon.js"></script>

NOTE: PolygonJS runs normally just the css code version. The pre-processor LESS is used just for a faster and easily development.

Usage

HTML

<div id="polygon"></div>

SCRIPT
Put the script on bottom of your code.

<script>
  //polygon(element, sides);
  polygon('#square', 4);
</script>

About

A script to generate any regular polygon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published