Isoraqathedh

Array and Object literal notation

Dec 9th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var avocab = [
  2.     // This is the array literal notation
  3.     // of the vocabulary of the humanoid generator at
  4.     // http://springhole.net/writing_roleplaying_randomators/humanoid.htm.
  5.     // As you can see, you are allowed to put comments
  6.     // even in the middle of defining an array (or an object).
  7.     // You are free to add and remove spaces and tabs and newlines as you please
  8.     // in this notation as you can in the rest of JavaScript,
  9.     // which you can use to your advantage to give a visual indication
  10.     // of where things are structured.
  11.  
  12.     // This is a faithful rerendering of the data structure used in the page,
  13.     // although a more natural way of doing this is to use an associative array,
  14.     // which is in JavaScript implemented as an object, using {}.
  15.     ["FIRST",
  16.      ["The average member of this race <build> and <height>. "
  17.       // Long strings can be broken up using +.
  18.       // Here the plus is added at the beginning of the line
  19.       // to help indicate that this is a continuation of the previous line.
  20.       + "They <epidermis>. "
  21.       + "They have <feature>. "
  22.       + " <wardrobe>. "
  23.       + " <theylive> <environment>. "
  24.       + " <personality> <trivia>."]],
  25.     ["build",
  26.      // Entries are separated using a comma.
  27.      // Arrays inside arrays are very intuitively written:
  28.      // [ousideTheInnerArray, [insideTheInnerArray1, inside2]].
  29.      ["has a delicate build",
  30.       "has a slender build",
  31.       "has a stocky build",
  32.       "has a build similar to that of humans"]],
  33.     ["height",
  34.      ["is extremely tall",
  35.       "is quite tall",
  36.       "is a little taller than humans on average",
  37.       "is extremely short",
  38.       "is quite short",
  39.       "is a little shorter than humans on average",
  40.       "is around the same height as the average human"]],
  41.     ["epidermis",
  42.      ["have <complexions-human> skin and <hair>",
  43.       "have <complexions-human> skin and <hair-human>",
  44.       "have <complexions> and <hair>",
  45.       "have <deccolors> skin and <hair>",
  46.       "have skin covered in <deccolors> scales"]],
  47.     ["complexions",
  48.      ["<complexions-unwild> skin",
  49.       "<complexions-human> skin",
  50.       "<deccolors> skin"]],
  51.     ["hair",
  52.      ["are completely hairless",
  53.       "are completely hairless",
  54.       "are completely hairless",
  55.       "are covered with <haircolor> hair",
  56.       "have <haircolor> hair",
  57.       "have <haircolor> hair",
  58.       "have <haircolor> hair",
  59.       "have <haircolor> hair",
  60.       "have <haircolor> hair"]],
  61.     ["hair-human",
  62.      ["are completely hairless",
  63.       "are covered with <haircolor-human> hair",
  64.       "have <haircolor-human> hair"]],
  65.     // It is not necessary to use a new line for every entry.
  66.     ["haircolor", ["<haircolor-human>", "<deccolors>"]],
  67.     ["haircolor-human",
  68.      ["black",
  69.       "black to brown",
  70.       "blond",
  71.       "blond to brown",
  72.       "brown",
  73.       "red",
  74.       "red to brown",
  75.       "red to blond",
  76.       "white",
  77.       "white to blond"]],
  78.     ["complexions-unwild",
  79.      ["<shade-g><tint> gray",
  80.       "<shade-g><tint>",
  81.       "<shade-un-2>green",
  82.       "<shade-un-2>blue",
  83.       "<shade-g>grayish <grayish>",
  84.       "<shade-nv>brownish <brownish>"]],
  85.     ["complexions-human",
  86.      ["brown",
  87.       "dark",
  88.       "dark brown",
  89.       "light to medium brown",
  90.       "medium brown",
  91.       "medium to dark brown",
  92.       "fair to dark brown",
  93.       "pale to dark brown",
  94.       "fair",
  95.       "pale",
  96.       "fair to pale"]],
  97.     ["feature",
  98.      ["<featureMarkings> and <featureEyes>",
  99.       "<featureEyes>",
  100.       "<featureEars> and <featureEyes>",
  101.       "<featureEars>, <featureMarkings>, and <featureEyes>",
  102.       "<featureMarkings>, <featureFace>, and <featureEyes>",
  103.       "<featureFace> and <featureEyes>",
  104.       "<featureEars>, <featureFace>, and <featureEyes>",
  105.       "<featureEars>, <featureMarkings>, <featureFace>, and <featureEyes>",
  106.       "<featureMarkings> and facial features that put you in mind of <animal>",
  107.       "<featureMarkings>, <featureEyes-2>," +
  108.       " and facial features that put you in mind of <animal>",
  109.       "<featureEyes-2> and facial features that put you in mind of <animal>"]],
  110.     ["animal",
  111.      // Nor do you need to have a fixed number of entries for each line.
  112.      // The writer is free to choose any spacing.
  113.      ["a cat", "a dog", "a rabbit", "a moose", "a seal", "an iguana",
  114.       "a snake", "a deer", "a rat", "a mouse", "a lizard", "a wolf",
  115.       "a monkey", "a turtle", "a bird", "an owl", "a beetle", "a moth",
  116.       "a horned toad", "a spider", "a buffalo", "an antelope", "a frog"]],
  117.     ["featureMarkings",
  118.      ["<Markings> on their <BodyPart>"]],
  119.     ["featureEars",
  120.      ["antennae rather than ears",
  121.       "cat-like ears",
  122.       "ears shaped like leaves",
  123.       "long, pointed ears",
  124.       "very large ears",
  125.       "very small ears"]],
  126.     ["featureEyes",
  127.      ["<eyecolor> eyes",
  128.       "<eyecolor> <eyetype> eyes",
  129.       "large, <eyecolor> eyes",
  130.       "small, <eyecolor> eyes"]],
  131.     ["featureEyes-2", ["<eyecolor> eyes"]],
  132.     ["eyetype",
  133.      ["cat-like", "fish-like", "bird-like", "insectoid", "octopus-like"]],
  134.     ["eyecolor", ["<eyecolor-human>", "<deccolors>", "<metallic>"]],
  135.     ["eyecolor-human",
  136.      ["black", "blue", "brown", "dark", "gray", "green"]],
  137.     ["Markings",
  138.      ["colorful markings",
  139.       "distinctive markings",
  140.       "<spotcritter>-like spots",
  141.       "<stripecritter>-like stripes"]],
  142.     ["spotcritter",
  143.      ["leopard", "cheetah", "giraffe", "fawn", "jaguar"]],
  144.     ["stripecritter", ["tiger", "tabby", "okapi"]],
  145.     ["featureFace", ["<FaceFeature> on their <FacePart>"]],
  146.     ["FaceFeature",
  147.      ["small ridges",
  148.       "delicate ridges",
  149.       "extensive ridges",
  150.       "prominent ridges",
  151.       "ridges",
  152.       "small hornlike protrusions",
  153.       "hornlike protrusions",
  154.       "prominent hornlike protrusions"]],
  155.     ["FacePart", ["ears", "foreheads", "heads", "noses"]],
  156.     ["BodyPart",
  157.      ["faces",
  158.       "faces, necks, and bodies",
  159.       "arms and legs",
  160.       "bodies"]],
  161.     ["wardrobe",
  162.      ["They wear <clothing>",
  163.       "They wear <clothing> and <accessories>"]],
  164.     ["clothing",
  165.      ["<clothingDesc> clothing",
  166.       "<clothingDesc> clothing that covers most of their bodies",
  167.       "<clothingDesc> clothing that covers the essentials",
  168.       "<clothingDesc> clothing that leaves very little to the imagination",
  169.       "<clothingDesc>, modest clothing",
  170.       "highly technological suits"]],
  171.     ["clothingDesc",
  172.      ["colorful",
  173.       "drab",
  174.       "richly-decorated",
  175.       "simple"]],
  176.     ["accessories",
  177.      ["very little jewelry",
  178.       "a lot of jewelry",
  179.       "decorations that show their rank",
  180.       "<jewelryDesc> bracelets",
  181.       "<jewelryDesc> jewelry",
  182.       "<jewelryDesc> pendants",
  183.       "cybernetic implants"]],
  184.     ["jewelryDesc",
  185.      ["finely crafted",
  186.       "ostentatious",
  187.       "simple",
  188.       "tasteful"]],
  189.     ["theylive",
  190.      ["Their native habitat is",
  191.       "They are well-adapted to",
  192.       "They come from"]],
  193.     ["environment",
  194.      ["a cold climate",
  195.       "an aquatic environment",
  196.       "an extremely cold climate",
  197.       "a hot, dry climate",
  198.       "a temperate climate",
  199.       "a tropical environment",
  200.       "a warm climate"]],
  201.     ["trivia",
  202.      ["they are well-known for their <stuff>",
  203.       "their leaders are interested in learning about other peoples' <stuff>",
  204.       "many of them have expressed interest"
  205.       + " in learning about other peoples' <stuff>",
  206.       "<conquestystuff>"]],
  207.     ["conquestystuff",
  208.      ["at large they are out for conquest",
  209.       "many of their leaders have an aggressive expansionist policy",
  210.       "they have started several new colonies lately"]],
  211.     ["personality",
  212.      ["They are generally <trait> and",
  213.       "They tend to be <trait> and",
  214.       "They are often <trait> and",
  215.       "For the most part, their culture highly regards <trait2> and",
  216.       "Many of them place high importance on <trait2> and"]],
  217.     ["trait2",
  218.      ["caution",
  219.       "curiosity",
  220.       "intellectualism",
  221.       "loyalty",
  222.       "patriotism",
  223.       "tenacity",
  224.       "tradition"]],
  225.     ["trait",
  226.      ["cautious", "friendly", "intellectual", "mystical", "optimistic",
  227.       "pessimistic", "peaceful", "playful", "religious", "warlike",
  228.       "xenophobic"]],
  229.     ["stuff",
  230.      ["advances in medicine",
  231.       "art",
  232.       "contributions to science",
  233.       "cuisine",
  234.       "literature",
  235.       "music",
  236.       "philosophies"]],
  237.     ["deccolors", ["<warmcolor>", "<coolcolor>", "<gradient>", "<bw>"]],
  238.     ["mostlycoolend",
  239.      ["and <mbwwc>",
  240.       "and <mbwwc>",
  241.       "<warmcolor>, and <bw>",
  242.       "<metallic>, and <bw>"]],
  243.     ["gradient",
  244.      ["<shade-un>red-to-yellow",
  245.       "<shade-un>red-to-brown",
  246.       "<shade-un>red-to-orange",
  247.       "<shade-un>orange-to-yellow",
  248.       "<shade-un>orange-to-brown",
  249.       "<shade-un>magenta-to-pink",
  250.       "<shade-un>magenta-to-brown",
  251.       "<shade-un>magenta-to-orange",
  252.       "<shade-un>yellow-to-green",
  253.       "<shade-un>yellow-to-blue",
  254.       "<shade-un-2>green-to-turquoise",
  255.       "<shade-un-2>green-to-blue",
  256.       "<shade-un-2>turqoise-to-blue",
  257.       "<shade-un-2>blue-to-indigo",
  258.       "<shade-un-2>blue-to-purple",
  259.       "<shade-un-2>indigo-to-purple",
  260.       "<shade-un>brown"]],
  261.     ["warmcolor",
  262.      ["<shade-nv>brown",
  263.       "magenta",
  264.       "<shade-nl>red",
  265.       "<shade-nl>red",
  266.       "<shade>pink",
  267.       "<shade-nd>yellow",
  268.       "<shade-nd>yellow",
  269.       "<shade-nd>orange"]],
  270.     ["coolcolor",
  271.      ["<shade>aqua",
  272.       "<shade>green",
  273.       "<shade>green",
  274.       "<shade>blue",
  275.       "<shade>blue",
  276.       "<shade>blue",
  277.       "<shade>purple",
  278.       "<shade>purple",
  279.       "<shade>turquoise"]],
  280.     ["metallic", ["brass", "copper", "gold", "silver"]],
  281.     ["grayish", ["green", "blue", "purple", "indigo", "turquoise", "brown"]],
  282.     ["brownish", ["red", "orange"]],
  283.     ["bw", ["black", "<shade-g>gray", "<shade-g><tint> gray", "white"]],
  284.     ["mbw", ["<metallic>", "<bw>"]],
  285.     ["mbwcc", ["<metallic>", "<bw>", "<coolcolor>"]],
  286.     ["mbwwc", ["<metallic>", "<bw>", "<warmcolor>"]],
  287.     ["shade", ["variating ", "light ", "vivid ", "dark ", "muted ", "drab ", ""]],
  288.     ["shade-g", ["variating ", "light ", "dark ", ""]],
  289.     ["tint", ["greenish", "bluish", "pinkish", "purplish", "tealish"]],
  290.     ["shade-nl", ["variating ", "dark ", "vivid ", "muted ", "drab ", ""]],
  291.     ["shade-nd", ["variating ", "pastel ", "vivid ", "muted ", "drab ", ""]],
  292.     ["shade-nv",
  293.      ["variating ", "light ", "dark ", "rich ", "muted ", "drab ", ""]],
  294.     ["shade-un",
  295.      ["variating ", "gradiating ", "muted ", "drab ", ""]],
  296.     ["shade-un-2", ["<shade-un>", "<shade>"]],
  297.     ["THIRD", [""]]
  298. ]
  299.  
  300. var objvocab = {
  301.     // This is the object literal notation version.
  302.     // Objects are special arrays
  303.     // where every entry in the array
  304.     // has a name associated with it, called a "key".
  305.     // The thing that it names is called a value,
  306.     // and together they are called a key-value pair.
  307.  
  308.     // Each key-value pair in JS
  309.     // is written `key: value`
  310.     // and are separated by commas
  311.     // if the key is a string made purely of alphanumeric text,
  312.     // you may leave it unquoted,
  313.     // but it is best to quote it at all times.
  314.  
  315.     // The same formatting rules for arrays (that is, none)
  316.     // also apply with objects.
  317.     // If you want to get the thing whose name is `foo`,
  318.     // then you can get to the array that is associated with foo by writing
  319.     // `obj.foo` or `obj["foo"]`. Either one works,
  320.     // but if `foo` is a variable that holds a key (which is a string),
  321.     // you must write `obj[foo]`.
  322.     "FIRST": [
  323.         // Most editors that have automatic indentation
  324.         // indent better when you put the opening bracket
  325.         // hanging out on the side like this.
  326.         // It even handles the + sign trick well.
  327.         "The average member of this race <build> and <height>. "
  328.             + "They <epidermis>. "
  329.             + "They have <feature>. "
  330.             + " <wardrobe>. "
  331.             + " <theylive> <environment>. "
  332.             + " <personality> <trivia>."],
  333.     "build": [
  334.         "has a delicate build",
  335.         "has a slender build",
  336.         "has a stocky build",
  337.         "has a build similar to that of humans"],
  338.     "height": [
  339.         "is extremely tall",
  340.         "is quite tall",
  341.         "is a little taller than humans on average",
  342.         "is extremely short",
  343.         "is quite short",
  344.         "is a little shorter than humans on average",
  345.         "is around the same height as the average human"],
  346.     "epidermis": [
  347.         "have <complexions-human> skin and <hair>",
  348.         "have <complexions-human> skin and <hair-human>",
  349.         "have <complexions> and <hair>",
  350.         "have <deccolors> skin and <hair>",
  351.         "have skin covered in <deccolors> scales"],
  352.     "complexions": [
  353.         "<complexions-unwild> skin",
  354.         "<complexions-human> skin",
  355.         "<deccolors> skin"],
  356.     "hair": [
  357.         "are completely hairless",
  358.         "are completely hairless",
  359.         "are completely hairless",
  360.         "are covered with <haircolor> hair",
  361.         "have <haircolor> hair",
  362.         "have <haircolor> hair",
  363.         "have <haircolor> hair",
  364.         "have <haircolor> hair",
  365.         "have <haircolor> hair"],
  366.     "hair-human": [
  367.         "are completely hairless",
  368.         "are covered with <haircolor-human> hair",
  369.         "have <haircolor-human> hair"],
  370.     "haircolor": ["<haircolor-human>", "<deccolors>"],
  371.     "haircolor-human": [
  372.         "black",
  373.         "black to brown",
  374.         "blond",
  375.         "blond to brown",
  376.         "brown",
  377.         "red",
  378.         "red to brown",
  379.         "red to blond",
  380.         "white",
  381.         "white to blond"],
  382.     "complexions-unwild": [
  383.         "<shade-g><tint> gray",
  384.         "<shade-g><tint>",
  385.         "<shade-un-2>green",
  386.         "<shade-un-2>blue",
  387.         "<shade-g>grayish <grayish>",
  388.         "<shade-nv>brownish <brownish>"],
  389.     "complexions-human" : [
  390.         "brown",
  391.         "dark",
  392.         "dark brown",
  393.         "light to medium brown",
  394.         "medium brown",
  395.         "medium to dark brown",
  396.         "fair to dark brown",
  397.         "pale to dark brown",
  398.         "fair",
  399.         "pale",
  400.         "fair to pale"],
  401.     "feature": [
  402.         "<featureMarkings> and <featureEyes>",
  403.         "<featureEyes>",
  404.         "<featureEars> and <featureEyes>",
  405.         "<featureEars>, <featureMarkings>, and <featureEyes>",
  406.         "<featureMarkings>, <featureFace>, and <featureEyes>",
  407.         "<featureFace> and <featureEyes>",
  408.         "<featureEars>, <featureFace>, and <featureEyes>",
  409.         "<featureEars>, <featureMarkings>, <featureFace>, and <featureEyes>",
  410.         "<featureMarkings> and facial features "
  411.             + "that put you in mind of <animal>",
  412.         "<featureMarkings>, <featureEyes-2>,"
  413.             + " and facial features that put you in mind of <animal>",
  414.         "<featureEyes-2> and facial features that put you in mind of <animal>"],
  415.     "animal": [
  416.         "a cat", "a dog", "a rabbit", "a moose", "a seal", "an iguana",
  417.         "a snake", "a deer", "a rat", "a mouse", "a lizard", "a wolf",
  418.         "a monkey", "a turtle", "a bird", "an owl", "a beetle", "a moth",
  419.         "a horned toad", "a spider", "a buffalo", "an antelope", "a frog"],
  420.     "featureMarkings": ["<Markings> on their <BodyPart>"],
  421.     "featureEars": [
  422.         "antennae rather than ears",
  423.         "cat-like ears",
  424.         "ears shaped like leaves",
  425.         "long, pointed ears",
  426.         "very large ears",
  427.         "very small ears"],
  428.     "featureEyes": [
  429.         "<eyecolor> eyes",
  430.         "<eyecolor> <eyetype> eyes",
  431.         "large, <eyecolor> eyes",
  432.         "small, <eyecolor> eyes"],
  433.     "featureEyes-2": ["<eyecolor> eyes"],
  434.     "eyetype": [
  435.         "cat-like", "fish-like", "bird-like", "insectoid", "octopus-like"],
  436.     "eyecolor"      : ["<eyecolor-human>", "<deccolors>", "<metallic>"],
  437.     "eyecolor-human": ["black", "blue", "brown", "dark", "gray", "green"],
  438.     "Markings": [
  439.         "colorful markings",
  440.         "distinctive markings",
  441.         "<spotcritter>-like spots",
  442.         "<stripecritter>-like stripes"],
  443.     "spotcritter": ["leopard", "cheetah", "giraffe", "fawn", "jaguar"],
  444.     "stripecritter": ["tiger", "tabby", "okapi"],
  445.     "featureFace": ["<FaceFeature> on their <FacePart>"],
  446.     "FaceFeature": [
  447.         "small ridges",
  448.         "delicate ridges",
  449.         "extensive ridges",
  450.         "prominent ridges",
  451.         "ridges",
  452.         "small hornlike protrusions",
  453.         "hornlike protrusions",
  454.         "prominent hornlike protrusions"],
  455.     "FacePart": ["ears", "foreheads", "heads", "noses"],
  456.     "BodyPart": [
  457.         "faces",
  458.         "faces, necks, and bodies",
  459.         "arms and legs",
  460.         "bodies"],
  461.     "wardrobe": ["They wear <clothing>",
  462.                  "They wear <clothing> and <accessories>"],
  463.     // ^ This formatting style is slightly different –
  464.     // The first entry is written on the same line
  465.     // as the key.
  466.     // This is alright but it's best to stick to one style.
  467.     "clothing": [
  468.         "<clothingDesc> clothing",
  469.         "<clothingDesc> clothing that covers most of their bodies",
  470.         "<clothingDesc> clothing that covers the essentials",
  471.         "<clothingDesc> clothing that leaves very little to the imagination",
  472.         "<clothingDesc>, modest clothing",
  473.         "highly technological suits"],
  474.     "clothingDesc": [
  475.         "colorful",
  476.         "drab",
  477.         "richly-decorated",
  478.         "simple"],
  479.     "accessories": [
  480.         "very little jewelry",
  481.         "a lot of jewelry",
  482.         "decorations that show their rank",
  483.         "<jewelryDesc> bracelets",
  484.         "<jewelryDesc> jewelry",
  485.         "<jewelryDesc> pendants",
  486.         "cybernetic implants"],
  487.     "jewelryDesc": [
  488.         "finely crafted",
  489.         "ostentatious",
  490.         "simple",
  491.         "tasteful"],
  492.     "theylive": [
  493.         "Their native habitat is",
  494.         "They are well-adapted to",
  495.         "They come from"],
  496.     "environment": [
  497.         "a cold climate",
  498.         "an aquatic environment",
  499.         "an extremely cold climate",
  500.         "a hot, dry climate",
  501.         "a temperate climate",
  502.         "a tropical environment",
  503.         "a warm climate"],
  504.     "trivia": [
  505.         "they are well-known for their <stuff>",
  506.         "their leaders are interested in learning about other peoples' <stuff>",
  507.         "many of them have expressed interest" +
  508.             " in learning about other peoples' <stuff>",
  509.         "<conquestystuff>"],
  510.     "conquestystuff": [
  511.         "at large they are out for conquest",
  512.         "many of their leaders have an aggressive expansionist policy",
  513.         "they have started several new colonies lately"],
  514.     "personality": [
  515.         "They are generally <trait> and",
  516.         "They tend to be <trait> and",
  517.         "They are often <trait> and",
  518.         "For the most part, their culture highly regards <trait2> and",
  519.         "Many of them place high importance on <trait2> and"],
  520.     "trait2": [
  521.         "caution",
  522.         "curiosity",
  523.         "intellectualism",
  524.         "loyalty",
  525.         "patriotism",
  526.         "tenacity",
  527.         "tradition"],
  528.     "trait": [
  529.         "cautious", "friendly", "intellectual", "mystical", "optimistic",
  530.         "pessimistic", "peaceful", "playful", "religious", "warlike",
  531.         "xenophobic"],
  532.     "stuff": [
  533.         "advances in medicine",
  534.         "art",
  535.         "contributions to science",
  536.         "cuisine",
  537.         "literature",
  538.         "music",
  539.         "philosophies"],
  540.     "deccolors": ["<warmcolor>", "<coolcolor>", "<gradient>", "<bw>"],
  541.     "mostlycoolend": [
  542.         "and <mbwwc>",
  543.         "and <mbwwc>",
  544.         "<warmcolor>, and <bw>",
  545.         "<metallic>, and <bw>"],
  546.     "gradient": [
  547.         "<shade-un>red-to-yellow",
  548.         "<shade-un>red-to-brown",
  549.         "<shade-un>red-to-orange",
  550.         "<shade-un>orange-to-yellow",
  551.         "<shade-un>orange-to-brown",
  552.         "<shade-un>magenta-to-pink",
  553.         "<shade-un>magenta-to-brown",
  554.         "<shade-un>magenta-to-orange",
  555.         "<shade-un>yellow-to-green",
  556.         "<shade-un>yellow-to-blue",
  557.         "<shade-un-2>green-to-turquoise",
  558.         "<shade-un-2>green-to-blue",
  559.         "<shade-un-2>turqoise-to-blue",
  560.         "<shade-un-2>blue-to-indigo",
  561.         "<shade-un-2>blue-to-purple",
  562.         "<shade-un-2>indigo-to-purple",
  563.         "<shade-un>brown"],
  564.     "warmcolor": [
  565.         "<shade-nv>brown",
  566.         "magenta",
  567.         "<shade-nl>red",
  568.         "<shade-nl>red",
  569.         "<shade>pink",
  570.         "<shade-nd>yellow",
  571.         "<shade-nd>yellow",
  572.         "<shade-nd>orange"],
  573.     "coolcolor": [
  574.         "<shade>aqua",
  575.         "<shade>green",
  576.         "<shade>green",
  577.         "<shade>blue",
  578.         "<shade>blue",
  579.         "<shade>blue",
  580.         "<shade>purple",
  581.         "<shade>purple",
  582.         "<shade>turquoise"],
  583.     // The ones here below are short enough
  584.     // that the arrays can be written in one line.
  585.     // You can align the arrays to each other for prettiness,
  586.     // but again you don't need to.
  587.     "metallic": ["brass", "copper", "gold", "silver"],
  588.     "grayish":  ["green", "blue", "purple", "indigo", "turquoise", "brown"],
  589.     "brownish": ["red", "orange"],
  590.     "bw":       ["black", "<shade-g>gray", "<shade-g><tint> gray", "white"],
  591.     "mbw":      ["<metallic>", "<bw>"],
  592.     "mbwcc":    ["<metallic>", "<bw>", "<coolcolor>"],
  593.     "mbwwc":    ["<metallic>", "<bw>", "<warmcolor>"],
  594.     "shade":    ["variating ", "light ", "vivid ", "dark ", "muted ", "drab ",
  595.                  ""],
  596.     "shade-g":  ["variating ", "light ", "dark ", ""],
  597.     "tint":     ["greenish", "bluish", "pinkish", "purplish", "tealish"],
  598.     "shade-nl": ["variating ", "dark ", "vivid ", "muted ", "drab ", ""],
  599.     "shade-nd": ["variating ", "pastel ", "vivid ", "muted ", "drab ", ""],
  600.     "shade-nv": ["variating ", "light ", "dark ", "rich ",
  601.                  "muted ", "drab ", ""],
  602.     "shade-un": ["variating ", "gradiating ", "muted ", "drab ", ""],
  603.     "shade-un-2": ["<shade-un>", "<shade>"],
  604.     "THIRD": [""]
  605. }
Advertisement
Add Comment
Please, Sign In to add comment