Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Image-noise/Icon/image-noise.icon
Normal file
19
Task/Image-noise/Icon/image-noise.icon
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
link printf
|
||||
|
||||
procedure main()
|
||||
&window := open("B&W noise 320x240","g","size=320,240","bg=white","fg=black") |
|
||||
stop("Open window failed ")
|
||||
runtime := 10 # seconds to run
|
||||
sec := &now
|
||||
frames := 0
|
||||
until (&now - sec) >= runtime do {
|
||||
s := "320,#"
|
||||
every 1 to 240 & 1 to 320/4 do s ||:= ?"0123456789ABCDEF"
|
||||
DrawImage(0,0,s)
|
||||
frames +:= 1
|
||||
}
|
||||
sec := &now - sec
|
||||
printf("frames=%d, elapsed time=%r, fps=%r\n",frames,sec, frames/real(sec))
|
||||
Event() # wait for any window event
|
||||
close(&window)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue