Giter Site home page Giter Site logo

stonewl897 / 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 61 KB

A nest backgroud of website draw on canvas use javascript, do not depend on jQuery.

Home Page: https://github.com/hustcc/canvas-nest.js

License: MIT License

JavaScript 70.64% HTML 29.36%

canvas-nest.js's Introduction

canvas-nest.js

A nest backgroud of website draw on canvas. 中文Readme帮助文档

feature

  • do not depend on jQuery or other javascript framework.
  • very light, only 1.75kb. 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 type="text/javascript" src="//github.atool.org/canvas-nest.min.js"></script>

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

<html>
<head>
	...
</head>
<body>
	...
	...
	...
	<script type="text/javascript" src="//github.atool.org/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, default: 0.5
  • zIndex: the index of z space, default: -1

Example:

<script type="text/javascript" color="0,0,255" opacity='0.7' zIndex="-2" src="//github.atool.org/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/

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

screenshot

other

project lib cdn url: http://github.atool.org/canvas-nest.min.js, if you has your own cdn, download canvas-nest.min.js and use your own url.

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

canvas-nest.js's People

Contributors

hustcc avatar

Watchers

stonewl 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.