Coder Social home page Coder Social logo

cuihuale / canvas-nest.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hustcc/canvas-nest.js

0.0 1.0 0.0 72 KB

:cancer: Interactive Particle / Nest System With JavaScript and Canvas, Do not Depends on jQuery.

Home Page: http://git.hust.cc/canvas-nest.js/

License: MIT License

JavaScript 82.05% HTML 17.95%

canvas-nest.js's Introduction

canvas-nest.js

A nest backgroud of website draw on canvas. 中文Readme帮助文档. For wordpress plugin, search canvas-nest or see canvas-nest-for-wp.

travis-ci npm npm

feature

  • do not depend on jQuery or other javascript framework.
  • very light, only 1.6 kb. can be smaller after gzip.
  • so easy to use, even you are not a web developer.

usage

so eazy that I do not want write the chapter.

insert the code below between <body> and </body>.

<script src="//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js"></script>

suggest before the tag </body>. like below:

<html>
<head>
	...
</head>
<body>
	...
	...
	...
	<script src="//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js"></script>
</body>
</html>

please do not add the code in the <head> </head>.

then ok!

config

  • color: the canvas line color, default: '0,0,0' ; the color is (R,G,B)
  • opacity: the opacity of line (0~1), default: 0.5
  • count: the number of lines, default: 150
  • zIndex: the index of z space, default: -1

Example:

<script type="text/javascript" color="0,0,255" opacity='0.7' zIndex="-2" count="99" src="//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js"></script>

set the config on the script node as a attribute. all the config has the default value, you can choose to set any of them.

preview

  1. OnlineTool: http://www.atool.org/
  2. aiBQ: https://aibq.cn/

if you has used this project, pls let me know, I can add your website on.

screenshot

other

Project library cdn url: http://www.bootcdn.cn/canvas-nest.js/.

any bug or question, welcome to push request and issue.

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.