Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmnsgn/eerp
Logarithmic/exponential interpolation.
https://github.com/dmnsgn/eerp
eerp exponential interpolation lerp logarithmic logerp
Last synced: about 1 month ago
JSON representation
Logarithmic/exponential interpolation.
- Host: GitHub
- URL: https://github.com/dmnsgn/eerp
- Owner: dmnsgn
- License: mit
- Created: 2021-11-08T15:18:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-06T14:26:27.000Z (6 months ago)
- Last Synced: 2024-11-29T19:25:19.037Z (about 1 month ago)
- Topics: eerp, exponential, interpolation, lerp, logarithmic, logerp
- Language: JavaScript
- Homepage: https://dmnsgn.github.io/eerp/
- Size: 446 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# eerp
[![npm version](https://img.shields.io/npm/v/eerp)](https://www.npmjs.com/package/eerp)
[![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)](https://www.npmjs.com/package/eerp)
[![npm minzipped size](https://img.shields.io/bundlephobia/minzip/eerp)](https://bundlephobia.com/package/eerp)
[![dependencies](https://img.shields.io/librariesio/release/npm/eerp)](https://github.com/dmnsgn/eerp/blob/main/package.json)
[![types](https://img.shields.io/npm/types/eerp)](https://github.com/microsoft/TypeScript)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-fa6673.svg)](https://conventionalcommits.org)
[![styled with prettier](https://img.shields.io/badge/styled_with-Prettier-f8bc45.svg?logo=prettier)](https://github.com/prettier/prettier)
[![linted with eslint](https://img.shields.io/badge/linted_with-ES_Lint-4B32C3.svg?logo=eslint)](https://github.com/eslint/eslint)
[![license](https://img.shields.io/github/license/dmnsgn/eerp)](https://github.com/dmnsgn/eerp/blob/main/LICENSE.md)Logarithmic/exponential interpolation.
[![paypal](https://img.shields.io/badge/donate-paypal-informational?logo=paypal)](https://paypal.me/dmnsgn)
[![coinbase](https://img.shields.io/badge/donate-coinbase-informational?logo=coinbase)](https://commerce.coinbase.com/checkout/56cbdf28-e323-48d8-9c98-7019e72c97f3)
[![twitter](https://img.shields.io/twitter/follow/dmnsgn?style=social)](https://twitter.com/dmnsgn)Based on [Freya Holmér naming](https://twitter.com/FreyaHolmer/status/1068293398073929728) and [Scott Lembcke' Logarithmic Interpolation](https://www.gamedeveloper.com/programming/logarithmic-interpolation).
![](https://raw.githubusercontent.com/dmnsgn/eerp/main/screenshot.png)
## Installation
```bash
npm install eerp
```## Usage
```js
import eerp from "eerp";const i = eerp(a, b, t);
```## API
## eerp
### eerp(a, b, t) ⇒
number
⏏Logarithmic/exponential interpolation
**Kind**: Exported function
| Param | Type | Description |
| ----- | ------------------- | ----------- |
| a |number
| Start |
| b |number
| End |
| t |number
| Interpolant |## License
MIT. See [license file](https://github.com/dmnsgn/eerp/blob/main/LICENSE.md).