{"id":15314008,"url":"https://github.com/vanruesc/hygress","last_synced_at":"2025-10-08T23:32:19.341Z","repository":{"id":34281072,"uuid":"38169306","full_name":"vanruesc/hygress","owner":"vanruesc","description":null,"archived":true,"fork":false,"pushed_at":"2015-11-11T23:21:47.000Z","size":432,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T05:21:42.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vanruesc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-27T17:44:14.000Z","updated_at":"2023-01-28T20:36:45.000Z","dependencies_parsed_at":"2022-08-25T02:40:32.439Z","dependency_job_id":null,"html_url":"https://github.com/vanruesc/hygress","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanruesc%2Fhygress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanruesc%2Fhygress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanruesc%2Fhygress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanruesc%2Fhygress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanruesc","download_url":"https://codeload.github.com/vanruesc/hygress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235775518,"owners_count":19043180,"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","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-10-01T08:44:09.395Z","updated_at":"2025-10-08T23:32:13.947Z","avatar_url":"https://github.com/vanruesc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hygress \n[![Build status](https://travis-ci.org/vanruesc/hygress.svg?branch=master)](https://travis-ci.org/vanruesc/hygress) \n[![Windows build status](https://ci.appveyor.com/api/projects/status/0gnqg48tkekt5knv?svg=true)](https://ci.appveyor.com/project/vanruesc/hygress) \n[![GitHub version](https://badge.fury.io/gh/vanruesc%2Fhygress.svg)](http://badge.fury.io/gh/vanruesc%2Fhygress) \n[![npm version](https://badge.fury.io/js/hygress.svg)](http://badge.fury.io/js/hygress) \n[![Dependencies](https://david-dm.org/vanruesc/hygress.svg?branch=master)](https://david-dm.org/vanruesc/hygress)\n\nA hy(potrochoid pro)gress visualisation library. The animation that this module \nprovides can be combined with other rendering processes and doesn't use an \nisolated animation loop. The decision of where, when and how Hygress should \ndraw something is entirely yours.\n\n\n## Installation\n\nDownload the [minified library](http://vanruesc.github.io/hygress/build/hygress.min.js) and include it in your project:\n\n```html\n\u003cscript src=\"/js/hygress.min.js\"\u003e\u003c/script\u003e\n```\n\nYou can also install it with [npm](https://www.npmjs.com).\n\n```sh\n$ npm install hygress\n``` \n\n\n## Usage\n\n```javascript\nimport Hygress from \"hygress\";\n\n// All parameters are optional and can always \n// be adjusted later by accessing them as properties.\nvar hygress = new Hygress({\n\thypotrochoid: Hygress.Hypotrochoid.PENTAGRAM,\n\tsize: [400, 300],\n\tscale: 1.0,\n\tclearCanvas: false,\n\tcolourRoll: false,\n\tsaturation: 90.0,\n\tluminance: 75.0,\n\topacity: 0.25,\n\thue: 180.0\n});\n\n// Grab the canvas and put it on the page.\ndocument.body.appendChild(hygress.canvas);\n\n// You can also give Hygress your own canvas if you want.\nvar myCanvas = document.createElement(\"canvas\");\nhygress.canvas = myCanvas;\ndocument.body.appendChild(myCanvas);\n\n// Define the current canvas' size.\nhygress.size = [window.innerWidth, window.innerHeight];\n\n// Specifically define the hypotrochoid's size.\nhygress.htSize = 100.0;\n\n// Step the animation.\nrequestAnimationFrame(hygress.render);\n\n// You need to clear the canvas if the clearCanvas flag has been set to false.\nvar ctx = hygress.canvas.getContext(\"2d\");\nctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);\n\n// Sick of clearing manually?\nhygress.clearCanvas = true;\n\n// Linearly transition the opacity and scale.\nhygress.transitionTime = 1.25; // seconds\nhygress.opacity = 0.0;\nhygress.scale = 0.0;\n```\n\n\n## Documentation\n[API](http://vanruesc.github.io/hygress/docs)\n\n\n## Contributing\nMaintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.\n\n\n## License\nCopyright (c) 2015 Raoul van Rüschen  \nLicensed under the Zlib license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanruesc%2Fhygress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanruesc%2Fhygress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanruesc%2Fhygress/lists"}