# smoothstep

> bare-bones smoothstep interpolation function

Latest version **1.0.1** (published 2014-08-30) · BSD license · 0 weekly downloads

## Install

```sh
npm install smoothstep
pnpm add smoothstep
yarn add smoothstep
bun add smoothstep
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2014-08-30 |
| First published | 2013-12-14 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Author | Gaëtan Renaudeau |
| Maintainers | gre |
| Keywords | cubic, hermite, smooth, smoothstep, glsl, interpolation, interp, lerp, mix, threshold |

## Links

- npm: https://www.npmjs.com/package/smoothstep
- Repository: https://github.com/gre/smoothstep
- Issues: https://github.com/gre/smoothstep/issues
- npm.io page: https://npm.io/package/smoothstep

## Recent versions

- 1.0.1 (latest) — 2014-08-30
- 1.0.0 — 2013-12-14

## README

[![browser support](https://ci.testling.com/gre/smoothstep.png)](https://ci.testling.com/gre/smoothstep)

# smoothstep

[![frozen](http://badges.github.io/stability-badges/dist/frozen.svg)](http://github.com/badges/stability-badges)

Bare-bones [smoothstep function](http://en.wikipedia.org/wiki/Smoothstep) (cubic Hermite interpolation), returning a value in the range 0.0 to 1.0. 

Use:

```js
var smoothstep = require('smoothstep')

var res = smoothstep(a, b, t);
```

## Usage

[![NPM](https://nodei.co/npm/smoothstep.png)](https://nodei.co/npm/smoothstep/)

```smoothstep(min, max, t)```

Performs smoothstep from min to max using the given value, by clamping and then using cubic Hermite interpolation.

## License

BSD, see [LICENSE.md](http://github.com/gre/smoothstep/blob/master/LICENSE.md) for details.

---
_Source: https://npm.io/package/smoothstep · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
