6 Commits

Author SHA1 Message Date
a5db5eb181 1.0.6 2017-02-05 21:00:38 +01:00
c59061a840 update README 2017-02-05 21:00:25 +01:00
b9c4626a30 1.0.5 2017-01-21 20:30:57 +01:00
aeac61774f improve colors 2017-01-21 20:30:53 +01:00
1d789532e3 1.0.4 2017-01-21 20:27:27 +01:00
ae6940bc31 improve colors 2017-01-21 20:27:25 +01:00
4 changed files with 14 additions and 14 deletions

View File

@ -2,10 +2,10 @@
colors for beautylog
## Availabililty
[![npm](https://push.rocks/assets/repo-button-npm.svg)](https://www.npmjs.com/package/beautycolor)
[![git](https://push.rocks/assets/repo-button-git.svg)](https://GitLab.com/pushrocks/beautycolor)
[![git](https://push.rocks/assets/repo-button-mirror.svg)](https://github.com/pushrocks/beautycolor)
[![docs](https://push.rocks/assets/repo-button-docs.svg)](https://pushrocks.gitlab.io/beautycolor/)
[![npm](https://pushrocks.gitlab.io/assets/repo-button-npm.svg)](https://www.npmjs.com/package/beautycolor)
[![git](https://pushrocks.gitlab.io/assets/repo-button-git.svg)](https://GitLab.com/pushrocks/beautycolor)
[![git](https://pushrocks.gitlab.io/assets/repo-button-mirror.svg)](https://github.com/pushrocks/beautycolor)
[![docs](https://pushrocks.gitlab.io/assets/repo-button-docs.svg)](https://pushrocks.gitlab.io/beautycolor/)
## Status for master
[![build status](https://GitLab.com/pushrocks/beautycolor/badges/master/build.svg)](https://GitLab.com/pushrocks/beautycolor/commits/master)
@ -33,4 +33,4 @@ let myColoredString = beautycolor.coloredString(
console.log(myColoredString)
```
[![npm](https://push.rocks/assets/repo-header.svg)](https://push.rocks)
[![npm](https://pushrocks.gitlab.io/assets/repo-header.svg)](https://push.rocks)

8
dist/index.js vendored
View File

@ -9,17 +9,17 @@ let colorTranslator = (colorArg) => {
case 'black':
return { r: 0, g: 0, b: 0 };
case 'blue':
return { r: 0, g: 1, b: 5 };
return { r: 0, g: 2, b: 5 };
case 'brown':
return { r: 1, g: 0, b: 0 };
case 'cyan':
return { r: 2, g: 4, b: 4 };
case 'green':
return { r: 3, g: 4, b: 0 };
return { r: 2, g: 4, b: 1 };
case 'orange':
return { r: 5, g: 3, b: 0 };
return { r: 5, g: 3, b: 1 };
case 'pink':
return { r: 5, g: 0, b: 3 };
return { r: 3, g: 2, b: 4 };
case 'red':
return { r: 5, g: 0, b: 0 };
case 'white':

View File

@ -1,6 +1,6 @@
{
"name": "beautycolor",
"version": "1.0.3",
"version": "1.0.6",
"description": "colors for beautylog",
"main": "dist/index.js",
"typings": "dist/index.d.ts",

View File

@ -29,17 +29,17 @@ let colorTranslator = (colorArg: TColorName): IRGB => {
case 'black':
return {r: 0, g: 0, b: 0}
case 'blue':
return {r: 0, g: 1, b: 5}
return {r: 0, g: 2, b: 5}
case 'brown':
return {r: 1, g: 0 , b: 0}
case 'cyan':
return {r: 2,g: 4, b: 4}
case 'green':
return {r: 3, g: 4, b: 0}
return {r: 2, g: 4, b: 1}
case 'orange':
return {r: 5, g: 3, b: 0}
return {r: 5, g: 3, b: 1}
case 'pink':
return {r: 5, g: 0, b: 3}
return {r: 3, g: 2, b: 4}
case 'red':
return {r: 5, g: 0, b: 0}
case 'white':