Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
addbackground
Advanced tools
Readme
Beautiful canvas backgrounds made easy.
TypeSocket is available on npm, you can install it with either npm or yarn:
npm install addbackground
# or:
yarn install addbackground
import { addBackground } from 'addbackground';
const canvas = document.getElementById('backgroundCanvas');
addBackground({ canvas, type: 'bubbles' });
addBackground is the main function that adds a background to the selected canvas and keeps rendering it.
It accepts one argument of type BackgroundOptions
and returns an instance of BackgroundControls
.
BackgroundOptions is an object that has the following properties:
Property | Default value | Description |
---|---|---|
canvas | undefined | Canvas element to render to. (required) |
type | undefined | Background type, currently: either 'ripples' or 'bubbles'. (required) |
primaryColor | rgba(255, 255, 255, 0.2) | Primary color, accepts a CSS value.. |
secondaryColor | rgba(0, 0, 0, 0.2) | Secondary color, accepts a CSS value.. |
backgroundColor | transparent | Background color, accepts a CSS value.. |
Returns the playback state of the animation.
Sets the playback state of the animation.
Disassembles the animation, clears the canvas. Further playback is impossible after this function is called.
FAQs
Beautiful canvas backgrounds made easy.
The npm package addbackground receives a total of 4 weekly downloads. As such, addbackground popularity was classified as not popular.
We found that addbackground demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.