diff --git a/README.md b/README.md index 3726677..375e767 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,43 @@ -# colsum -Simple cli util for intersecting colors +
+
+
+
+
+# $ colsum + +Simple command line tool for overlaying colors + +```shell +java -jar colsum.jar -b "aqua" -e "rgb(55, 12, 2, 0.4) + rgba(1, 50, 217, 0.3)" +``` + +
+Usage:
+
+ β€” expression, -e -> Expression for computation (always required) { String }
+ β€” background, -b [#FFF] -> background color { String }
+ β€” help, -h -> Usage info
+
+
+ +# πŸ§‘β€πŸ’» For new contributors + +🚧 Under construction 🚧 + +# πŸ”§ Internals + +A brief structural components overview + +## πŸ”οΈ Parser + +🚧 Under construction 🚧 + +## 🎨 Alpha composition formulas + +Π‘olors are superimposed like, for example, in the Mozilla Firefox browser. Formulas are presented below: + +``` +result alpha = background alpha * (1 - new alpha) + new alpha +result color[R,G,B] = background alpha * (1 - new alpha) * background color + new color * new alpha +``` \ No newline at end of file