# glsl-pi

> π available at your convenience for use within glslify

Latest version **1.0.0** (published 2015-06-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install glsl-pi
pnpm add glsl-pi
yarn add glsl-pi
bun add glsl-pi
```

## 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.0 |
| Published | 2015-06-24 |
| First published | 2015-06-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Hugh Kennedy |
| Maintainers | hughsk |
| Keywords | ecosystem:stackgl, pi, tau, π |

## Links

- npm: https://www.npmjs.com/package/glsl-pi
- Repository: https://github.com/stackgl/glsl-pi
- Issues: https://github.com/stackgl/glsl-pi/issues
- npm.io page: https://npm.io/package/glsl-pi

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-06-24

## README

# glsl-pi

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

π available at your convenience for use within glslify.

## Usage

[![NPM](https://nodei.co/npm/glsl-pi.png)](https://nodei.co/npm/glsl-pi/)

### `PI = require('glsl-pi')`

This package exports the value of Pi
[as supplied by google](https://www.google.com/#q=pi): `3.14159265359`. You can use it like so:

``` glsl
#pragma glslify: PI = require('glsl-pi')

uniform float time;

void main() {
  gl_FragColor = vec4(vec3(PI * 2.0 * time), 1);
}
```

This is a *really* simple package but it saves me having to
lookup/copy/paste the value every time. Also a useful
alternative to using `#define PI` that's less leaky :)

## Contributing

See [stackgl/contributing](https://github.com/stackgl/contributing) for details.

## License

MIT. See [LICENSE.md](http://github.com/stackgl/glsl-pi/blob/master/LICENSE.md) for details.

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