Skip to content

Instantly share code, notes, and snippets.

@rajeshg
Created October 29, 2009 15:54
Show Gist options
  • Save rajeshg/221541 to your computer and use it in GitHub Desktop.
Save rajeshg/221541 to your computer and use it in GitHub Desktop.
<input type='button' value='Flip Vertical' onclick="demov();" />
<input type='button' value='Flip Horizontal' onclick="demoh();" /> <br/>
<img id='demoimage'
src="http://interactive.finelight.com/blog/wp-content/uploads/2009/10/funny-cartoon.jpg"
alt="funny-cartoon" title="funny-cartoon" width="184" height="200"
class="alignnone size-medium wp-image-595" />
<script src='http://pixastic.com/lib/git/pixastic/pixastic.core.js'></script>
<script src='http://pixastic.com/lib/git/pixastic/actions/flipv.js'></script>
<script src='http://pixastic.com/lib/git/pixastic/actions/fliph.js'></script>
<script type='text/javascript'>
function demov(){
Pixastic.process(document.getElementById('demoimage'), "flipv");
}
function demoh(){
Pixastic.process(document.getElementById('demoimage'), "fliph");
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment