Giter Club home page Giter Club logo

aseprite-css's Introduction

Aseprite logo
Aseprite CSS

Generated pixel art with CSS box shadow property based a svg image exported by Aseprite

Overview โ€ข Usage



๐Ÿ”ฅ Overview

CSS is awesome! Dot!

๐Ÿš€ Usage

1. Export Aseprite SVG image

Save as "SVG" image file in your aseprite.

2. Install aseprite-css globally

npm install aseprite-css -g

3. Generate CSS pixel art

aseprite-css [source] <size>

Example

Default:

aseprite-css my-pixelart.svg

With custom pixel size:

aseprite-css my-pixelart.svg 10

Ouput

html {
  width: 1px;
  height: 1px;
  box-shadow: 5px 1px 0 #000000, 6px 1px 0 #000000, 4px 2px 0 #000000, 5px 2px 0
      #ffffff, 6px 2px 0 #ffffff, 7px 2px 0 #000000, 3px 3px 0 #000000, 4px 3px
      0 #5b6ee1, 5px 3px 0 #ffffff, 6px 3px 0 #ffffff, 7px 3px 0 #ffffff, 8px
      3px 0 #000000, 3px 4px 0 #000000, 4px 4px 0 #5b6ee1, 5px 4px 0 #ffffff, 6px
      4px 0 #bd9f81, 7px 4px 0 #ffffff, 8px 4px 0 #ffffff, 9px 4px 0 #000000, 3px
      5px 0 #000000, 4px 5px 0 #5b6ee1, 5px 5px 0 #ffffff, 6px 5px 0 #bd9f81, 7px
      5px 0 #bd9f81, 8px 5px 0 #ffffff, 9px 5px 0 #ffffff, 10px 5px 0 #000000, 3px
      6px 0 #000000, 4px 6px 0 #5b6ee1, 5px 6px 0 #ffffff, 6px 6px 0 #bd9f81, 7px
      6px 0 #e5bd94, 8px 6px 0 #bd9f81, 9px 6px 0 #ffffff, 10px 6px 0 #ffffff, 11px
      6px 0 #000000, 3px 7px 0 #000000, 4px 7px 0 #5b6ee1, 5px 7px 0 #ffffff, 6px
      7px 0 #e5bd94, 7px 7px 0 #ffffff, 8px 7px 0 #ffffff, 9px 7px 0 #bd9f81, 10px
      7px 0 #ffffff, 11px 7px 0 #ffffff, 12px 7px 0 #000000, 3px 8px 0 #000000, 4px
      8px 0 #5b6ee1, 5px 8px 0 #ffffff, 6px 8px 0 #e5bd94, 7px 8px 0 #ffffff, 8px
      8px 0 #ffffff, 9px 8px 0 #ffffff, 10px 8px 0 #bd9f81, 11px 8px 0 #ffffff, 12px
      8px 0 #ffffff, 13px 8px 0 #000000, 3px 9px 0 #000000, 4px 9px 0 #5b6ee1;
}

License

MIT ยฉ klaufel

aseprite-css's People

Contributors

klaufel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

orb1t

aseprite-css's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.