Files
wordpress-kratos-yang/inc/avatar-styles/rings.php
T

137 lines
6.5 KiB
PHP
Raw Normal View History

<?php
return array(
'name' => 'rings',
'meta' => array(
'title' => 'Rings',
'creator' => 'DiceBear',
'source' => 'https://www.dicebear.com',
'license_name' => 'CC0 1.0',
'license_url' => 'https://creativecommons.org/publicdomain/zero/1.0/',
),
'view_box' => '0 0 100 100',
'clip_default' => true,
'has_pre_create' => false,
'has_post_create' => false,
'is_initials' => false,
'attr_pairs' => array(
array('viewBox', '0 0 100 100'),
array('fill', 'none'),
array('shape-rendering', 'crispEdges'),
),
'bg_colors' => array(),
'bg_type' => array('solid'),
'bg_rotation' => array('0', '360'),
'body_template' => '@@k:ring@@',
'pick_order' => array('ring', 'ringOne', 'ringTwo', 'ringThree', 'ringFour', 'ringFive'),
'bool_order' => array(),
'color_order' => array(
'ring' => 'ringColor',
),
'pc_has_ints' => true,
'pc_meta' => array(
array(
'group' => 'ring',
'values_opt' => 'ring',
'width' => 100,
'height' => 100,
'rotation' => array('opt' => 'ringRotation', 'fallback' => array('0')),
'offsetX' => array('opt' => null, 'fallback' => array('0')),
'offsetY' => array('opt' => null, 'fallback' => array('0')),
),
array(
'group' => 'ringOne',
'values_opt' => 'ringOne',
'width' => 100,
'height' => 100,
'rotation' => array('opt' => 'ringOneRotation', 'fallback' => array('0')),
'offsetX' => array('opt' => null, 'fallback' => array('0')),
'offsetY' => array('opt' => null, 'fallback' => array('0')),
),
array(
'group' => 'ringTwo',
'values_opt' => 'ringTwo',
'width' => 100,
'height' => 100,
'rotation' => array('opt' => 'ringTwoRotation', 'fallback' => array('0')),
'offsetX' => array('opt' => null, 'fallback' => array('0')),
'offsetY' => array('opt' => null, 'fallback' => array('0')),
),
array(
'group' => 'ringThree',
'values_opt' => 'ringThree',
'width' => 100,
'height' => 100,
'rotation' => array('opt' => 'ringThreeRotation', 'fallback' => array('0')),
'offsetX' => array('opt' => null, 'fallback' => array('0')),
'offsetY' => array('opt' => null, 'fallback' => array('0')),
),
array(
'group' => 'ringFour',
'values_opt' => 'ringFour',
'width' => 100,
'height' => 100,
'rotation' => array('opt' => 'ringFourRotation', 'fallback' => array('0')),
'offsetX' => array('opt' => null, 'fallback' => array('0')),
'offsetY' => array('opt' => null, 'fallback' => array('0')),
),
array(
'group' => 'ringFive',
'values_opt' => 'ringFive',
'width' => 100,
'height' => 100,
'rotation' => array('opt' => 'ringFiveRotation', 'fallback' => array('0')),
'offsetX' => array('opt' => null, 'fallback' => array('0')),
'offsetY' => array('opt' => null, 'fallback' => array('0')),
),
),
'defaults' => array(
'ring' => array('container'),
'ringColor' => array('ffd54f', '64b5f6', '4dd0e1', 'ff8a65', '9575cd', '81c784', '7986cb', '4fc3f7', 'aed581', 'dce775', 'ffb74d', 'f06292', 'ba68c8', 'e57373', '4db6ac', 'fff176'),
'ringFive' => array('full'),
'ringFiveRotation' => array('-180', '180'),
'ringFour' => array('quarter', 'half'),
'ringFourRotation' => array('-180', '180'),
'ringOne' => array('half', 'quarter'),
'ringOneRotation' => array('-180', '180'),
'ringRotation' => array('-180', '180'),
'ringThree' => array('quarter', 'half'),
'ringThreeRotation' => array('-180', '180'),
'ringTwo' => array('quarter', 'half'),
'ringTwoRotation' => array('-180', '180'),
),
'groups' => array(
'ring' => array(
'container' => '@@k:ringOne@@@@k:ringTwo@@@@k:ringThree@@@@k:ringFour@@@@k:ringFive@@<g transform="matrix(1 0 0 -1 0 100)">@@k:ringOne@@</g><g transform="matrix(1 0 0 -1 0 100)">@@k:ringTwo@@</g><g transform="matrix(1 0 0 -1 0 100)">@@k:ringThree@@</g><g transform="matrix(1 0 0 -1 0 100)">@@k:ringFour@@</g><g transform="matrix(1 0 0 -1 0 100)">@@k:ringFive@@</g><circle cx="50" cy="50" r="45" stroke="#fff" stroke-opacity=".25" stroke-width="10" style="mix-blend-mode:lighten"/><circle cx="50" cy="50" r="25" stroke="#fff" stroke-opacity=".25" stroke-width="10" style="mix-blend-mode:lighten"/><circle cx="50" cy="50" r="10" fill="#fff" fill-opacity=".25" style="mix-blend-mode:lighten"/>',
),
'ringOne' => array(
'half' => '<path d="M90 50h10c0-27.614-22.386-50-50-50S0 22.386 0 50h10c0-22.091 17.909-40 40-40s40 17.909 40 40Z" fill="@@c:ring@@"/>',
'quarter' => '<path d="M50 10V0C22.386 0 0 22.386 0 50h10c0-22.091 17.909-40 40-40Z" fill="@@c:ring@@"/>',
'eighth' => '<path d="M21.716 21.716C14.477 28.954 10 38.954 10 50H0c0-13.807 5.596-26.307 14.645-35.355l7.07 7.07Z" fill="@@c:ring@@"/>',
'full' => '<circle cx="50" cy="50" r="45" stroke="@@c:ring@@" stroke-width="10"/>',
),
'ringTwo' => array(
'eighth' => '<path d="M20 50c0-8.284 3.358-15.784 8.787-21.213l-7.071-7.071C14.477 28.954 10 38.954 10 50h10Z" fill="@@c:ring@@"/>',
'quarter' => '<path d="M50 10c-22.091 0-40 17.909-40 40h10c0-16.569 13.431-30 30-30V10Z" fill="@@c:ring@@"/>',
'half' => '<path d="M90 50c0-22.091-17.909-40-40-40S10 27.909 10 50h10c0-16.569 13.431-30 30-30 16.569 0 30 13.431 30 30h10Z" fill="@@c:ring@@"/>',
'full' => '<circle cx="50" cy="50" r="35" stroke="@@c:ring@@" stroke-width="10"/>',
),
'ringThree' => array(
'eighth' => '<path d="M30 50a19.937 19.937 0 0 1 5.858-14.142l-7.071-7.071C23.357 34.216 20 41.716 20 50h10Z" fill="@@c:ring@@"/>',
'quarter' => '<path d="M50 20c-16.569 0-30 13.431-30 30h10c0-11.046 8.954-20 20-20V20Z" fill="@@c:ring@@"/>',
'half' => '<path d="M80 50c0-16.569-13.431-30-30-30-16.569 0-30 13.431-30 30h10c0-11.046 8.954-20 20-20s20 8.954 20 20h10Z" fill="@@c:ring@@"/>',
'full' => '<circle cx="50" cy="50" r="25" stroke="@@c:ring@@" stroke-width="10"/>',
),
'ringFour' => array(
'eighth' => '<path d="M40 50a9.97 9.97 0 0 1 2.929-7.071l-7.071-7.071A19.937 19.937 0 0 0 30 50h10Z" fill="@@c:ring@@"/>',
'quarter' => '<path d="M50 30c-11.046 0-20 8.954-20 20h10c0-5.523 4.477-10 10-10V30Z" fill="@@c:ring@@"/>',
'half' => '<path d="M70 50c0-11.046-8.954-20-20-20s-20 8.954-20 20h10c0-5.523 4.477-10 10-10s10 4.477 10 10h10Z" fill="@@c:ring@@"/>',
'full' => '<circle cx="50" cy="50" r="15" stroke="@@c:ring@@" stroke-width="10"/>',
),
'ringFive' => array(
'eighth' => '<path d="m42.929 42.929 7.07 7.07H40a9.97 9.97 0 0 1 2.93-7.07Z" fill="@@c:ring@@"/>',
'quarter' => '<path d="M50 40v10H40c0-5.523 4.477-10 10-10Z" fill="@@c:ring@@"/>',
'half' => '<path d="M60 50c0-5.523-4.477-10-10-10s-10 4.477-10 10h20Z" fill="@@c:ring@@"/>',
'full' => '<circle cx="50" cy="50" r="10" fill="@@c:ring@@"/>',
),
),
);