Skip to content

Commit

Permalink
Merge pull request #291 from se-omar/color-descs
Browse files Browse the repository at this point in the history
improve color descs
  • Loading branch information
brianvoe committed Jan 12, 2024
2 parents d29e94e + 58e36b9 commit 5bb24a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions color.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func addColorLookup() {
AddFuncLookup("color", Info{
Display: "Color",
Category: "color",
Description: "Random color",
Description: "Hue seen by the eye, returns the name of the color like red or blue",
Example: "MediumOrchid",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -73,7 +73,7 @@ func addColorLookup() {
AddFuncLookup("nicecolors", Info{
Display: "Nice Colors",
Category: "color",
Description: "Random set of nice colors",
Description: "Attractive and appealing combinations of colors, returns an list of color hex codes",
Example: `["#cfffdd","#b4dec1","#5c5863","#a85163","#ff1f4c"]`,
Output: "[]string",
ContentType: "application/json",
Expand All @@ -85,7 +85,7 @@ func addColorLookup() {
AddFuncLookup("safecolor", Info{
Display: "Safe Color",
Category: "color",
Description: "Random safe color",
Description: "Colors displayed consistently on different web browsers and devices",
Example: "black",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -96,7 +96,7 @@ func addColorLookup() {
AddFuncLookup("hexcolor", Info{
Display: "Hex Color",
Category: "color",
Description: "Random hex color",
Description: "Six-digit code representing a color in the color model",
Example: "#a99fb4",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -107,7 +107,7 @@ func addColorLookup() {
AddFuncLookup("rgbcolor", Info{
Display: "RGB Color",
Category: "color",
Description: "Random rgb color",
Description: "Color defined by red, green, and blue light values",
Example: "[85, 224, 195]",
Output: "[]int",
ContentType: "application/json",
Expand Down

0 comments on commit 5bb24a9

Please sign in to comment.