From fe63081519e589dfbeb9be3f189c0c92c914bfcb Mon Sep 17 00:00:00 2001 From: Idhrendur Date: Sat, 26 Sep 2020 12:46:15 -0700 Subject: [PATCH 1/4] Document colors --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index ebb9a474..3138ef17 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,28 @@ Common items for the different game converters. Including parsers, OS utilities, ## Current Status [![Codacy Badge](https://app.codacy.com/project/badge/Grade/54be2f027eb040448b8bf89410c7ff3d)](https://www.codacy.com/gh/ParadoxGameConverters/commonItems/dashboard?utm_source=github.com&utm_medium=referral&utm_content=ParadoxGameConverters/commonItems&utm_campaign=Badge_Grade) + +## Included Items + +### Color.h +Represents a Paradox-defined color. + +Can be directly created in either the RGB or HSV color spaces. + +Can be imported in: +* Unspecified with ints (becomes RGB) +* Unspecified with floats (becomes RGB) +* RGB +* Hex +* HSV using 0.0-1.0, 0.0-1.0, 0.0-1.0 +* HSV360 using 0-360, 0-100, 0-100 +* Name (requires caching definitions for the named colors in advance) + +Can be output in: +* unspecified (rgb) +* hex +* RGB +* HSV +* HSV360 + +The individual components can be accessed in both RGB and HSV color spaces, equality and inequality can be checked, the color cache can be reviewed and modified, and colors can have a random fluctuation be applied automatically. From 08f5e0b67e9f12cb766a0faa212e44418d302837 Mon Sep 17 00:00:00 2001 From: Idhrendur Date: Sat, 26 Sep 2020 12:56:15 -0700 Subject: [PATCH 2/4] Provide examples for import and export --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 3138ef17..0e8724e0 100644 --- a/README.md +++ b/README.md @@ -12,19 +12,19 @@ Represents a Paradox-defined color. Can be directly created in either the RGB or HSV color spaces. Can be imported in: -* Unspecified with ints (becomes RGB) -* Unspecified with floats (becomes RGB) -* RGB -* Hex -* HSV using 0.0-1.0, 0.0-1.0, 0.0-1.0 -* HSV360 using 0-360, 0-100, 0-100 -* Name (requires caching definitions for the named colors in advance) +* Unspecified with ints (becomes RGB) - "= { 64 128 128 }" +* Unspecified with floats (becomes RGB) - "= { 0.5 0.9 0.1 }" +* RGB - "= rgb { 64 128 128 }" +* Hex - "= hex { 408080 }" +* HSV - "= hsv { 0.5 0.5 0.5 }" +* HSV360 - "= hsv360 { 180 50 50 }" +* Name (requires caching definitions for the named colors in advance) - "= dark_moderate_cyan" Can be output in: -* unspecified (rgb) -* hex -* RGB -* HSV -* HSV360 +* unspecified (rgb) - "= { 64 128 128 }" +* RGB - "= rgb { 64 128 128 }" +* hex - "= hex { 408080 }" +* HSV - "= hsv { 0.5 0.5 0.5 }" +* HSV360 - "= hsv360 { 180 50 50 }" The individual components can be accessed in both RGB and HSV color spaces, equality and inequality can be checked, the color cache can be reviewed and modified, and colors can have a random fluctuation be applied automatically. From dd9b16751cfac752ec71ee1c9d0b8df6c16136b4 Mon Sep 17 00:00:00 2001 From: Idhrendur Date: Sat, 26 Sep 2020 12:59:13 -0700 Subject: [PATCH 3/4] Make codacy happy --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0e8724e0..f55b5d2a 100644 --- a/README.md +++ b/README.md @@ -12,19 +12,19 @@ Represents a Paradox-defined color. Can be directly created in either the RGB or HSV color spaces. Can be imported in: -* Unspecified with ints (becomes RGB) - "= { 64 128 128 }" -* Unspecified with floats (becomes RGB) - "= { 0.5 0.9 0.1 }" -* RGB - "= rgb { 64 128 128 }" -* Hex - "= hex { 408080 }" -* HSV - "= hsv { 0.5 0.5 0.5 }" -* HSV360 - "= hsv360 { 180 50 50 }" -* Name (requires caching definitions for the named colors in advance) - "= dark_moderate_cyan" + * Unspecified with ints (becomes RGB) - "= { 64 128 128 }" + * Unspecified with floats (becomes RGB) - "= { 0.5 0.9 0.1 }" + * RGB - "= rgb { 64 128 128 }" + * Hex - "= hex { 408080 }" + * HSV - "= hsv { 0.5 0.5 0.5 }" + * HSV360 - "= hsv360 { 180 50 50 }" + * Name (requires caching definitions for the named colors in advance) - "= dark_moderate_cyan" Can be output in: -* unspecified (rgb) - "= { 64 128 128 }" -* RGB - "= rgb { 64 128 128 }" -* hex - "= hex { 408080 }" -* HSV - "= hsv { 0.5 0.5 0.5 }" -* HSV360 - "= hsv360 { 180 50 50 }" + * unspecified (rgb) - "= { 64 128 128 }" + * RGB - "= rgb { 64 128 128 }" + * hex - "= hex { 408080 }" + * HSV - "= hsv { 0.5 0.5 0.5 }" + * HSV360 - "= hsv360 { 180 50 50 }" The individual components can be accessed in both RGB and HSV color spaces, equality and inequality can be checked, the color cache can be reviewed and modified, and colors can have a random fluctuation be applied automatically. From f7da8479ecda8fac0dec8ced97892a9bd83d060b Mon Sep 17 00:00:00 2001 From: Idhrendur Date: Sat, 26 Sep 2020 14:17:24 -0700 Subject: [PATCH 4/4] Now Codacy doesn't want indentation? --- README.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f55b5d2a..55d2035c 100644 --- a/README.md +++ b/README.md @@ -11,20 +11,20 @@ Represents a Paradox-defined color. Can be directly created in either the RGB or HSV color spaces. -Can be imported in: - * Unspecified with ints (becomes RGB) - "= { 64 128 128 }" - * Unspecified with floats (becomes RGB) - "= { 0.5 0.9 0.1 }" - * RGB - "= rgb { 64 128 128 }" - * Hex - "= hex { 408080 }" - * HSV - "= hsv { 0.5 0.5 0.5 }" - * HSV360 - "= hsv360 { 180 50 50 }" - * Name (requires caching definitions for the named colors in advance) - "= dark_moderate_cyan" +Can be imported in: +* Unspecified with ints (becomes RGB) - "= { 64 128 128 }" +* Unspecified with floats (becomes RGB) - "= { 0.5 0.9 0.1 }" +* RGB - "= rgb { 64 128 128 }" +* Hex - "= hex { 408080 }" +* HSV - "= hsv { 0.5 0.5 0.5 }" +* HSV360 - "= hsv360 { 180 50 50 }" +* Name (requires caching definitions for the named colors in advance) - "= dark_moderate_cyan" -Can be output in: - * unspecified (rgb) - "= { 64 128 128 }" - * RGB - "= rgb { 64 128 128 }" - * hex - "= hex { 408080 }" - * HSV - "= hsv { 0.5 0.5 0.5 }" - * HSV360 - "= hsv360 { 180 50 50 }" +Can be output in: +* unspecified (rgb) - "= { 64 128 128 }" +* RGB - "= rgb { 64 128 128 }" +* hex - "= hex { 408080 }" +* HSV - "= hsv { 0.5 0.5 0.5 }" +* HSV360 - "= hsv360 { 180 50 50 }" The individual components can be accessed in both RGB and HSV color spaces, equality and inequality can be checked, the color cache can be reviewed and modified, and colors can have a random fluctuation be applied automatically.