/**************************************************
* File: smileyface_snapshot.c
* A snapshot for a smiley face 
* The output is for display of a smiley face.
* (1) Run this program in Ch as follows:
*       smileyface_snapshotanim.c | qanimate
*                 or
*       smileyface_snapshotanim.c > tmp1.qnm
*       qanimate tmp1.qnm
**************************************************/
#include <stdio.h>
#include <math.h>

int main() {
    double t, t0 = 0.0 , tf = 9 ;
    
    /* A comment line starting with # */
    printf("# qanimate data for smiley face\n");
    /* The title displayed on the animation */
    printf("title \"Smiley Face\"\n");
    printf("fixture\n");
    /* The primitives following fixture */
    printf("circle %f %f %f fill blue \n", -0.4, 0.4, 0.2);
    printf("circle %f %f %f fill blue \n", 0.4, 0.4, 0.2);
    t = 4;
    printf("arc %f %f %f %f %f %f fill white \n", 0.0, -0.2, t*0.1, 1.0, 179.5 , 180.0);
    printf("arc %f %f %f %f %f %f fill blue \n", 0.0, -0.2, 1.0, 1.0, 179.5 , 180.0);
    printf("circle %f %f %f fill yellow \n", 0.0, 0.0, 1.0);
    return 0;
}
