From cc8298873398a941114d0d06958c66ff9713f4d7 Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Sun, 21 Feb 2021 20:39:00 +0100 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b6e23db..dc12cff 100644 --- a/README.md +++ b/README.md @@ -111,10 +111,14 @@ _Draw new image from matrix_ ## Color-object -- what it is -- how to get it - - [color_from_hex(HEX_STRING)] - - [color_from_rgba(R, G, B, A)] +An object storing red, green, blue and alpha data for a color (all _Range: `0-255 (int)`_) +```javascript +{r:255, g:127, b:0, a:255} +``` + +### How to get it +- [color_from_hex()](#color_from_hexhex_string) +- [color_from_rgba()](#color_from_rgbar-g-b-a) @@ -122,6 +126,6 @@ _Draw new image from matrix_ # Examples -## 1. Do something +## 1. 2x2 Red, Green, Yellow and Blue pixels -## 2. Do something else +## 2. xxx RGB color-palette