Skip to content

dmnsgn/inverse-smoothstep

Repository files navigation

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.