Image noise: Difference between revisions

Content added Content deleted
Line 518: Line 518:


Generating random bits with the C core.stdc.stdlib.rand the performance becomes about the same of the C version.
Generating random bits with the C core.stdc.stdlib.rand the performance becomes about the same of the C version.

=={{header|Euler Math Toolbox}}==

Currently, Euler Math Toolbox does not have optimized routines to plot matrices with color information. The frames per second are consequently not really good.

<lang Euler Math Toolbox>
>function noiseimg () ...
$aspect(320,240); clg;
$count=0; now=time;
$repeat
$ plotrgb(intrandom(240,420,2)-1,[0,0,1024,1024]);
$ wait(0);
$ count=count+1;
$ until testkey();
$end;
$return count/(time-now);
$endfunction
>noiseimg
2.73544353263
</lang>


=={{header|F Sharp|F#}}==
=={{header|F Sharp|F#}}==