ambient-cbg-ts
Version:
A React.js webpage backgrounds created using the HTML5 Canvas API and jwagner's Simplex Noise library
57 lines (41 loc) • 1.4 kB
Markdown
The main project [crnacura/ambient-cbg](https://yuriylisovskiy.github.io/ambient-cbg).
I just re-implemented the components to make it support typescript and work with the latest reactjs.
---
git s
This module is React adaptation of [crnacura/AmbientCanvasBackgrounds](https://github.com/crnacura/AmbientCanvasBackgrounds) project with additional code refactoring and improvements.
Check the [example](https://yuriylisovskiy.github.io/ambient-cbg) web application.
```bash
$ npm install ambient-cbg-ts
```
OR using yarn
```bash
$ yarn add ambient-cbg-ts
```
Example:
```js
// App.js
import React, {Component} from 'react';
import './App.css';
import {Pipline} from 'ambient-cbg-ts'
class App extends Component {
render() {
return (
<div className="App">
<Pipline/>
<h1>Hello, World!</h1>
</div>
);
}
}
export default App;
```
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
| backgroundColor | Change the canvas background-color. | string (e.g.
| styles | Change the canvas default styles. | CSSProperties | {....} | 1.1.0 |
This project is licensed under the conditions of the MIT software license, see [LICENSE](LICENSE) file for more details.