use the render procedure
This commit is contained in:
@@ -7,10 +7,15 @@
|
||||
program starfield
|
||||
use genplotting
|
||||
implicit none
|
||||
|
||||
character(*), parameter :: scratch = "WS/starfield.scratch"
|
||||
|
||||
write (0, '(A)') "----[ genplotting starfield ]----"
|
||||
call genp_init (0, 'WS/starfield.scratch')
|
||||
call do_starfield (200)
|
||||
call genp_init (0, scratch)
|
||||
call do_starfield (300)
|
||||
call genp_end (0)
|
||||
call genp_do_render(scratch, "WS/a.tga", 512, 512)
|
||||
|
||||
contains
|
||||
! ---------------------------------------------------------
|
||||
subroutine plot_a_star(at_x, at_y, sz, color)
|
||||
@@ -20,7 +25,7 @@ subroutine plot_a_star(at_x, at_y, sz, color)
|
||||
integer :: idx
|
||||
real :: rad, xv, yv
|
||||
|
||||
write(0, '("plot a star ", 2F8.3)') at_x, at_y
|
||||
write(0, '("plot a star at ", 2F8.3)') at_x, at_y
|
||||
call genp_set_offset(at_x, at_y)
|
||||
do idx=0, 360, 36
|
||||
! convert index to radians
|
||||
|
||||
Reference in New Issue
Block a user