Git Product home page Git Product logo

aseprite-scripts's Introduction

Aseprite Scripts

A collection of Lua scripts I've made to extend Aseprite.

To use any of the scripts in this repo, download the script you want (or just clone the whole repo) directly into your Aseprite script directory. You can open the scripts folder by doing File > Scripts > Open Scripts Folder from within Aseprite.

Learn about Aseprite scripting here.

Scripts

image/color-overlay.lua

Overwrites all non-transparent pixels in the current layer with any given color/opacity. Can be applied to the current layer or to a new layer.

image/stroke.lua

Outlines all non-transparent pixels in the current layer with any color and width. Can be applied to the current layer or to a new layer.

timeline/add-frame-background.lua

Adds a new frame to the timeline, copying cels from every layer but the active one. Useful when working on animations with a background.

misc/midi.lua

Generates a piece of music based on the colors in the current cel image, and outputs the result into a midi file. RGB color to musical note relationships were derived from the principles outlined in this article. Note octave and duration are completely arbitrary, and follow this chart:

count duration octave
1 16 4
2 8 4
3 4 4
4 2 4
5 1 4
6 16 5
7 8 5
8 4 5
9 2 5
10 1 5
11 16 6
12 8 6
13 4 6
14 2 6
15 1 6
16+ 1 3

Count represents the consecutive occurrences of a given color, with the image data being read left to right and top to bottom. Duration is equal to note value in a 4/4 time signature.

This script uses a custom compacted version LuaMidi to generate the MIDI files.

aseprite-scripts's People

Contributors

christopherwk210 avatar sanbox-irl avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

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.