Skip to content

chirox/pixel-art-react

 
 

Repository files navigation

Pixel Art to CSS

Did you know that you can draw and animate pixel art using CSS?

pixel-art-react is a handy and intuitive tool, that can help you to design your awesome drawings and animations!

Try to draw some pixels on the screen, pixel-art-react will generate the CSS code using box-shadow property.

Create as much drawings as you want in your project adding new frames and then check them in motion! it will use CSS keyframes to get the animation done and the CSS code will be ready to use in your HTML blocks.

Please check the following example:

pixel-art-react

The app layout is responsive and adjust itself to the screen width. You can see different layout examples (desktop and mobile) in the screenshot.

The project is built with React, Redux and ImmutableJS. Trying to avoid side-effects in a functional way of programming.

You will be able to load, save, import, export projects, undo redo your actions, change grid properties, share your drawings/animations and download them, everything in a very easy and fast way.

Check the results of this simple project:

See it live at pixelartcss

Example

You can find an example project data ready to import here.

In addition a project will be loaded by default, check this out clicking on the LOAD button. Of course you can delete this project anytime you want.

Technical overview

This application has been built with the following technologies:

  • React: Library to build the UI
  • Redux: Implements a Flux like architecture
  • ImmutableJS Helps to keep the data immutable
  • PostCSS Handle the app CSS
  • NodeJS + Express (Server side to build an universal application, create and serve the generated drawings)

Installation

npm install

Development

If you just want to develop the interface with no need of back-end side, take advance of webpack-dev-server and react-hot-loader.

npm run development

Deploy

Create the final build and run the generated react html on a express server making in an isomorphic way.

npm run deploy

npm run server

A config.json is needed for deployment with the Twitter and express keys.

Testing

npm run test

Contributing

Help me to improve it, share and enjoy :)

Please create a Github issue if there is something wrong or to be improved. Pull request are also welcome and they can be created to the develop branch.

License

MIT Copyright © 2016 Javier Valencia Romero (@jvalen)

About

Pixel art animation and drawing web app powered by ReactJS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 76.2%
  • CSS 21.8%
  • HTML 2.0%