From 79926f5d011c478d7a5d759c65f834d07c56bc2c Mon Sep 17 00:00:00 2001 From: KenanAivazov Date: Fri, 27 Sep 2019 18:30:11 +0300 Subject: [PATCH] add gradient guide --- add_gradients.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 add_gradients.md diff --git a/add_gradients.md b/add_gradients.md new file mode 100644 index 0000000..d2cc851 --- /dev/null +++ b/add_gradients.md @@ -0,0 +1,25 @@ +# Guide for adding gradient in gradients.json file + +### Color groups + +``` +['#259BE5', '#E5E9EC', '#7BCC9B', '#F9AFAD', '#FC96D3', '#8B56E9'] +``` +### JSON structure +``` +"name": "Winter Neva", // gradient name +"favorite": false, // default value +"index": 1, // gradient index in array ( check last index in json file ) +"deg": 120, // gradient degree ( top - zero degree ) +"group": [ "#259BE5" ], // check color groups, may contains more than one value +"gradient": [ // color array, may contains more than one object + { + "color": "#a1c4fd", // HEX + "pos": 0 // color position in gradient + }, + { + "color": "#c2e9fb", + "pos": 100 + } +] +``` \ No newline at end of file