Compare commits
No commits in common. "e099b398f3bcf645d32e506dfdf9374bf6e98f23" and "8ea11d110b0a89ae3a876ecebac990468ef3d27a" have entirely different histories.
e099b398f3
...
8ea11d110b
1
Fraktalism/.gitignore
vendored
1
Fraktalism/.gitignore
vendored
@ -2,7 +2,6 @@
|
|||||||
julia
|
julia
|
||||||
pickover
|
pickover
|
||||||
lorentz
|
lorentz
|
||||||
mkmandel
|
|
||||||
voxelize
|
voxelize
|
||||||
evolvopick
|
evolvopick
|
||||||
henon
|
henon
|
||||||
|
@ -17,7 +17,7 @@ fraktals.o: fraktals.f90 Makefile
|
|||||||
gfortran $(GFOPT) -c $<
|
gfortran $(GFOPT) -c $<
|
||||||
|
|
||||||
OBJDEP = mods/points3d.o mods/xperiment.o fraktals.o mods/fractcolmap.o
|
OBJDEP = mods/points3d.o mods/xperiment.o fraktals.o mods/fractcolmap.o
|
||||||
OBJS = $(OBJDEP) ../Modules/pixrgb.o ../Modules/spitpgm.o
|
OBJS = $(OBJDEP) ../Modules/spitpgm.o
|
||||||
|
|
||||||
# ---------------------------------------------
|
# ---------------------------------------------
|
||||||
|
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
!-----------------------------------------------------
|
!-----------------------------------------------------
|
||||||
! IMAGE PROCESSING
|
! IMAGE PROCESSING
|
||||||
!-----------------------------------------------------
|
!-----------------------------------------------------
|
||||||
!-
|
!-----------------------------------------------------
|
||||||
subroutine plotsomething(pic, start)
|
|
||||||
|
subroutine plotsomething(pic, start, cz)
|
||||||
! use cmplxmath
|
! use cmplxmath
|
||||||
! use imagetools
|
! use imagetools
|
||||||
use pixrgb
|
|
||||||
|
|
||||||
implicit none
|
implicit none
|
||||||
|
|
||||||
type(t_pixrgb), intent(inout), dimension (:,:) :: pic
|
integer, intent(inout), dimension (:,:) :: pic
|
||||||
complex, intent(in) :: start
|
complex, intent(in) :: start
|
||||||
! type (CenterMag), intent(in) :: cz
|
type (CenterMag), intent(in) :: cz
|
||||||
|
|
||||||
integer :: ix, iy, width, height
|
integer :: ix, iy, width, height
|
||||||
real :: fx, fy, mod2
|
real :: fx, fy, mod2
|
||||||
@ -23,12 +23,13 @@ subroutine plotsomething(pic, start)
|
|||||||
|
|
||||||
width = ubound(pic, 1)
|
width = ubound(pic, 1)
|
||||||
height = ubound(pic, 2)
|
height = ubound(pic, 2)
|
||||||
! print *, " pic size ", width, height
|
print *, " pic size ", width, height
|
||||||
print *, " start ", start
|
print *, " start ", start
|
||||||
|
call print_centermag(cz)
|
||||||
|
|
||||||
! initialise constants
|
! initialise constants
|
||||||
!
|
!
|
||||||
maxiter = 2500;
|
maxiter = 999;
|
||||||
|
|
||||||
! enter megaloop
|
! enter megaloop
|
||||||
!
|
!
|
||||||
@ -58,16 +59,17 @@ subroutine plotsomething(pic, start)
|
|||||||
iter = iter + 1
|
iter = iter + 1
|
||||||
!! print *, "ZA ITER ESCAPE", za, iter, escape
|
!! print *, "ZA ITER ESCAPE", za, iter, escape
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
if (escape) then
|
if (escape) then
|
||||||
pic(ix, iy)%r = mod(iter*22, 255)
|
pic(ix, iy) = mod(iter, 333)
|
||||||
pic(ix, iy)%b = mod(iter*7, 255)
|
|
||||||
else
|
else
|
||||||
pic(ix, iy)%g = mod(int(mod2 * 555), 200)
|
! esoteric computation here
|
||||||
! pic(ix, iy)%g = mod(iter, 255)
|
! pic(ix, iy) = mod(8*floor(mod2*11.11), 24)
|
||||||
! pic(ix, iy)%b = mod(iter*11, 255)
|
pic(ix, iy) = mod(iter, 222)
|
||||||
endif
|
endif
|
||||||
!-------------------------------------
|
!-------------------------------------
|
||||||
end do ! fin boucle sur X
|
end do ! fin boucle sur X
|
||||||
|
|
||||||
end do
|
end do
|
||||||
|
|
||||||
end
|
end
|
||||||
@ -77,44 +79,48 @@ end
|
|||||||
! this is the main programm
|
! this is the main programm
|
||||||
!
|
!
|
||||||
program mkmandel
|
program mkmandel
|
||||||
use pixrgb
|
|
||||||
|
use imagetools
|
||||||
|
|
||||||
implicit none
|
implicit none
|
||||||
|
|
||||||
interface
|
interface
|
||||||
subroutine plotsomething (pic, start)
|
subroutine plotsomething (pic, start, cz)
|
||||||
use pixrgb
|
use imagetools
|
||||||
type(t_pixrgb), intent(inout), dimension (:,:) :: pic
|
integer, intent(inout), dimension (:,:) :: pic
|
||||||
complex, intent(in) :: start
|
complex, intent(in) :: start
|
||||||
|
type (CenterMag), intent(in) :: cz
|
||||||
end subroutine plotsomething
|
end subroutine plotsomething
|
||||||
end interface
|
end interface
|
||||||
|
|
||||||
type(t_pixrgb), allocatable :: pic(:,:)
|
integer, dimension(512, 512) :: picz
|
||||||
|
type (CenterMag) :: cm
|
||||||
integer :: angle
|
integer :: angle
|
||||||
real :: radangle, radius
|
real :: radangle, radius
|
||||||
real :: stx, sty
|
real :: stx, sty
|
||||||
character (len=80) :: filename
|
character (len=80) :: filename
|
||||||
|
|
||||||
|
cm%cx = 0.0 ; cm%cy = 0.0 ; cm%mag = 3.0
|
||||||
|
picz = 0 ! clear screen
|
||||||
|
|
||||||
print *, "-------- making some mandelbrot -------"
|
print *, "-------- making some mandelbrot -------"
|
||||||
|
|
||||||
allocate(pic(800, 600))
|
do angle = 0, 1800
|
||||||
|
|
||||||
do angle = 0, 1200
|
|
||||||
|
|
||||||
call rgbpix_set_to_zero(pic)
|
|
||||||
|
|
||||||
radangle = float(angle) * 0.017453292522222
|
radangle = float(angle) * 0.017453292522222
|
||||||
radius = float(angle) / 2000.0
|
radius = float(angle) / 2000.0
|
||||||
write (filename, "(a, i5.5, a)") "frames/mandel/", angle, ".pnm"
|
write (filename, "(a, i5.5, a)") "img/", angle, ".pnm"
|
||||||
! filename = trim(filename)
|
! filename = trim(filename)
|
||||||
print *, "#### passe ", angle, radangle, trim(filename)
|
print *, "#### passe ", angle, radangle, trim(filename)
|
||||||
|
|
||||||
stx = radius * sin(radangle*3.9)
|
stx = radius * sin(radangle*4.0)
|
||||||
sty = radius * cos(radangle*3.3)
|
sty = radius * cos(radangle*3.0)
|
||||||
|
|
||||||
|
call plotsomething (picz, complex(stx, sty), cm)
|
||||||
|
call spitaspnm (picz, trim(filename))
|
||||||
|
|
||||||
call plotsomething (pic, complex(stx, sty))
|
|
||||||
call rgbpix_spit_as_pnm_8 (pic, trim(filename))
|
|
||||||
print *
|
print *
|
||||||
|
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
print *, "[DONE]"
|
print *, "[DONE]"
|
||||||
|
Loading…
Reference in New Issue
Block a user