Source: SharedXML\Color.lua
API[]
- CreateColor(r, g, b [, a]) : color - Creates a color object from normalized [0.0-1.0] rgb values.
- CreateColorFromHexString(hexColor) : color - Creates a color object from a hexadecimal
AARRGGBB
string. - CreateColorFromBytes(r, g, b, a) : color - Creates a color from [0-255] rgb values.
- AreColorsEqual(left, right) : boolean - Compares two color objects.
- WrapTextInColorCode(text, colorHexString) : colored - Returns a colored string
|cffrrggbbtext|r
from a hexadecimalAARRGGBB
string, ignores alpha.
Methods[]
- ColorMixin:IsEqualTo(otherColor) : boolean - Compares two color objects.
- ColorMixin:GetRGB() : r, g, b - Returns normalized [0.0-1.0] rgb values.
- ColorMixin:GetRGBA() : r, g, b, a
- ColorMixin:GetRGBAsBytes() : r, g, b - Returns [0-255] rgb values.
- ColorMixin:GetRGBAAsBytes() : r, g, b, a
- ColorMixin:SetRGB(r, g, b) - Sets a color object to normalized [0.0-1.0] rgb values.
- ColorMixin:SetRGBA(r, g, b, a)
- ColorMixin:GenerateHexColor() : hex - Returns a hexadecimal string
ffrrggbb
, ignores alpha. - ColorMixin:GenerateHexColorMarkup() : markup - Returns a color escape sequence
|cffrrggbb
, ignores alpha. - ColorMixin:WrapTextInColorCode(text) : colored - Returns a colored string
|cffrrggbbtext|r
, ignores alpha.
Example[]
local color = CreateColor(1, 1, 0)
print(color:GetRGBAsBytes()) -- 255, 255, 0
print(color:GenerateHexColor()) -- ffffff00
print("hello "..color:WrapTextInColorCode("world").." test")
hello world test
The minimal representation required as an argument is a table with the r, g, b, a
fields; including alpha.
tex:SetGradient("HORIZONTAL", {r=1, g=1, b=0, a=1}, {r=0, g=0, b=1, a=1}) -- also valid
Used by[]
Function arguments |
Function returns
|
Structures
|
Global Colors[]
-- AUTOMATICALLY GENERATED -- Full of tales and lies. CreateColor(1.000, 1.000, 0.000, 1.000), "|cffffff00" ACHIEVEMENT_COLOR CreateColor(1.000, 0.502, 0.251, 1.000), "|cffff8040" ACHIEVEMENT_COMPLETE_COLOR CreateColor(1.000, 1.000, 0.000, 1.000), "|cffffff00" ACHIEVEMENT_INCOMPLETE_COLOR CreateColor(0.800, 0.800, 0.800, 1.000), "|cffcccccc" ACTIONBAR_HOTKEY_FONT_COLOR CreateColor(0.000, 0.847, 1.000, 1.000), "|cff00d8ff" ADVENTURES_BUFF_BLUE CreateColor(0.306, 0.678, 0.843, 1.000), "|cff4eadd7" ADVENTURES_COMBAT_LOG_BLUE CreateColor(0.725, 0.725, 0.725, 1.000), "|cffb9b9b9" ADVENTURES_COMBAT_LOG_GREY CreateColor(0.776, 0.392, 0.294, 1.000), "|cffc6644b" ADVENTURES_COMBAT_LOG_ORANGE CreateColor(1.000, 0.824, 0.000, 1.000), "|cffffd200" ADVENTURES_COMBAT_LOG_YELLOW CreateColor(0.000, 1.000, 0.071, 1.000), "|cff00ff12" ADVENTURES_HEALING_GREEN CreateColor(1.000, 1.000, 1.000, 1.000), "|cffffffff" AREA_DESCRIPTION_FONT_COLOR CreateColor(1.000, 1.000, 1.000, 1.000), "|cffffffff" AREA_DESCRIPTION_FONT_COLOR CreateColor(1.000, 0.918, 0.761, 1.000), "|cffffeac2" AREA_NAME_FONT_COLOR CreateColor(1.000, 0.929, 0.761, 1.000), "|cffffedc2" ARENA_NAME_FONT_COLOR CreateColor(0.902, 0.800, 0.600, 1.000), "|cffe6cc99" ARTIFACT_BAR_COLOR CreateColor(0.902, 0.800, 0.502, 1.000), "|cffe6cc80" ARTIFACT_GOLD_COLOR CreateColor(0.400, 0.733, 1.000, 1.000), "|cff66bbff" AZERITE_ESSENCE_COLOR CreateColor(0.400, 0.733, 1.000, 1.000), "|cff66bbff" AZERITE_SUBTEXT_COLOR CreateColor(0.510, 0.773, 1.000, 1.000), "|cff82c5ff" BATTLENET_FONT_COLOR CreateColor(0.306, 0.588, 0.969, 1.000), "|cff4e96f7" BATTLEPET_ABILITY_LINK_COLOR CreateColor(0.000, 0.800, 1.000, 1.000), "|cff00ccff" BIND_TRADE_TOOLTIP_COLOR CreateColor(0.000, 0.000, 0.000, 1.000), "|cff000000" BLACK_FONT_COLOR CreateColor(0.000, 0.749, 0.953, 1.000), "|cff00bff3" BLUE_FONT_COLOR CreateColor(0.400, 0.733, 1.000, 1.000), "|cff66bbff" BRIGHTBLUE_FONT_COLOR CreateColor(0.180, 0.122, 0.059, 1.000), "|cff2e1f0f" BRONZE_MATERIAL_TEXT_COLOR CreateColor(0.929, 0.820, 0.000, 1.000), "|cffedd100" BRONZE_MATERIAL_TITLETEXT_COLOR CreateColor(1.000, 0.871, 0.722, 1.000), "|cffffdeb8" CAMPAIGN_COMPLETE_COLOR CreateColor(1.000, 0.824, 0.000, 1.000), "|cffffd200" CENTAUR_MAJOR_FACTION_COLOR CreateColor(0.871, 0.800, 0.612, 1.000), "|cffdecc9c" CHALLENGE_MODE_TOAST_TITLE_COLOR CreateColor(0.659, 0.659, 0.659, 1.000), "|cffa8a8a8" COMMON_GRAY_COLOR CreateColor(0.533, 0.667, 1.000, 1.000), "|cff88aaff" CONTEXT_FEEDBACK_COLOR CreateColor(0.584, 0.427, 0.820, 1.000), "|cff956dd1" CORRUPTION_COLOR CreateColor(0.400, 0.400, 0.400, 1.000), "|cff666666" DARKGRAY_COLOR CreateColor(1.000, 0.820, 0.000, 1.000), "|cffffd100" DARKYELLOW_FONT_COLOR CreateColor(1.000, 0.125, 0.125, 1.000), "|cffff2020" DECREASE_STAT_COLOR CreateColor(1.000, 0.753, 0.753, 1.000), "|cffffc0c0" DEFAULT_CHAT_CHANNEL_COLOR CreateColor(0.180, 0.122, 0.059, 1.000), "|cff2e1f0f" DEFAULT_MATERIAL_TEXT_COLOR CreateColor(0.000, 0.000, 0.000, 1.000), "|cff000000" DEFAULT_MATERIAL_TITLETEXT_COLOR CreateColor(1.000, 0.502, 0.251, 1.000), "|cffff8040" DIFFICULT_DIFFICULTY_COLOR CreateColor(0.251, 0.753, 0.251, 1.000), "|cff40c040" DIM_GREEN_FONT_COLOR CreateColor(0.800, 0.098, 0.098, 1.000), "|cffcc1919" DIM_RED_FONT_COLOR CreateColor(0.502, 0.502, 0.502, 1.000), "|cff808080" DISABLED_FONT_COLOR CreateColor(0.627, 0.627, 0.627, 1.000), "|cffa0a0a0" DISABLED_REAGENT_COLOR CreateColor(0.588, 0.588, 0.588, 0.000), "|c00969696" DRAGONFLIGHT_BLACK_COLOR CreateColor(0.231, 0.616, 0.890, 0.000), "|c003b9de3" DRAGONFLIGHT_BLUE_COLOR CreateColor(0.702, 0.573, 0.059, 0.000), "|c00b3920f" DRAGONFLIGHT_BRONZE_COLOR CreateColor(0.176, 0.682, 0.353, 0.000), "|c002dae5a" DRAGONFLIGHT_GREEN_COLOR CreateColor(1.000, 0.380, 0.380, 0.000), "|c00ff6161" DRAGONFLIGHT_RED_COLOR CreateColor(0.749, 0.149, 0.149, 1.000), "|cffbf2626" DULL_RED_FONT_COLOR CreateColor(0.251, 0.753, 0.251, 1.000), "|cff40c040" EASY_DIFFICULTY_COLOR CreateColor(0.784, 0.271, 0.980, 0.498), "|c7fc845fa" EDIT_MODE_GRID_CENTER_LINE_COLOR CreateColor(1.000, 1.000, 1.000, 0.247), "|c3fffffff" EDIT_MODE_GRID_LINE_COLOR CreateColor(0.400, 0.733, 1.000, 1.000), "|cff66bbff" EDIT_MODE_LAYOUT_LINK_COLOR CreateColor(0.161, 0.349, 0.827, 1.000), "|cff2959d3" EJ_SPELL_COLOR CreateColor(1.000, 0.816, 0.000, 1.000), "|cffffd000" ENCHANT_COLOR CreateColor(1.000, 0.129, 0.078, 0.247), "|c3fff2114" ENCOUNTER_JOURNAL_SCROLL_BAR_BACKGROUND_COLOR CreateColor(0.000, 0.800, 1.000, 1.000), "|cff00ccff" ENHANCED_CONDUIT_COLOR CreateColor(0.784, 0.271, 0.980, 1.000), "|cffc845fa" EPIC_PURPLE_COLOR CreateColor(1.000, 0.125, 0.125, 1.000), "|cffff2020" ERROR_COLOR CreateColor(0.769, 0.118, 0.231, 1.000), "|cffc41e3b" EXPEDITION_MAJOR_FACTION_COLOR CreateColor(0.000, 0.600, 0.102, 1.000), "|cff00991a" FACTION_GREEN_COLOR CreateColor(0.749, 0.271, 0.000, 1.000), "|cffbf4500" FACTION_ORANGE_COLOR CreateColor(0.800, 0.302, 0.220, 1.000), "|cffcc4d38" FACTION_RED_COLOR CreateColor(0.902, 0.702, 0.000, 1.000), "|cffe6b300" FACTION_YELLOW_COLOR CreateColor(1.000, 1.000, 0.000, 1.000), "|cffffff00" FAIR_DIFFICULTY_COLOR CreateColor(0.400, 0.600, 1.000, 1.000), "|cff6699ff" FRAMESTACK_FRAME_COLOR CreateColor(0.400, 0.400, 0.400, 1.000), "|cff666666" FRAMESTACK_HIDDEN_COLOR CreateColor(0.533, 0.867, 0.867, 1.000), "|cff88dddd" FRAMESTACK_REGION_COLOR CreateColor(0.000, 1.000, 0.000, 1.000), "|cff00ff00" FRIENDLY_STATUS_COLOR CreateColor(0.000, 0.773, 0.941, 0.047), "|c0c00c5f0" FRIENDS_BNET_BACKGROUND_COLOR CreateColor(0.510, 0.773, 1.000, 1.000), "|cff82c5ff" FRIENDS_BNET_NAME_COLOR CreateColor(0.263, 0.506, 0.659, 1.000), "|cff4381a8" FRIENDS_BROADCAST_TIME_COLOR CreateColor(0.486, 0.518, 0.541, 1.000), "|cff7c848a" FRIENDS_GRAY_COLOR CreateColor(0.569, 0.569, 0.569, 0.047), "|c0c919191" FRIENDS_OFFLINE_BACKGROUND_COLOR CreateColor(0.482, 0.518, 0.537, 1.000), "|cff7b8489" FRIENDS_OTHER_NAME_COLOR CreateColor(1.000, 0.824, 0.000, 0.047), "|c0cffd200" FRIENDS_WOW_BACKGROUND_COLOR CreateColor(0.996, 0.882, 0.361, 1.000), "|cfffee15c" FRIENDS_WOW_NAME_COLOR CreateColor(0.208, 0.000, 0.000, 1.000), "|cff350000" GLUE_DIALOG_FONT_COLOR CreateColor(0.400, 0.733, 1.000, 1.000), "|cff66bbff" GLYPH_LINK_COLOR CreateColor(0.949, 0.902, 0.600, 1.000), "|cfff2e699" GOLD_FONT_COLOR CreateColor(0.502, 0.502, 0.502, 1.000), "|cff808080" GRAY_FONT_COLOR CreateColor(0.098, 1.000, 0.098, 1.000), "|cff19ff19" GREEN_FONT_COLOR CreateColor(0.000, 0.800, 1.000, 1.000), "|cff00ccff" HEIRLOOM_BLUE_COLOR CreateColor(1.000, 1.000, 1.000, 1.000), "|cffffffff" HIGHLIGHT_FONT_COLOR CreateColor(0.243, 0.569, 1.000, 1.000), "|cff3e91ff" HIGHLIGHT_LIGHT_BLUE CreateColor(1.000, 0.000, 0.000, 1.000), "|cffff0000" HOSTILE_STATUS_COLOR CreateColor(1.000, 0.125, 0.125, 1.000), "|cffff2020" IMPOSSIBLE_DIFFICULTY_COLOR CreateColor(0.502, 0.502, 0.502, 1.000), "|cff808080" INACTIVE_COLOR CreateColor(0.000, 1.000, 0.000, 1.000), "|cff00ff00" INCREASE_STAT_COLOR CreateColor(1.000, 0.502, 0.000, 1.000), "|cffff8000" INSTANCE_LOCK_LINK_COLOR CreateColor(0.596, 0.000, 0.000, 1.000), "|cff980000" INVALID_EQUIPMENT_COLOR CreateColor(1.000, 0.973, 0.035, 1.000), "|cfffff809" INVASION_DESCRIPTION_FONT_COLOR CreateColor(1.000, 0.973, 0.035, 1.000), "|cfffff809" INVASION_DESCRIPTION_FONT_COLOR CreateColor(0.780, 1.000, 0.000, 1.000), "|cffc7ff00" INVASION_FONT_COLOR CreateColor(0.780, 1.000, 0.000, 1.000), "|cffc7ff00" INVASION_FONT_COLOR CreateColor(0.902, 0.800, 0.502, 1.000), "|cffe6cc80" ITEM_ARTIFACT_COLOR CreateColor(0.639, 0.208, 0.933, 1.000), "|cffa335ee" ITEM_EPIC_COLOR CreateColor(0.118, 1.000, 0.000, 1.000), "|cff1eff00" ITEM_GOOD_COLOR CreateColor(1.000, 0.502, 0.000, 1.000), "|cffff8000" ITEM_LEGENDARY_COLOR CreateColor(0.616, 0.616, 0.616, 1.000), "|cff9d9d9d" ITEM_POOR_COLOR CreateColor(0.000, 0.800, 1.000, 1.000), "|cff00ccff" ITEM_SCALING_STAT_COLOR CreateColor(1.000, 1.000, 1.000, 1.000), "|cffffffff" ITEM_STANDARD_COLOR CreateColor(0.000, 0.439, 0.867, 1.000), "|cff0070dd" ITEM_SUPERIOR_COLOR CreateColor(0.000, 0.800, 1.000, 1.000), "|cff00ccff" ITEM_WOW_TOKEN_COLOR CreateColor(0.400, 0.733, 1.000, 1.000), "|cff66bbff" JOURNAL_LINK_COLOR CreateColor(0.165, 0.635, 1.000, 1.000), "|cff2aa2ff" KYRIAN_BLUE_COLOR CreateColor(1.000, 0.502, 0.000, 1.000), "|cffff8000" LEGENDARY_ORANGE_COLOR CreateColor(0.529, 0.671, 1.000, 1.000), "|cff87abff" LIGHTBLUE_FONT_COLOR CreateColor(0.769, 0.867, 0.988, 1.000), "|cffc4ddfc" LIGHTERBLUE_FONT_COLOR CreateColor(0.600, 0.600, 0.600, 1.000), "|cff999999" LIGHTGRAY_FONT_COLOR CreateColor(1.000, 1.000, 0.600, 1.000), "|cffffff99" LIGHTYELLOW_FONT_COLOR CreateColor(0.400, 0.733, 1.000, 1.000), "|cff66bbff" LINK_FONT_COLOR CreateColor(0.792, 0.776, 0.741, 1.000), "|cffcac6bd" LORE_TEXT_BODY_COLOR CreateColor(0.000, 0.000, 0.000, 1.000), "|cff000000" MARBLE_MATERIAL_TEXT_COLOR CreateColor(0.929, 0.820, 0.000, 1.000), "|cffedd100" MARBLE_MATERIAL_TITLETEXT_COLOR CreateColor(0.090, 0.784, 0.392, 1.000), "|cff17c864" NECROLORD_GREEN_COLOR CreateColor(1.000, 1.000, 0.000, 1.000), "|cffffff00" NEUTRAL_STATUS_COLOR CreateColor(0.322, 0.502, 1.000, 1.000), "|cff5280ff" NEW_FEATURE_SHADOW_COLOR CreateColor(0.502, 0.710, 0.992, 1.000), "|cff80b5fd" NIGHT_FAE_BLUE_COLOR CreateColor(1.000, 0.820, 0.000, 1.000), "|cffffd100" NORMAL_FONT_COLOR CreateColor(1.000, 1.000, 1.000, 1.000), "|cffffffff" NOT_ON_THREAT_COLOR CreateColor(0.690, 0.690, 0.690, 1.000), "|cffb0b0b0" NO_THREAT_COLOR CreateColor(1.000, 0.502, 0.251, 1.000), "|cffff8040" ORANGE_FONT_COLOR CreateColor(1.000, 0.600, 0.000, 1.000), "|cffff9900" ORANGE_THREAT_COLOR CreateColor(0.122, 0.118, 0.129, 0.800), "|ccc1f1e21" PANEL_BACKGROUND_COLOR CreateColor(0.827, 0.659, 0.463, 1.000), "|cffd3a876" PAPER_FRAME_COLLAPSED_COLOR CreateColor(0.251, 0.149, 0.020, 1.000), "|cff402605" PAPER_FRAME_DARK_COLOR CreateColor(0.929, 0.788, 0.620, 1.000), "|cffedc99e" PAPER_FRAME_EXPANDED_COLOR CreateColor(0.208, 0.000, 0.000, 1.000), "|cff350000" PAPER_FRAME_TEXT_COLOR CreateColor(0.208, 0.000, 0.000, 1.000), "|cff350000" PAPER_FRAME_TITLE_COLOR CreateColor(0.141, 0.000, 0.000, 1.000), "|cff240000" PARCHMENTLARGE_MATERIAL_TEXT_COLOR CreateColor(0.208, 0.000, 0.000, 1.000), "|cff350000" PARCHMENTLARGE_MATERIAL_TITLETEXT_COLOR CreateColor(0.180, 0.122, 0.059, 1.000), "|cff2e1f0f" PARCHMENT_MATERIAL_TEXT_COLOR CreateColor(0.000, 0.000, 0.000, 1.000), "|cff000000" PARCHMENT_MATERIAL_TITLETEXT_COLOR CreateColor(0.769, 0.639, 0.000, 1.000), "|cffc4a300" PASSIVE_SPELL_FONT_COLOR CreateColor(0.290, 0.329, 0.910, 1.000), "|cff4a54e8" PLAYER_FACTION_COLOR_ALLIANCE CreateColor(0.898, 0.051, 0.071, 1.000), "|cffe50d12" PLAYER_FACTION_COLOR_HORDE CreateColor(0.886, 0.863, 0.839, 1.000), "|cffe2dcd6" PROFESSION_RECIPE_COLOR CreateColor(0.659, 0.090, 0.741, 1.000), "|cffa817bd" PROFESSION_SPEC_COLOR_ALCHEMY CreateColor(0.729, 0.584, 0.341, 1.000), "|cffba9557" PROFESSION_SPEC_COLOR_ARCHAEOLOGY CreateColor(0.863, 0.294, 0.055, 1.000), "|cffdc4b0e" PROFESSION_SPEC_COLOR_BLACKSMITHING CreateColor(0.863, 0.580, 0.384, 1.000), "|cffdc9462" PROFESSION_SPEC_COLOR_COOKING CreateColor(0.671, 0.439, 0.890, 1.000), "|cffab70e3" PROFESSION_SPEC_COLOR_ENCHANTING CreateColor(0.886, 0.659, 0.212, 1.000), "|cffe2a836" PROFESSION_SPEC_COLOR_ENGINEERING CreateColor(1.000, 1.000, 1.000, 1.000), "|cffffffff" PROFESSION_SPEC_COLOR_FIRST_AID CreateColor(0.451, 0.655, 0.737, 1.000), "|cff73a7bc" PROFESSION_SPEC_COLOR_FISHING CreateColor(0.129, 0.604, 0.278, 1.000), "|cff219a47" PROFESSION_SPEC_COLOR_HERBALISM CreateColor(0.306, 0.992, 0.835, 1.000), "|cff4efdd5" PROFESSION_SPEC_COLOR_INSCRIPTION CreateColor(0.757, 0.055, 0.231, 1.000), "|cffc10e3b" PROFESSION_SPEC_COLOR_JEWELCRAFTING CreateColor(0.400, 0.227, 0.145, 1.000), "|cff663a25" PROFESSION_SPEC_COLOR_LEATHERWORKING CreateColor(0.475, 0.502, 0.502, 1.000), "|cff798080" PROFESSION_SPEC_COLOR_MINING CreateColor(0.588, 0.282, 0.133, 1.000), "|cff964822" PROFESSION_SPEC_COLOR_SKINNING CreateColor(0.145, 0.251, 0.796, 1.000), "|cff2540cb" PROFESSION_SPEC_COLOR_TAILORING CreateColor(1.000, 1.000, 1.000, 1.000), "|cffffffff" PROGENITOR_MATERIAL_TEXT_COLOR CreateColor(1.000, 1.000, 1.000, 1.000), "|cffffffff" PROGENITOR_MATERIAL_TITLETEXT_COLOR CreateColor(0.000, 1.000, 0.000, 1.000), "|cff00ff00" PURE_GREEN_COLOR CreateColor(0.800, 0.000, 0.000, 1.000), "|cffcc0000" PURE_RED_COLOR CreateColor(1.000, 0.000, 0.000, 1.000), "|cffff0000" PURE_RED_COLOR CreateColor(0.200, 0.200, 0.200, 1.000), "|cff333333" QUEST_INELIGIBLE_GRAY CreateColor(0.498, 0.498, 0.498, 1.000), "|cff7f7f7f" QUEST_OBJECTIVE_DISABLED_FONT_COLOR CreateColor(0.600, 0.600, 0.600, 1.000), "|cff999999" QUEST_OBJECTIVE_DISABLED_HIGHLIGHT_FONT_COLOR CreateColor(0.800, 0.800, 0.800, 1.000), "|cffcccccc" QUEST_OBJECTIVE_FONT_COLOR CreateColor(1.000, 1.000, 1.000, 1.000), "|cffffffff" QUEST_OBJECTIVE_HIGHLIGHT_FONT_COLOR CreateColor(0.000, 0.569, 0.949, 1.000), "|cff0091f2" RARE_BLUE_COLOR CreateColor(0.000, 0.012, 0.290, 1.000), "|cff00034a" RARE_MISSION_COLOR CreateColor(1.000, 0.125, 0.125, 1.000), "|cffff2020" RED_FONT_COLOR CreateColor(1.000, 0.000, 0.000, 1.000), "|cffff0000" RED_THREAT_COLOR CreateColor(0.000, 0.800, 1.000, 1.000), "|cff00ccff" REFUND_TOOLTIP_COLOR CreateColor(0.000, 0.800, 1.000, 1.000), "|cff00ccff" REFUND_TOOLTIP_COLOR CreateColor(0.718, 0.561, 0.416, 1.000), "|cffb78f6a" RUNEFORGE_LEGEDARY_SPEC_COLOR CreateColor(1.000, 0.914, 0.682, 1.000), "|cffffe9ae" SCENARIO_STAGE_COLOR CreateColor(1.000, 0.831, 0.380, 1.000), "|cffffd461" SCENARIO_SUBTITLE_COLOR CreateColor(0.565, 0.376, 0.157, 1.000), "|cff906028" SEPIA_COLOR CreateColor(1.000, 1.000, 0.592, 1.000), "|cffffff97" SET_ITEM_COLOR CreateColor(1.000, 1.000, 1.000, 1.000), "|cffffffff" SILVER_MATERIAL_TEXT_COLOR CreateColor(0.929, 0.820, 0.000, 1.000), "|cffedd100" SILVER_MATERIAL_TITLETEXT_COLOR CreateColor(0.000, 0.800, 1.000, 1.000), "|cff00ccff" SOULBIND_CONDUIT_ENHANCED_COLOR CreateColor(0.443, 0.835, 1.000, 1.000), "|cff71d5ff" SPELL_LINK_COLOR CreateColor(0.349, 0.200, 0.000, 1.000), "|cff593300" SPELL_SUBTEXT_COLOR CreateColor(1.000, 1.000, 1.000, 1.000), "|cffffffff" STONE_MATERIAL_TEXT_COLOR CreateColor(0.929, 0.820, 0.000, 1.000), "|cffedd100" STONE_MATERIAL_TITLETEXT_COLOR CreateColor(0.851, 0.835, 0.808, 1.000), "|cffd9d5ce" SUBSCRIPTION_INTERSTITIAL_COLOR CreateColor(0.443, 0.835, 1.000, 1.000), "|cff71d5ff" TALENT_LINK_COLOR CreateColor(0.090, 0.090, 0.188, 1.000), "|cff171730" TOOLTIP_DEFAULT_BACKGROUND_COLOR CreateColor(1.000, 1.000, 1.000, 1.000), "|cffffffff" TOOLTIP_DEFAULT_COLOR CreateColor(0.400, 0.733, 1.000, 1.000), "|cff66bbff" TOY_LINK_COLOR CreateColor(0.353, 1.000, 0.129, 1.000), "|cff5aff21" TRADESKILL_EXPERIENCE_COLOR CreateColor(1.000, 0.502, 1.000, 1.000), "|cffff80ff" TRANSMOGRIFY_COLOR CreateColor(1.000, 0.502, 1.000, 1.000), "|cffff80ff" TRANSMOGRIFY_FONT_COLOR CreateColor(0.502, 0.502, 0.502, 1.000), "|cff808080" TRIVIAL_DIFFICULTY_COLOR CreateColor(0.051, 0.506, 0.953, 1.000), "|cff0d81f3" TUSKARR_MAJOR_FACTION_COLOR CreateColor(0.800, 0.800, 0.800, 1.000), "|cffcccccc" TUTORIAL_FONT_COLOR CreateColor(0.082, 0.702, 0.000, 1.000), "|cff15b300" UNCOMMON_GREEN_COLOR CreateColor(0.400, 0.733, 1.000, 1.000), "|cff66bbff" USED_IN_TRADESKILL_COLOR CreateColor(0.651, 0.529, 0.933, 1.000), "|cffa687ee" VALDRAKKEN_MAJOR_FACTION_COLOR CreateColor(0.894, 0.051, 0.055, 1.000), "|cffe40d0e" VENTHYR_RED_COLOR CreateColor(0.149, 0.149, 0.149, 1.000), "|cff262626" VERY_DARK_GRAY_COLOR CreateColor(0.898, 0.898, 0.898, 1.000), "|cffe5e5e5" VERY_LIGHT_GRAY_COLOR CreateColor(0.278, 0.020, 0.020, 1.000), "|cff470505" WARBOARD_OPTION_TEXT_COLOR CreateColor(1.000, 0.282, 0.000, 1.000), "|cffff4800" WARNING_FONT_COLOR CreateColor(1.000, 1.000, 1.000, 1.000), "|cffffffff" WHITE_FONT_COLOR CreateColor(1.000, 1.000, 0.000, 1.000), "|cffffff00" YELLOW_FONT_COLOR CreateColor(1.000, 1.000, 0.467, 1.000), "|cffffff77" YELLOW_THREAT_COLOR
Patch changes[]
Patch 9.0.1 (2020-10-13): Moved from Util.lua
to Color.lua
.
Patch 8.1.0 (2018-12-11): Added CreateColorFromHexString and CreateColorFromBytes.[1]
Patch 8.0.1 (2018-07-17): Added GenerateHexColorMarkup.[2]
Patch 7.0.3 (2016-07-19): Added.[3]
External links[]
Search FrameXML for CreateColor