_TITLE "So how do you like b's" 'B+ 2019-03-06 '2020-05-13 add smile
drawFace
angle
= _ATAN2(my
- 240, mx
- 320) FillCircle mx + i * 3, my + i * 3, 5, bc
FillCircle mx - 15 + 20, my + 10, 8, 7
FillCircle mx + 8 + 20, my + 5, 8, 7
x1
= 320 - 75 + 37 / 2 * COS(angle
) y1
= 240 + 37 / 2 * SIN(angle
) x2
= 320 + 75 + 37 / 2 * COS(angle
) FillCircle x1, y1, 37 / 2, 0
FillCircle x2, y1, 37 / 2, 0
FillCircle 320, 240, 150, 14 '<<<<<<<<<<<<<<<<< works for qb color numbers as well as rgb
FillCircle 320 - 75, 240, 37, 9
FillCircle 320 + 75, 240, 37, 9
'FillCircle 320, 240 + 80, 20, 12
arc
320, 240, 110, _PI / 2 - smile
* mw
/ 100, _PI / 2 + smile
* mw
/ 100, 12
'fill circle
RadiusError = -Radius
X = Radius
Y = 0
' Draw the middle span here so we don't draw it twice in the main loop,
' which would be a problem with blending turned on.
LINE (CX
- X
, CY
)-(CX
+ X
, CY
), C
, BF
RadiusError = RadiusError + Y * 2 + 1
LINE (CX
- Y
, CY
- X
)-(CX
+ Y
, CY
- X
), C
, BF
LINE (CX
- Y
, CY
+ X
)-(CX
+ Y
, CY
+ X
), C
, BF
X = X - 1
RadiusError = RadiusError - X * 2
Y = Y + 1
LINE (CX
- X
, CY
- Y
)-(CX
+ X
, CY
- Y
), C
, BF
LINE (CX
- X
, CY
+ Y
)-(CX
+ X
, CY
+ Y
), C
, BF
'use radians
'x, y origin, r = radius, c = color
'raStart is first angle clockwise from due East = 0 degrees
' arc will start drawing there and clockwise until raStop angle reached
arc x
, y
, r
, raStart
, _PI(2), c
arc x, y, r, 0, raStop, c
' modified to easier way suggested by Steve
'Why was the line method not good? I forgot.
al
= _PI * r
* r
* (raStop
- raStart
) / _PI(2) CIRCLE (x
+ r
* COS(a
), y
+ r
* SIN(a
)), 3, c
'<<< modify for smile