GithubHelp home page GithubHelp logo

rwebster85 / sgb-colors Goto Github PK

View Code? Open in Web Editor NEW

This project forked from slashinfty/sgb-colors

0.0 0.0 0.0 111 KB

Create and breakdown Super Game Boy color palette codes

Home Page: https://slashinfty.github.io/sgb-colors

License: GNU General Public License v3.0

JavaScript 96.30% CSS 0.09% HTML 3.62%

sgb-colors's Introduction

sgb-colors

An online tool to generate Super Game Boy color palette codes using hex colors (and break codes into their hex color components).

About

This GameFAQs guide explains how SGB codes are broken down and all RGB color values. Using this, a list of codes and their colors was generated and stored. Converting a SGB code into the corresponding color values was trivial with a lookup function. However, converting individual colors into a SGB code required a bit more work, as the SGB can not display every RGB color combination. Thus the nearest color library was implemented to take an inputted color and find the closest match that the SGB could use (which varies, to some degree, per layer). Once an acceptable color for the SGB is selected, a lookup function is again used to find the corresponding code.

The image preview, taken from Super Mario Land 2: 6 Golden Coins, is updated with very similar colors to allow users to see their creations. The image itself is four .png files, broken up by layer, and filled in with black (see here). The colors are applied using a creative application of CSS filters; the foundation is found in it's own JavaScript file, and explained from the source.

sgb-colors's People

Contributors

slashinfty 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.