# @renderium/vertices

> Vertices for renderium

Latest version **0.0.3** (published 2018-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @renderium/vertices
pnpm add @renderium/vertices
yarn add @renderium/vertices
bun add @renderium/vertices
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-07-15 |
| First published | 2018-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vladimir Bykov |
| Maintainers | broadsw0rd |
| Keywords | vertices |

## Links

- npm: https://www.npmjs.com/package/@renderium/vertices
- Repository: https://github.com/renderium/vertices
- Issues: https://github.com/renderium/vertices/issues
- npm.io page: https://npm.io/package/@renderium/vertices

## Recent versions

- 0.0.3 (latest) — 2018-07-15
- 0.0.2 — 2018-06-30
- 0.0.1 — 2018-06-30

## README

<h1 align="center">Vertices</h1>
<h4 align="center">Vertices for renderium</h4>
<p align="center">
  <a href="https://www.npmjs.com/package/@renderium/vertices" target="_blank">
    <img src="https://img.shields.io/npm/v/renderium/vertices.svg" alt="NPM version" target="_blank"></img>
  </a>
  <a href="https://travis-ci.org/renderium/vertices" target="_blank">
    <img src="https://travis-ci.org/renderium/vertices.svg?branch=master" alt="Build Status" target="_blank"></img>
  </a>
  <a href='https://coveralls.io/github/renderium/vertices?branch=master'>
    <img src='https://coveralls.io/repos/github/renderium/vertices/badge.svg?branch=master' alt='Coverage Status' />
  </a>
  <a href="https://github.com/feross/standard" target="_blank">
    <img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat" alt="js-standard-style"/>
  </a>
</p>

## Install

```
npm install --save @renderium/vertices
```

or download [dev](https://unpkg.com/@renderium/vertices/dist/vertices.umd.js) or [prod](https://unpkg.com/@renderium/vertices/dist/vertices.min.js) version

## Usage

```js
// create vertices
var vertices = new Vertices(0xff)

// write data
var vertex = vertices[128]
vertex.position.x = 10
vertex.color.a = 255

// push buffer to webgl
gl.bufferSubData(gl.ARRAY_BUFFER, 0, vertices.buffer)
```

## Development

Command | Description
------- | -----------
`npm run check` | Check standard code style by [snazzy](https://www.npmjs.com/package/snazzy)
`npm run build` | Wrap source code in [UMD](https://github.com/umdjs/umd) by [rollup](http://rollupjs.org/)
`npm run test` | Run tests by [tape](https://github.com/substack/tape) and compute code coverage by [nyc](https://github.com/bcoe/nyc)
`npm run min` | Minify code by [UglifyJS2](https://github.com/mishoo/UglifyJS2)

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