{"id":19298971,"url":"https://github.com/javierbyte/dancing-dots","last_synced_at":"2025-07-29T13:10:30.950Z","repository":{"id":79430938,"uuid":"51273153","full_name":"javierbyte/dancing-dots","owner":"javierbyte","description":"A js lib to get nice moving dot coordinates.","archived":false,"fork":false,"pushed_at":"2016-02-08T03:17:51.000Z","size":79,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"gh-pages","last_synced_at":"2025-02-24T01:16:21.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://javier.xyz/dancing-dots","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javierbyte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-08T00:32:12.000Z","updated_at":"2018-09-06T16:54:29.000Z","dependencies_parsed_at":"2023-04-28T18:44:21.294Z","dependency_job_id":null,"html_url":"https://github.com/javierbyte/dancing-dots","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"63c25646e946e6c8d9648d8c7ad6d51a09930d9a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/javierbyte/dancing-dots","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Fdancing-dots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Fdancing-dots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Fdancing-dots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Fdancing-dots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javierbyte","download_url":"https://codeload.github.com/javierbyte/dancing-dots/tar.gz/refs/heads/gh-pages","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Fdancing-dots/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267693128,"owners_count":24129131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T23:09:40.082Z","updated_at":"2025-07-29T13:10:30.912Z","avatar_url":"https://github.com/javierbyte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [DancingDots](http://javierbyte.github.io/dancing-dots/)\n\n[![](screenshot.png)](http://javierbyte.github.io/dancing-dots/)\n\nA library to get nice step by step dot coordinates with nice movement.\n\nHave you ever wanted to get a set of points, and then move them like if they have a nice trayectory? No? Maybe you will want now.\n\n## Usage\n\nGet from npm\n```\n  npm install dancing-dots --save\n```\n\nInstanciate dancing dots.\n\n```js\n  const DancingDots = require('dancing-dots')\n  const dots = new DancingDots(configurationObject)\n```\n\nThe configuration object can have the following properties:\n\n  * `dotCount`. Integer. How many dots do you want? Defaults to `10`.\n  * `speed`. Integer. How fast do you want the dots to move? Defaults to `5`.\n  * `width`. Integer. The width of the grid. Defaults to `100`.\n  * `height`. Integer. The height of the grid. Defaults to `100`.\n  * `getOnlyInts`. Boolean. Do you want only integers in your results?. Defaults to `true`.\n\n\n## Get the dots.\n\n```js\n  dots.getCoords()\n```\n\nYou get:\n\n```js\n  [{\n    x: 40,\n    y: 40\n  }, {\n    x: 14,\n    y: 99\n  }, {\n    x: 66,\n    y: 70\n  },\n  ...\n```\n\n## Update and get the dots.\n\n```js\n  dots.getCoordsAndUpdate()\n```\n\nThat updates the position of the dots, and returns the new positions, just like `getDots()`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavierbyte%2Fdancing-dots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavierbyte%2Fdancing-dots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavierbyte%2Fdancing-dots/lists"}