Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: New modes #6

Open
mster opened this issue Jul 9, 2020 · 1 comment
Open

Feature: New modes #6

mster opened this issue Jul 9, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mster
Copy link
Member

mster commented Jul 9, 2020

Want to work with buffers to create some fun images?

Consider adding a mode to Datamosh!

Work

By adding a new mode, you will be creating a new file which exports a function that manipulates data extracted from a source image's bitmap. That may sound like a lot, but it'll essentially come down to basic iteration over a buffer. Starter code has been provided here.

Your mosh mode doesn't have to do anything specific -- if you think it's cool, we probably will too. Use your imagination and feel free to experiment!

Most of Datamosh's current modes overwrite existing Red/Green/Blue (RGB) pixel values with something random. If you get stuck check out some examples.

To test your mode, you have two options:

  1. (Preferred) Import it into Datamosh by adding an entery in mosh.MODES, here.
  2. Add it to the function property after you initialize Datamosh. Example code on how to do this can be found here.

On Contributing

There aren't many hoops to jump though.

Datamosh uses Prettier for linting and formatting. You will be approved for merging as long as your code passes npm test and only modifies what is needed for your contribution.

You can learn more about contributing in our Contributing document.

Contributing

@mster mster added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jul 9, 2020
@mster mster assigned mster and unassigned mster Jul 9, 2020
@mster
Copy link
Member Author

mster commented Jul 10, 2020

NOTE: This issue will remain open. Multiple contributors may add modes.

Don't worry if someone has already started working on their own mode.

@mster mster pinned this issue Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant