Skip to content

Flip options? #49

@prismlyuk

Description

@prismlyuk

Hi, this is really awesome, great work.

A part of the aesthetic I'm not too keen on when glitching images (manually or using this library) is that images generally always have the same characteristics from top to bottom. I.e. the images have a tenancy to 'slip' in one direction and the changes in the 'lines of glitch' within the glitched image as you look from the top of the image to the bottom generally have a 'step' up (look like steps).

To try and get around this, so the glitch effect is kind of more uniform, a nice feature would be flip the canvas vertically before an iteration, and then flip it back for the next iteration, and so on. And the final result would be the same way up as your started. I've hacked this in to the current version of the library I'm using but it's not very pretty.

Here's an example of with and without flipping during the glitch process:
glitch

For my purposes it has given me better results.

Essentially I used this before every iteration:
ctx.setTransform(1, 0, 0, -1, 0, canvas.height);

Interested to hear your thoughts!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions