Skip to content

Commit

Permalink
Merge pull request RicardMatteo#1 from nin7o/main
Browse files Browse the repository at this point in the history
feat: adding support of all colors
  • Loading branch information
RicardMatteo authored Feb 20, 2024
2 parents 7da7023 + fa2ad15 commit 79b6b2e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,40 @@ function colorAssociation(color) {
return "blue";
case "#00CCC0":
return "aqua";
case "#FFB470":
return "tan";
case "#9C6927":
return "brown";
case "#BE0039":
return "red";
case "#FF4500":
return "orange";
case "#FFA800":
return "sun";
case "#FDD636":
return "yellow";
case "#7EED56":
return "lime";
case "#219200":
return "green";
case "#811E9F":
return "purple";
case "#FD90DA":
return "pink";
case "#D4D7D9":
return "light_gray";
case "#898D90":
return "gray";
case "#FFFFFF":
return "white";
case "#CB3234":
return "pure_red";
case "#A18594":
return "pastel_violet";
case "#015D52":
return "opal_green";
case "#ED760E":
return "yellow_orange";
default:
return "unknown";
}
Expand Down

0 comments on commit 79b6b2e

Please sign in to comment.