Files

109 lines
5.4 KiB
PHP
Raw Permalink Normal View History

<?php
return array(
'name' => 'shapes',
'meta' => array(
'title' => 'Shapes',
'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' => true,
'has_post_create' => false,
'is_initials' => false,
'attr_pairs' => array(
array('viewBox', '0 0 100 100'),
array('fill', 'none'),
array('shape-rendering', 'auto'),
),
'bg_colors' => array('0a5b83', '1c799f', '69d2e7', 'f1f4dc', 'f88c49'),
'bg_type' => array('solid'),
'bg_rotation' => array('0', '360'),
'body_template' => '<g transform="matrix(1.2 0 0 1.2 -10 -10)">@@k:shape1@@</g><g transform="matrix(.8 0 0 .8 10 10)">@@k:shape2@@</g><g transform="matrix(.4 0 0 .4 30 30)">@@k:shape3@@</g>',
'pick_order' => array('shape1', 'shape2', 'shape3'),
'bool_order' => array(),
'color_order' => array(
'shape1' => 'shape1Color',
'shape2' => 'shape2Color',
'shape3' => 'shape3Color',
),
'pc_has_ints' => true,
'pc_meta' => array(
array(
'group' => 'shape1',
'values_opt' => 'shape1',
'width' => 100,
'height' => 100,
'rotation' => array('opt' => 'shape1Rotation', 'fallback' => array('0')),
'offsetX' => array('opt' => 'shape1OffsetX', 'fallback' => array('0')),
'offsetY' => array('opt' => 'shape1OffsetY', 'fallback' => array('0')),
),
array(
'group' => 'shape2',
'values_opt' => 'shape2',
'width' => 100,
'height' => 100,
'rotation' => array('opt' => 'shape2Rotation', 'fallback' => array('0')),
'offsetX' => array('opt' => 'shape2OffsetX', 'fallback' => array('0')),
'offsetY' => array('opt' => 'shape2OffsetY', 'fallback' => array('0')),
),
array(
'group' => 'shape3',
'values_opt' => 'shape3',
'width' => 100,
'height' => 100,
'rotation' => array('opt' => 'shape3Rotation', 'fallback' => array('0')),
'offsetX' => array('opt' => 'shape3OffsetX', 'fallback' => array('0')),
'offsetY' => array('opt' => 'shape3OffsetY', 'fallback' => array('0')),
),
),
'defaults' => array(
'backgroundColor' => array('0a5b83', '1c799f', '69d2e7', 'f1f4dc', 'f88c49'),
'shape1' => array('rectangleFilled', 'ellipseFilled', 'polygonFilled'),
'shape1Color' => array('0a5b83', '1c799f', '69d2e7', 'f1f4dc', 'f88c49'),
'shape1OffsetX' => array('-65', '65'),
'shape1OffsetY' => array('-45', '45'),
'shape1Rotation' => array('-160', '160'),
'shape2' => array('rectangleFilled', 'ellipseFilled', 'polygonFilled', 'line'),
'shape2Color' => array('0a5b83', '1c799f', '69d2e7', 'f1f4dc', 'f88c49'),
'shape2OffsetX' => array('-40', '40'),
'shape2OffsetY' => array('-40', '40'),
'shape2Rotation' => array('-180', '180'),
'shape3' => array('rectangle', 'rectangleFilled', 'ellipseFilled', 'ellipse', 'polygonFilled', 'polygon', 'line'),
'shape3Color' => array('0a5b83', '1c799f', '69d2e7', 'f1f4dc', 'f88c49'),
'shape3OffsetX' => array('-25', '25'),
'shape3OffsetY' => array('-25', '25'),
'shape3Rotation' => array('-180', '180'),
),
'groups' => array(
'shape1' => array(
'rectangle' => '<path fill-rule="evenodd" clip-rule="evenodd" d="M90 10H10v80h80V10ZM0 0v100h100V0H0Z" fill="@@c:shape1@@"/>',
'rectangleFilled' => '<path d="M0 0h100v100H0V0Z" fill="@@c:shape1@@"/>',
'ellipseFilled' => '<path d="M100 50A50 50 0 1 1 0 50a50 50 0 0 1 100 0Z" fill="@@c:shape1@@"/>',
'ellipse' => '<path fill-rule="evenodd" clip-rule="evenodd" d="M50 90a40 40 0 1 0 0-80 40 40 0 0 0 0 80Zm0 10A50 50 0 1 0 50 0a50 50 0 0 0 0 100Z" fill="@@c:shape1@@"/>',
'polygonFilled' => '<path d="m50 7 50 86.6H0L50 7Z" fill="@@c:shape1@@"/>',
'polygon' => '<path fill-rule="evenodd" clip-rule="evenodd" d="M50 7 0 93.6h100L50 7Zm0 20L17.3 83.6h65.4L50 27Z" fill="@@c:shape1@@"/>',
'line' => '<path fill="@@c:shape1@@" d="M45-150h10v400H45z"/>',
),
'shape2' => array(
'rectangle' => '<path fill-rule="evenodd" clip-rule="evenodd" d="M90 10H10v80h80V10ZM0 0v100h100V0H0Z" fill="@@c:shape2@@"/>',
'rectangleFilled' => '<path d="M0 0h100v100H0V0Z" fill="@@c:shape2@@"/>',
'ellipseFilled' => '<path d="M100 50A50 50 0 1 1 0 50a50 50 0 0 1 100 0Z" fill="@@c:shape2@@"/>',
'ellipse' => '<path fill-rule="evenodd" clip-rule="evenodd" d="M50 90a40 40 0 1 0 0-80 40 40 0 0 0 0 80Zm0 10A50 50 0 1 0 50 0a50 50 0 0 0 0 100Z" fill="@@c:shape2@@"/>',
'polygonFilled' => '<path d="m50 7 50 86.6H0L50 7Z" fill="@@c:shape2@@"/>',
'polygon' => '<path fill-rule="evenodd" clip-rule="evenodd" d="M50 7 0 93.6h100L50 7Zm0 20L17.3 83.6h65.4L50 27Z" fill="@@c:shape2@@"/>',
'line' => '<path fill="@@c:shape2@@" d="M45-150h10v400H45z"/>',
),
'shape3' => array(
'rectangle' => '<path fill-rule="evenodd" clip-rule="evenodd" d="M90 10H10v80h80V10ZM0 0v100h100V0H0Z" fill="@@c:shape3@@"/>',
'rectangleFilled' => '<path d="M0 0h100v100H0V0Z" fill="@@c:shape3@@"/>',
'ellipseFilled' => '<path d="M100 50A50 50 0 1 1 0 50a50 50 0 0 1 100 0Z" fill="@@c:shape3@@"/>',
'ellipse' => '<path fill-rule="evenodd" clip-rule="evenodd" d="M50 90a40 40 0 1 0 0-80 40 40 0 0 0 0 80Zm0 10A50 50 0 1 0 50 0a50 50 0 0 0 0 100Z" fill="@@c:shape3@@"/>',
'polygonFilled' => '<path d="m50 7 50 86.6H0L50 7Z" fill="@@c:shape3@@"/>',
'polygon' => '<path fill-rule="evenodd" clip-rule="evenodd" d="M50 7 0 93.6h100L50 7Zm0 20L17.3 83.6h65.4L50 27Z" fill="@@c:shape3@@"/>',
'line' => '<path fill="@@c:shape3@@" d="M45-150h10v400H45z"/>',
),
),
);