Skip to content

vonKristoff/offreg

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

OFFREG

Make Like Print - A jQuery plugin that uses canvas to create a 'screen print' offset effect on an image, by altering the pixel data.

Plugin Site

BASIC USAGE:

$('.container').offreg(
	source,
	transparent,
	rotation,
	offset
);

config options:

Option data type values Required Nb.
source string 'img/image.jpg' Yes any img type
transparent boolean true / false Yes preserves transparency, but creates a 'heavier' png
rotation float 0.0 -> 1.0 Yes rotation offset strength
offset float 0.0 -> 1.0 No x/y axis offset strength

usage example

```javascript $('.container').offreg(img,true,0.7); ```

Nb. Renders poorly in Chrome. But all good in other modern browsers.

About

A jQuery plugin that uses canvas to create a 'screen print' offset effect on an image, by altering the pixel data.

Resources

Stars

Watchers

Forks

Packages

No packages published