How can i know what color these numbers corrospond to?

● ARCHIVED · READ-ONLY
Started by GoldenGemGames 6 posts View original ↗
  1. This happens in a few cases, mostly for determining text or animation color. For me some of Yanfly's plugin parameters ask for a color but the choices are just numbers. (0-255) How can I know what color i'm choosing?
  2. Hi there,

    Color codes will be very dependent on the application. For example, your text color codes are taken from the window.png in your game's system folder as seen below:

    upload_2018-8-30_15-50-41.jpeg

    As for Yanfly's color codes, usually if something is listing 0-255 it's implying transparency. 0 being transparent, but I'm not that familiar with his plugins.

    Hope it helps,

    Sindaine
  3. Sindaine said:
    Hi there,

    Color codes will be very dependent on the application. For example, your text color codes are taken from the window.png in your game's system folder as seen below:

    View attachment 97372

    As for Yanfly's color codes, usually if something is listing 0-255 it's implying transparency. 0 being transparent, but I'm not that familiar with his plugins.

    Hope it helps,

    Sindaine
    Thanks! That was really helpful!
  4. While it's true that 0-255 can refer to opacity, that is not the same as when the numbers are referring to colours. Colour codes are usually given in 3 sets, in the order of red, green, blue. It is the combination of those three which give you the final colour.

    I think the quickest way to see how this works is to open up the animations tab in the editor, click on the top right corner where it has SE and Flash timing.
    Click on e.g. Target and you will see the colour produced by having all 3 on 255. It is white.
    Now slide the bars around and watch how the numbers and colour change. So having the combination of 170 for red 102 for green and170 for blue gives a lilac purple. Those numbers are usually written 170102170 i.e. in one continuous number. But now take the blue down to 51, and you have a brown. That would be written 170102051. You have to have 3 digits for each, so you don't have 51 but 051.

    So for the purposes of working out what to put in as a colour code, play around with the sliders until you have the colour you want and note what the numbers are.

    EDIT
    I'm tired and forgot to change to US spelling, so you've got UK spelling of colour throughout.
  5. Here's my explanation. If a color is represented with a number from 0-255, it is typically what's called an RGB value. If there is a fourth value, that number represents the opacity and the whole structure is called RGBA. RGBA stands for Red, Green, Blue and Alpha. Each one of these values is the color or opacity's intensity. 0 is no intensity and 255 is full intensity. You can create pretty much any color you want by mixing the 3 primary colors [of light] together with varying intensities.

    Your primary and secondary colors are ...
    Code:
    Black: 0, 0, 0
    White: 255, 255, 255
    Red: 255, 0, 0
    Green: 0, 255, 0
    Blue: 0, 0, 255
    Yellow: 255, 255, 0
    Cyan: 0, 255, 255
    Purple: 255, 0, 255

    If you want colors in between these or more neutral colors, you have to raise and lower the different values to achieve what you're looking for. The Alpha value can also make your life easier if it's available by lowering the opacity to give you softer shades of said color. So a 0, 0, 255, 128 would give you a lighter Blue.
  6. Use google to search for "color picker" and you'll get a nice graphical interface for selecting colors, giving you both hex and decimal rgb values.

    That said, hex colors are (as far as I know) only made available in yanfly's "Extended Message Pack 1" plugin via \hc[x]. For nearly everything else (like when using \c[x] in dialog) refer to the handy 0-31 chart posted above to find the value for x that you want to use.