Skip to content

19mkarpawich/triangles.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

triangles.js

A library for Delaunay triangulation and Lambertian reflectance. Want to get familiar with the library? Check out the playground!

Documentation and more examples will come soon!

Examples

Basic Usage

HTML - index.html

<head>
    <link rel='stylesheet' href='index.css'/>
    <script type='text/javascript' src='triangles.js'></script>
</head>
<body>
    <div id='container'></div>
</body>

CSS - index.css

body,html {
    width: 100%;
    height: 100%;
    margin: 0;
}

#container {
    width: 100%;
    height: 100%;
}

Javascript - index.js

const element = Triangles.add({
  id: 'container'
});

Attribution

Based upon the demo originally created by Maksim Surguy.
Special thanks to him for the inspiration for this library!

License

Licensed under the MIT License (MIT).

Releases

No releases published

Packages

No packages published