Skip to content

Commit

Permalink
Released v1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamminf committed Dec 16, 2017
1 parent 06e6ca0 commit a765f8a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## Changelog

### v1.0.7
### v1.0.8
- `Improved` New logo
- `Fixed` Fixed issue exposing Warp object to window context

#### v1.0.7
- `Improved` Library now uses UMD for compatibility with most environments

#### v1.0.6
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[![Build Status][travis-img]][travis-url]
[![Coverage Status][coveralls-img]][coveralls-url]

<img alt="warp.js" src="https://raw.githubusercontent.com/benjamminf/warpjs/master/warp.png" width="246" height="75">
<img alt="warp.js" src="https://raw.githubusercontent.com/benjamminf/warpjs/master/warp.png" width="214" height="61">

Warp, distort, bend, twist and smudge your scalable vector graphics in the browser. `warp.js` allows you to feed in any
Distort, bend, twist and smudge your scalable vector graphics in the browser. `warp.js` allows you to feed in any
SVG file and apply any kind of complex transformation.

## Installation
Expand All @@ -25,7 +25,7 @@ const svg = document.getElementById('svg-element')
const warp = new Warp(svg)

warp.interpolate(4)
warp.transform(([x, y]) => [x, y + 4 * Math.sin(x / 16)])
warp.transform(([ x, y ]) => [ x, y + 4 * Math.sin(x / 16) ])
```
[Run on CodePen &rarr;](http://codepen.io/benjamminf/pen/NpZLeb)

Expand All @@ -35,12 +35,12 @@ This example creates a wave effect. Try playing with the values to see how it wo

```js
warp.interpolate(4)
warp.transform(([x, y]) => [x, y, y])
warp.transform(([ x, y ]) => [ x, y, y ])

let offset = 0
function animate()
{
warp.transform(([x, y, oy]) => [x, oy + 4 * Math.sin(x / 16 + offset), oy])
warp.transform(([ x, y, oy ]) => [ x, oy + 4 * Math.sin(x / 16 + offset), oy ])
offset += 0.1
requestAnimationFrame(animate)
}
Expand Down
4 changes: 2 additions & 2 deletions dist/warp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/warp.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "warpjs",
"version": "1.0.7",
"version": "1.0.8",
"description": "Warp, distort, bend, twist and smudge your SVG's directly in the browser",
"main": "dist/warp.js",
"files": [
Expand Down
Binary file modified warp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a765f8a

Please sign in to comment.