GithubHelp home page GithubHelp logo

nmscd / nmscolorparser Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 12.11 MB

Color parser for No Man's Sky color palletes

Home Page: https://nmscd.com/nmscolorparser/

License: MIT License

CSS 0.06% HTML 99.74% JavaScript 0.20%

nmscolorparser's Introduction

NMS Color Parser

https://nmscd.github.io/nmscolorparser/

This mini app reads the exml files and shows the colors of each property visually. The number represents the index of that color in their parent property.

Example:

Supported files:

  • LEGACYBASECOLOURPALETTES
  • BASECOLOURPALETTES
  • WATERCOLOURS
  • SPACERARESKYCOLOURS
  • SPACESKYCOLOURS
  • DAYSKYCOLOURS
  • DAYSKYCOLOURS_FIRESTORM
  • DAYSKYCOLOURS_GRAVSTORM
  • DUSKSKYCOLOURS
  • NIGHTSKYCOLOURS

How to convert the color values of NMS properties:

<Property value="Colour.xml">
  <Property name="R" value="0.7839" />
  <Property name="G" value="0.41184" />
  <Property name="B" value="0.02691" />
  <Property name="A" value="1" />
</Property>

Multiply the value by 255 and round it.

R = Math.round(0.7839 * 255); // result: 200

nmscolorparser's People

Contributors

khaoz-topsy avatar lenni009 avatar rogerhnn avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

nmscd

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.