Giter Site home page Giter Site logo

react-triangulate's Introduction

react-triangulate

Simple Delauney triangulation example with animation. Triangle points are generated using delaunator.

DEMO

Preview

preview

Triangulate properties

Prop Type Definition Default value
topcolor string Top gradient color. #221A33
botcolor string Bottom gradient color. #8A3D99
pointscolor string Color of triangle points. #000000
mincirclesize number Minimal triangle point size. 3
maxcirclesize number Maximal triangle point size. 8
count number Number of triangle points. 100
minspeed number Minimal speed of a triangle point. 0.1
maxspeed number Maximal speed of a triangle point. 0.5
pointshadowblur number Blur strength around tringle points (shadow). 0
pointshadowcolor string Blur color around a triangle points. #00000000
colorvariance boolean Should triangle points be a different color? false
tint percentage Triangle points color tint. 0
shade percentage Triangle points color shade. 1
triangleshadowblur number Blur strength inside a triangle (50 looks like a nice inner shadow). 0
triangleshadowcolor string Blur color inside a triangle. #00000000
linewidth number Width of a line connecting triangle points. 1.0
linecolor string Color of a line connecting triangle points. #00000000
fps number Frames per second limit. 60
backgroundcolor string Background canvas color - fallback! #00000000
fadecolor string Fade color when resizing window. #221A33
stretching boolean Does the canvas stretch during window resize? false

Todo

  • make a non-intrusive control panel for customisation (resource)

react-triangulate's People

Contributors

xteamstanly avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.