2023-01-02 00:28:52 +11:00
|
|
|
!-----------------------------------------------------
|
|
|
|
! JULIA
|
|
|
|
! =====
|
|
|
|
! this is the main program
|
|
|
|
!-----------------------------------------------------
|
|
|
|
|
|
|
|
program julia
|
|
|
|
|
|
|
|
use spitpgm
|
|
|
|
use JULIAS
|
2023-01-03 11:22:40 +11:00
|
|
|
use PIXRGB
|
2023-01-02 00:28:52 +11:00
|
|
|
|
|
|
|
implicit none
|
|
|
|
|
2023-01-03 11:22:40 +11:00
|
|
|
type(t_pixrgb), allocatable :: picz(:,:)
|
2023-01-02 00:28:52 +11:00
|
|
|
integer :: argc
|
|
|
|
character(200) :: filename, string
|
|
|
|
real :: cx, cy
|
|
|
|
|
|
|
|
argc = IARGC()
|
|
|
|
if (3 .NE. argc) then
|
|
|
|
STOP ": MKJULIA PROGGY NEED 3 PARAMETERS !"
|
|
|
|
endif
|
|
|
|
|
|
|
|
call getarg(1, filename)
|
|
|
|
call getarg(2, string) ; read (string, *) cx
|
|
|
|
call getarg(3, string) ; read (string, *) cy
|
|
|
|
|
2023-05-07 19:35:48 +11:00
|
|
|
allocate(picz(512, 342))
|
2023-01-03 11:22:40 +11:00
|
|
|
|
2024-02-11 07:55:04 +11:00
|
|
|
call julia_colormapped(picz, cx, cy, 2500)
|
2023-01-03 11:22:40 +11:00
|
|
|
call rgbpix_spit_as_pnm_8(picz, trim(filename))
|
2023-01-02 00:28:52 +11:00
|
|
|
|
2024-02-11 07:55:04 +11:00
|
|
|
contains
|
|
|
|
|
|
|
|
!-----------------------------------------------------
|
|
|
|
|
2023-01-02 00:28:52 +11:00
|
|
|
end program
|
|
|
|
|
|
|
|
!-----------------------------------------------------
|