Generator::colors()
Description #
Background colors to be used in image.
Extracted from Google’s metallic color.
Source #
File: addons/avatar/class-generator.php
public function colors() { $colors = array( '#EA526F', '#FF0038', '#3C91E6', '#D64933', '#00A878', '#0A2472', '#736B92', '#FFAD05', '#DD9787', '#74D3AE', '#B9314F', '#878472', '#983628', '#E2AEDD', '#1B9AAA', '#FFC43D', '#4F3824', '#7A6F9B', '#376996', '#7B904B', '#613DC1' ); /** * Filters avatar addon colors. * * Use this filter to override or add custom colors for avatar. * Colors are selected randomly while creating avatar. * * @param array $colors List of default colors. * @since 4.0.11 Introduced. Requested at @link https://goo.gl/yXN7og. * * @return array */ $this->colors = apply_filters( 'ap_addon_avatar_colors', $colors ); }
Expand full source code Collapse full source code View on GitHub: addons/avatar/class-generator.php:138
Add your comment