C Library Functions - clear (3)
NAME
clear(3f) - [M_pixel] clear background to current color or specified
color index
(LICENSE:PD)
CONTENTS
Synopsis
Description
Options
Examples
Author
License
SYNOPSIS
definition:
subroutine clear(indx)
integer,intent(in),optional :: indx
DESCRIPTION
Clears the screen to the current color or to color specified
OPTIONS
|
INDX |
color index to set pixel array to. Optional
|
|
EXAMPLES
Sample program
program demo_clear
use :: M_pixel
use :: M_pixel__writegif, only : writegif
implicit none
real,parameter :: x=400.0, y=400.0
call prefsize(int(x), int(y)) ! set up drawing surface
call vinit()
call color(1)
call linewidth(300)
! clear a circle and rectangle in default window and viewport
call rect(0.0,0.0,x,y)
call circle(x/2.0,y/2.0,x/2.0)
! now clear screen to current color
call color(3)
call clear()
! gif should be blank
call writegif(clear.3m_pixel.gif,P_pixel,P_colormap)
call execute_command_line(display clear.3m_pixel.gif)
call vexit()
end program demo_clear
AUTHOR
John S. Urban
LICENSE
Public Domain
| Nemo Release 3.1 | clear (3) | June 29, 2025 |
Generated by manServer 1.08 from 92c2db82-eb44-4149-aac9-a31e4299c3ca using man macros.