Fortraneries/Fraktalism/julia.f90

33 lines
763 B
Fortran
Raw Normal View History

2022-02-12 21:00:57 +01:00
!
! this is the main programm
!
!-----------------------------------------------------
program julia
use spitpgm
use fraktals
implicit none
integer, dimension(640, 480) :: picz
integer :: argc
2022-02-12 23:27:59 +01:00
character(200) :: filename, string
real :: cx, cy
2022-02-12 21:00:57 +01:00
argc = IARGC()
2022-02-12 23:27:59 +01:00
if (3 .NE. argc) then
STOP ": JULIA PROGGY NEED PARAMETERS"
2022-02-12 21:00:57 +01:00
endif
call getarg(1, filename)
2022-02-12 23:27:59 +01:00
call getarg(2, string) ; read (string, *) cx
call getarg(3, string) ; read (string, *) cy
2022-02-12 21:00:57 +01:00
2022-02-12 23:27:59 +01:00
call simple_julia(picz, cx, cy, 120)
call spit_as_pgm_8(picz, trim(filename))
2022-02-12 21:00:57 +01:00
end program
!-----------------------------------------------------