File: smile_f77.f

package info (click to toggle)
ygl 4.2e-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 772 kB
  • sloc: ansic: 8,724; makefile: 89; fortran: 55; sed: 20; sh: 19
file content (61 lines) | stat: -rw-r--r-- 1,310 bytes parent folder | download | duplicates (4)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
c     
c     smile_f77.f by Fred Hucht (C) 1993-2007.
c     Short and simple example program for FORTRAN bindings.
c     Compile with
c     make smile_f77 (uses f77 compiler)
c     or
c     make smile_f2c (uses f2c compiler)
c     
c     NOTE: This example uses the FORTRAN bindings from Ygl,
c           so most routine- and parameter-names are truncated
c           to six characters.
c     
c     $Id: smile_f77.f,v 3.3 2007-05-09 12:27:49+02 fred Exp $
c     
      program smile
      integer*4 win

      include "../irisgl/fgl.h"


      
      call prefsi(100, 100)
      win = winope('Smile!', 6)

c     write(*,*) win

c     The background
      call color(BLACK)
      call clear()

c     The face
      call color(RED)
      call circfi(50, 50, 40)
  
c     The eyes
      call color(WHITE)
      call circfi(30, 60, 10)
      call circfi(70, 60, 10)
      call color(BLACK)
      call circfi(30, 60,  5)
      call circfi(70, 60,  5)
      
c     The smile
      call arci(50, 50, 25, 2000, 3400)

c     The sleep
      call sleep(2)

c     The twinkle
      call color(RED)
      call circfi(30, 65, 10)
      call sleep(1)
      call color(WHITE)
      call circfi(30, 60, 10)
      call color(BLACK)
      call circfi(30, 60,  5)

c     The end
      call sleep(2)
      call gexit()
      end