trying to make a gif89a...

This commit is contained in:
tth
2022-02-12 23:27:59 +01:00
parent a41a630889
commit 123c87b126
5 changed files with 58 additions and 14 deletions

View File

@@ -3,24 +3,24 @@ module fraktals
contains
!-----------------------------------------------------
subroutine simple_julia(pic, cx, cy)
subroutine simple_julia(pic, cx, cy, maxiter)
implicit none
integer, intent(inout), dimension (:,:) :: pic
real, intent(in) :: cx, cy
integer, intent(in) :: maxiter
integer :: ix, iy, width, height
real :: fx, fy
complex :: Z, C
integer :: iter, maxiter
integer :: iter
width = ubound(pic, 1)
height = ubound(pic, 2)
print *, "image size : ", width, height
! print *, "image size : ", width, height
! print *, "constante : ", cx, cy
maxiter = 500
C = complex(cx, cy)
print *, "C = ", C
! print *, "C = ", C
do ix = 1, width
fx = (float(ix) / (float(width)/4.0) - 2.0)