🚀Task in RS School on Stage #2
✅ Live Preview: https://simple-piskel.netlify.com/
Tasj a simplified clone of the https://www.piskelapp.com/, a web-based tool for Spriting and Pixel art.
- Canvas sizes: 32x32 / 64x64 / 128x128 user-defined units
- Tools
- Pen. Required size is 1 unit. Other unit sizes (2, 3, 4) are optional.
- Color select (Primary/Secondary)
- Paint bucket should fill closed areas (flood fill)
- Eraser
- Stroke (to draw straight lines)
- Ability to add frame
Functionality in development
- Paint all pixels of the same color
- Preview
- Small animation preview window in the top right corner
- Full screen mode
- Frames
- Ability to delete a frame
- Ability to reorder a frame via Drag and Drop
- Ability to duplicate a frame
- Export the final result
- to local file system in any format (.gif / .apng)
- User session
- Current session should be saved and be accessible when user opens up the page again.
- Landing page. This page should include the following information:
- Screenshots
- Animation examples
- Implemented functionality overview
- Link to the editor itself
- Information about the author
- Keyboard shortcuts
- All actions should be available via keyboard shortcuts
- tools
- export
- add / delete / create frame
- Keyboard shortcuts should be available on hover
- Modal window to change keyboard shortcuts
- All actions should be available via keyboard shortcuts
- Browser support: latest version of Google Chrome.
- Usage of JS/ES2015+
- Have to use browser's Canvas API to draw frames.
-
piskel app source files - https://github.com/piskelapp/piskel (for information!)
-
some canvas tricks
-
animation
- https://developer.mozilla.org/ru/docs/DOM/window.requestAnimationFrame
- https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Basic_animations
- https://learn.javascript.ru/js-animation
- https://stackoverflow.com/questions/19764018/controlling-fps-with-requestanimationframe ( thanks @fomenkogregory)
-
login
-
canvas libs
-
previous videos
- animation player bootstrap - https://www.youtube.com/watch?v=KpvMSDQGmpY
-
full screen - http://qnimate.com/full-screen-api-tutorial-with-demo/
-
refactorings
-
unit tests