inverse-smoothstep
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

inverse-smoothstep

npm version stability-stable npm minzipped size dependencies types Conventional Commits styled with prettier linted with eslint license

The inverse of the smoothstep function.

paypal coinbase twitter

Based on Inigo Quilez.

Installation

npm install inverse-smoothstep

Usage

import inverseSmoothstep from "inverse-smoothstep";

inverseSmoothstep(0.5);
// => 0.5

inverseSmoothstep(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.

Package Sidebar

Install

npm i inverse-smoothstep

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.3 kB

Total Files

6

Last publish

Collaborators

  • dmnsgn