Version 2 (modified by jonathan, 4 years ago) (diff) |
---|
RGB Color Type
Visit core types for information on the primitive core type percent used here. Another prerequisite to understanding this type is the RGB color model.
You rarely need to express color values in Olivine (or even in Minecraft) but the one case you do is for dyed leather armor. All other colored things are usually blocks and their colors are fixed and must be expressed differently. To express a color in Olivine the general syntax is < r% red; g% green; b% blue > where r% is percentage of red, g% the percentage of green, and b% the percentage of blue. All of these components are optional, if one component is not expressed then a value of zero is implied for that component.
Fixed Color Names
Alternatively, fixed color names can be used in-place of component values:
Name | Color |
---|---|
black | |
blue | |
green | |
cyan | |
red | |
byzantium | |
brown | |
silver | |
gray | |
sky | |
lime | |
aqua | |
pink | |
magenta | |
yellow | |
white |
Examples
Basic red
< 100% red >
Orange
< 100% red; 40% green >
Byzantium
< 65% red; 65% blue >
Magenta
< 100% red; 40% blue; 100% green >
Aqua
< aqua >