Socket
Book a DemoInstallSign in
Socket

rand-dots

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

rand-dots

random dots

unpublished
latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

rand-dots is a random dots generator.

import addDots function into your javascript in your html page

the addDots(size, color, number, posX, posY) function has 5 parameters:

  • size - the size of the dots (add the number, no units like px or em)
  • color - the color of the dots (add the hexadecimal like "0xffffff" in string format)
  • number - number of dots
  • posX - the range where dots can spawn on the x axis, posX - 0
  • posY - the range where dots can spawn on the y axis, posY - 0

for example:

    import {addDots} from 'rand-dots'
    addDots(100, 0xffffff, 100, 100)

sorry, if i'm not good at explaining how it works

FAQs

Package last updated on 30 Jan 2024

Did you know?

Socket

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.

Install

Related posts