/**
 * Get random font color.
 * @function task.worker._randomColor
 * @returns {object}
 * @protected
 * @ignore
 * @author Taka Okunishi
 */
var path = require('path'),
    lib = require('../../lib'),
    array = lib.array,
    shuffled = array.shuffled
    ;
module.exports = function () {
    var data = require('../data/color-themes-data.js'),
        scheme = shuffled(data.schemes).pop(),
        variation = shuffled(data.variations).pop(),
        hue = shuffled(data.hues).pop();
    var ColorScheme = require('color-scheme');
    return '#' + new ColorScheme()
        .from_hue(Number(hue))
        .scheme(scheme)
        .variation(variation)
        .colors().shift()
        .toUpperCase();
};