GithubHelp home page GithubHelp logo

eritbh / comment-face-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 75 KB

An Electron application to generate spritesheets and CSS for Reddit comment faces, partly an excuse to learn Electron and partly because the /r/anime mods are lazy.

HTML 8.89% JavaScript 73.83% CSS 17.29%
electron generator javascript reddit

comment-face-generator's Introduction

Pixel art of a shiny Umbreon doing a run

pronouns: she/her site: eritbh.me npm: eritbh donate on github sponsors donate on ko-fi

comment-face-generator's People

Contributors

eritbh avatar

Watchers

 avatar

comment-face-generator's Issues

Filesize calculation

This would be super useful but might also be hard since you'd have to compress everything first and by then it's not very useful.

Async

Especially for image operations, async really needs to be a thing.

Scrap spritesheet.defaultWidth/defaultHeight

When resizing all faces, eliminate this variable in the process. At output generation time, iterate through the faces and use the arithmetic mode of each respective dimension as the default.

The current behavior can result in some weird generations if you have faces that are different.

Generate spritesheets from bottom up; use positive background-position values

Currently, the spritesheet is generated from the top to the bottom, and the background-position value of each face is negative, growing smaller as the faces go down the list. We should invert this so the first spritesheet is at the bottom, that way the CSS values can all be positive, starting at the height of the first face.

Might actually be a good idea to have a project setting for this once that gets going.

Include comment face global code in generated spritesheet

Currently, the base code for spritesheets (display:inline-block and the other stuff for text on the face) is not included in the spritesheet. That should be included to make things easier.

Should also be a project setting (or multiple) to modify how this is generated - enable/disable text, etc

More image sizing options

  • Set individual image to spritesheet default dimensions
  • Reset image to initial dimensions (dimensions from when updated)
  • Fit image to width/height

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.