-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathface.js
More file actions
37 lines (35 loc) · 863 Bytes
/
Copy pathface.js
File metadata and controls
37 lines (35 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import {BackgroundCircle} from './background-circle'
import{Eyes} from '.Eyes'
import {Mouth} from './Mouth'
import { FaceContainer } from './facecontainer'
import {Face} from './face.js'
export const face=({
width,
height,
centerX,
centerY,
strokeWidth,
eyeOffsetX,
eyeOffsetY,
eyeRadius,
mouthRadius})=>(
<Face
width={width}
height={height}
centerX = {width/2}
centerY ={height/2}
strokeWidth ={10}
eyeOffsetX = {90}
eyeOffsetY ={100}
eyeRadius= {50}
mouthWidth ={20}
mouthRadius ={200}>
<FaceContainer
width={width} height={height}
centerX={centerX} centerY={centerY}>
<BackgroundCircle radius={centerY-strokeWidth/2} strokeWidth={strokeWidth}/>
<Eyes eyeOffsetX={eyeOffsetX} eyeOffsetY={eyeOffsetY} eyeRadius={eyeRadius}/>
<Mouth />
</FaceContainer>
</Face>
);