Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    rct1-remap-colorspublic

    RCT1 Remap Colors

    Remap colors that where used in the game RollerCoaster Tycoon 1.

    Installation

    npm install --save rct1-remap-colors

    Usage

    var remapColors = require('rct1-remap-colors')
     
    console.log('rgb(' + remapColors[8].displayColor + ')') // rgb(81,132,10) 

    API

    remapColors[idx]

    Get the remap color with index idx. Valid indexes is 0 through 31 inclusively.

    remapColor.displayColor

    Get the color that is displayed in the user interface when selecting this color.

    remapColor.colors[idx]

    Get the color that should replace another color at index idx. Valid indexes is 0 through 11 inclusively.

    Color format

    All colors are exported as [ red, green, blue ] with the colors being integers between 0 and 255 inclusively.

    Keywords

    none

    install

    npm i rct1-remap-colors

    Downloadslast 7 days

    0

    version

    0.1.0

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar