{"id":13726204,"url":"https://github.com/jchavarri/rebez","last_synced_at":"2025-03-18T00:31:33.611Z","repository":{"id":76212624,"uuid":"170118390","full_name":"jchavarri/rebez","owner":"jchavarri","description":"Cubic bezier implementation in Reason / OCaml.","archived":false,"fork":false,"pushed_at":"2019-06-20T12:04:42.000Z","size":40,"stargazers_count":31,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T06:04:06.922Z","etag":null,"topics":["animation","bezier-curve","cubic-bezier","easing-functions","ocaml","reasonml"],"latest_commit_sha":null,"homepage":null,"language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jchavarri.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-02-11T11:35:34.000Z","updated_at":"2022-04-05T05:47:02.000Z","dependencies_parsed_at":"2023-03-11T21:54:05.137Z","dependency_job_id":null,"html_url":"https://github.com/jchavarri/rebez","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchavarri%2Frebez","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchavarri%2Frebez/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchavarri%2Frebez/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jchavarri%2Frebez/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jchavarri","download_url":"https://codeload.github.com/jchavarri/rebez/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243893849,"owners_count":20364918,"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":["animation","bezier-curve","cubic-bezier","easing-functions","ocaml","reasonml"],"created_at":"2024-08-03T01:02:55.652Z","updated_at":"2025-03-18T00:31:33.356Z","avatar_url":"https://github.com/jchavarri.png","language":"OCaml","funding_links":[],"categories":["OCaml"],"sub_categories":[],"readme":"[![Build Status](https://dev.azure.com/javierchavarri/javier_chavarri/_apis/build/status/jchavarri.rebez?branchName=master)](https://dev.azure.com/javierchavarri/javier_chavarri/_build/latest?definitionId=1\u0026branchName=master)\n\n# rebez\n\nCubic bezier implementation in Reason / OCaml.\n\nAdapted from the JavaScript version in https://github.com/gre/bezier-easing.\n\nBezierEasing provides Cubic Bezier Curve easing which generalizes easing functions (ease-in, ease-out, ease-in-out, etc) exactly like in CSS Transitions.\n\nImplementing efficient lookup is not easy because it implies projecting the X coordinate to a Bezier Curve. This micro library uses fast heuristics (involving dichotomic search, newton-raphson, sampling) to focus on performance and precision.\n\n\u003e It is heavily based on implementations available in Firefox and Chrome (for the CSS transition-timing-function property).\n\n\n## Install\n\nWith `esy`, add to your `package.json`:\n\n```json\n{\n  \"dependencies\": {\n    \"rebez\": \"*\",\n  },\n  \"resolutions\": {\n    \"rebez\": \"github:jchavarri/rebez\",\n  },\n}\n```\n\n## Using\n\nIn Reason:\n\n```reason\nlet easing = Rebez.make(0., 0.99, 0., 0.99);\n// `easing` is a function that can receive values from 0.0 to 1.0\nlet value = easing(0.01); // 0.512011914581\n```\n\nIn OCaml:\n\n```ocaml\nlet easing = Rebez.make 0. 0.99 0. 0.99\n(* `easing` is a function that can receive values from 0.0 to 1.0 *)\nlet value = easing 0.01  (* 0.512011914581 *)\n```\n\n## Developing:\n\n```\nnpm install -g esy\ngit clone https://github.com/jchavarri/rebez/\nesy install\nesy build\n```\n\n## Running Tests:\n\n```\n# Runs the \"test\" command in `package.json`.\nesy test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjchavarri%2Frebez","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjchavarri%2Frebez","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjchavarri%2Frebez/lists"}