import colors from '../colors'
import svg from '../shapes'
export const base = 8
export const baseColors = 8
export const size = 24
export const total = Math.pow(base, 3) * Math.pow(baseColors, 3)
export let id = 0
function ri(total) {
return Math.floor(Math.random() * total)
}
export function random() {
// return `${ri(base)}${ri(baseColors)}${ri(base)}${ri(baseColors)}${ri(base)}${ri(baseColors)}`
return Math.floor(Math.random() * total + total).toString(base).substring(1)
}
export function outer(id, width) {
return ``
}
export function inner(value) {
const clipA = `clip-a-${id}`
const clipB = `clip-b-${id}`
const urlA = `url(#${clipA})`
const urlB = `url(#${clipB})`
const half = size / 2
++id
return ``
+ ``
+ `${svg.body[value[0]]}`
+ `${svg.body[value[0]]}`
+ `${svg.eyes[value[2]]}`
+ `${svg.eyes[value[2]]}`
+ `${svg.mouth[value[4]]}`
+ `${svg.mouth[value[4]]}`
}