Stay organized with collections
Save and categorize content based on your preferences.
blockly > utils > colour > names
utils.colour.names variable
A map that contains the 16 basic colour keywords as defined by W3C: https://www.w3.org/TR/2018/REC-css-color-3-20180619/#html4 The keys of this map are the lowercase "readable" names of the colours, while the values are the "hex" values.
Signature:
names: {
[key: string]: string;
}
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["`utils.colour.names` provides a dictionary mapping 16 basic color names to their corresponding hexadecimal values."],["This mapping adheres to the W3C's standard for basic color keywords as defined in their CSS Color Module Level 3."],["The dictionary keys are lowercase, readable color names (e.g., \"black\", \"white\"), while the values are their respective hex codes (e.g., \"#000000\", \"#FFFFFF\")."]]],[]]