<commit_before>pickColors
=========

pick impressive colors from image, canvas. <commit_msg>Published with https://stackedit.io/<commit_after>pickColors
=========

pick impressive colors from image, canvas. 


###use

>var Canvas = require("canvas");
>var Image = Canvas.Image;
>var Pickcolors = require("pickcolors");
>imageData = js.readFileSync("path/to/image");
>var image = new Image();
>image.src = imageData;
>Pickcolors(image).toRGB();
>/*get [{r: , g: , b}, ... ]
>  or .toHexString() 
>  get ["#123456", "#234567", ...]
{'fraction_non_alphanumeric': 0.21361058601134217, 'fraction_numerical': 0.022684310018903593, 'mean_word_length': 5.0227272727272725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '37196', 'n_tokens_mistral': 187, 'n_tokens_neox': 175, 'n_words': 44}