tag.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. let tags = [
  2. "animal",
  3. "scenery",
  4. "people",
  5. "life",
  6. "plant",
  7. "girl",
  8. "flower",
  9. "fantasy",
  10. "data_good",
  11. "mandala",
  12. "food",
  13. "special_date",
  14. "nature",
  15. "cat",
  16. "landscape",
  17. "dog",
  18. "countryside",
  19. "forest",
  20. "ban",
  21. "flowers",
  22. "bird",
  23. "river",
  24. "mountains",
  25. "snow",
  26. "recommend",
  27. "winter",
  28. "house",
  29. "village",
  30. "heart",
  31. "Christmas",
  32. "garden",
  33. "butterfly",
  34. "fashion",
  35. "summer",
  36. "farm",
  37. "boy",
  38. "place",
  39. "sea",
  40. "culture",
  41. "car",
  42. "horse",
  43. "lake",
  44. "autumn",
  45. "tree",
  46. "building",
  47. "wild",
  48. "woman",
  49. "room",
  50. "park",
  51. "ocean",
  52. "meadow",
  53. "rabbit",
  54. "family",
  55. "patterns",
  56. "home",
  57. "mountain",
  58. "halloween",
  59. "bridge",
  60. "friends",
  61. "city",
  62. "baby",
  63. "sunset",
  64. "simple",
  65. "boat",
  66. "window",
  67. "plants",
  68. "man",
  69. "trees",
  70. "fruit",
  71. "rose",
  72. "vacation",
  73. "evening",
  74. "castle",
  75. "snowman",
  76. "street",
  77. "tiger",
  78. "grass",
  79. "lady",
  80. "child",
  81. "vintage",
  82. "holiday",
  83. "pasture",
  84. "deer",
  85. "sweet",
  86. "night",
  87. "beach",
  88. "travel",
  89. "dress",
  90. "fish",
  91. "couple",
  92. "view",
  93. "fairy",
  94. "harvest",
  95. "yard",
  96. "sky",
  97. "toys",
  98. "wildflowers",
  99. "love",
  100. "pumpkin",
  101. "water",
  102. "transportation",
  103. "birds",
  104. "rocks",
  105. "famous",
  106. "downtown",
  107. "ice",
  108. "bear",
  109. "spring",
  110. "road",
  111. "wolf",
  112. "unicorn",
  113. "lion",
  114. "stone",
  115. "magic",
  116. "cake",
  117. "book",
  118. "furniture",
  119. "children",
  120. "fox",
  121. "cartoon",
  122. "duck",
  123. "owl",
  124. "squirrel",
  125. "sport",
  126. "angel",
  127. "cub",
  128. "decorations",
  129. "pond",
  130. "sheep",
  131. "fence",
  132. "interior",
  133. "coastline",
  134. "beauty",
  135. "chicken",
  136. "train",
  137. "mermaid",
  138. "history",
  139. "moon",
  140. "picnic",
  141. "bedroom",
  142. "blooming",
  143. "sunflower",
  144. "mystery",
  145. "lovers",
  146. "stairs",
  147. "walk",
  148. "jungle",
  149. "livingroom",
  150. "thanksgiving",
  151. "kingdom",
  152. "mother and daughter",
  153. "domestic",
  154. "mother",
  155. "lotus",
  156. "dragon",
  157. "panda",
  158. "pet",
  159. "cottage",
  160. "tea",
  161. "coast",
  162. ]
  163. function getRandomDarkColor() {
  164. // 生成 0 到 127 之间的随机整数,因为较深的颜色分量值较低
  165. const r = Math.floor(Math.random() * 222);
  166. const g = Math.floor(Math.random() * 222);
  167. const b = Math.floor(Math.random() * 222);
  168. // 将 RGB 值转换为十六进制字符串
  169. const toHex = (num) => {
  170. const hex = num.toString(16);
  171. return hex.length === 1 ? `0${hex}` : hex;
  172. };
  173. // 返回 RGB 十六进制颜色字符串
  174. return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
  175. }
  176. tags = tags.map(e => { return { tag: e, color: getRandomDarkColor() } });
  177. module.exports = tags;