Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmnsgn/inverse-smoothstep
The inverse of the smoothstep function.
https://github.com/dmnsgn/inverse-smoothstep
interpolation inverse-smoothstep smoothstep
Last synced: about 2 months ago
JSON representation
The inverse of the smoothstep function.
- Host: GitHub
- URL: https://github.com/dmnsgn/inverse-smoothstep
- Owner: dmnsgn
- License: mit
- Created: 2024-03-23T23:21:51.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-06T14:11:15.000Z (7 months ago)
- Last Synced: 2024-11-29T19:25:11.789Z (about 2 months ago)
- Topics: interpolation, inverse-smoothstep, smoothstep
- Language: JavaScript
- Homepage: https://dmnsgn.github.io/inverse-smoothstep/
- Size: 237 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# inverse-smoothstep
[![npm version](https://img.shields.io/npm/v/inverse-smoothstep)](https://www.npmjs.com/package/inverse-smoothstep)
[![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)](https://www.npmjs.com/package/inverse-smoothstep)
[![npm minzipped size](https://img.shields.io/bundlephobia/minzip/inverse-smoothstep)](https://bundlephobia.com/package/inverse-smoothstep)
[![dependencies](https://img.shields.io/librariesio/release/npm/inverse-smoothstep)](https://github.com/dmnsgn/inverse-smoothstep/blob/main/package.json)
[![types](https://img.shields.io/npm/types/inverse-smoothstep)](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/inverse-smoothstep)](https://github.com/dmnsgn/inverse-smoothstep/blob/main/LICENSE.md)The inverse of the smoothstep function.
[![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 [Inigo Quilez](https://iquilezles.org/articles/ismoothstep/).
![](https://raw.githubusercontent.com/dmnsgn/inverse-smoothstep/main/screenshot.png)
## Installation
```bash
npm install inverse-smoothstep
```## Usage
```js
import inverseSmoothstep from "inverse-smoothstep";inverseSmoothstep(0.5);
// => 0.5inverseSmoothstep(0.75)
// => 0.6736481776669303
```## API
## inverseSmoothstep
### inverseSmoothstep(x) ⇒
number
⏏The inverse of the smoothstep function
**Kind**: Exported function
| Param | Type |
| ----- | ------------------- |
| x |number
|## License
MIT. See [license file](https://github.com/dmnsgn/inverse-smoothstep/blob/main/LICENSE.md).