0 votes

I am making a game and want to control colour from the editor. I have a custom colour option exported, but I also want to be able to pick from the in-built colours in a drop-down menu. Does anyone have all of the colours in a format similar to
"aliceblue","antiquewhite",...
that I can use for my
export(String, "aliceblue", "antiquewhite", "Custom") var ColourPreset
code?

in Engine by (32 points)

3 Answers

0 votes
Best answer

@exuin compiled it, much thanks to them!

"aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflower", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "green", "greenyellow", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrod", "lightgray", "lightgreen", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navyblue", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "transparent", "turquoise", "violet", "webgray", "webgreen", "webmaroon", "webpurple", "wheat", "white", "whitesmoke", "yellow", "yellowgreen"

by (32 points)
0 votes

In the Script Editor at the top right-hand corner press search and type color.
All colors will be listed there

Or observe this link

by (6,876 points)

I am aware of that documentation. However, it’s not the right format. I was wondering if there was any other option other than just copying them all out by hand.

Rather than a drop-down menu there exists a color picker node you can use with your export value

You can easily copy the entire the list, paste it into a text editor, and then use ctrl-f and regexes to remove all the stuff you don't want.

Here I did it for you

"aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflower", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "green", "greenyellow", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrod", "lightgray", "lightgreen", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navyblue", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "transparent", "turquoise", "violet", "webgray", "webgreen", "webmaroon", "webpurple", "wheat", "white", "whitesmoke", "yellow", "yellowgreen"

Well done sir

These colors are taken from the web's original 216 color palette. These are not particularly "pretty" by today's standards, so I'd recommend you to use a custom color palette for the purposes of player customization. This one can work quite well: https://tailwindcolor.com/

0 votes

Here's an array of all the colors in godot:
var colors = [
Color.aliceblue,
Color.antiquewhite,
Color.aqua,
Color.aquamarine,
Color.azure,
Color.beige,
Color.bisque,
Color.black,
Color.blanchedalmond,
Color.blue,
Color.blueviolet,
Color.brown,
Color.burlywood,
Color.cadetblue,
Color.chartreuse,
Color.chocolate,
Color.coral,
Color.cornflower,
Color.cornsilk,
Color.crimson,
Color.cyan,
Color.darkblue,
Color.darkcyan,
Color.darkgoldenrod,
Color.darkgray,
Color.darkgreen,
Color.darkkhaki,
Color.darkmagenta,
Color.darkolivegreen,
Color.darkorange,
Color.darkorchid,
Color.darkred,
Color.darksalmon,
Color.darkseagreen,
Color.darkslateblue,
Color.darkslategray,
Color.darkturquoise,
Color.darkviolet,
Color.deeppink,
Color.deepskyblue,
Color.dimgray,
Color.dodgerblue,
Color.firebrick,
Color.floralwhite,
Color.forestgreen,
Color.fuchsia,
Color.gainsboro,
Color.ghostwhite,
Color.gold,
Color.goldenrod,
Color.gray,
Color.green,
Color.greenyellow,
Color.honeydew,
Color.hotpink,
Color.indianred,
Color.indigo,
Color.ivory,
Color.khaki,
Color.lavender,
Color.lavenderblush,
Color.lawngreen,
Color.lemonchiffon,
Color.lightblue,
Color.lightcoral,
Color.lightcyan,
Color.lightgoldenrod,
Color.lightgray,
Color.lightgreen,
Color.lightpink,
Color.lightsalmon,
Color.lightseagreen,
Color.lightskyblue,
Color.lightslategray,
Color.lightsteelblue,
Color.lightyellow,
Color.lime,
Color.limegreen,
Color.linen,
Color.magenta,
Color.maroon,
Color.mediumaquamarine,
Color.mediumblue,
Color.mediumorchid,
Color.mediumpurple,
Color.mediumseagreen,
Color.mediumslateblue,
Color.mediumspringgreen,
Color.mediumturquoise,
Color.mediumvioletred,
Color.midnightblue,
Color.mintcream,
Color.mistyrose,
Color.moccasin,
Color.navajowhite,
Color.navyblue,
Color.oldlace,
Color.olive,
Color.olivedrab,
Color.orange,
Color.orangered,
Color.orchid,
Color.palegoldenrod,
Color.palegreen,
Color.paleturquoise,
Color.palevioletred,
Color.papayawhip,
Color.peachpuff,
Color.peru,
Color.pink,
Color.plum,
Color.powderblue,
Color.purple,
Color.rebeccapurple,
Color.red,
Color.rosybrown,
Color.royalblue,
Color.saddlebrown,
Color.salmon,
Color.sandybrown,
Color.seagreen,
Color.seashell,
Color.sienna,
Color.silver,
Color.skyblue,
Color.slateblue,
Color.slategray,
Color.snow,
Color.springgreen,
Color.steelblue,
Color.tan,
Color.teal,
Color.thistle,
Color.tomato,
Color.turquoise,
Color.violet,
Color.webgray,
Color.webgreen,
Color.webmaroon,
Color.webpurple,
Color.wheat,
Color.white,
Color.whitesmoke,
Color.yellow,
Color.yellowgreen,
]

by (14 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.