arcan-fe Wiki
Scriptable frontend for media applications.
Status: Beta
Brought to you by:
bjornstahl
declaration:
function random_surface(width, height) => vid or BADID
Generates a pseudo-random (poor) image in the interval (20-255) with the same value in all colour-channels. Will only ever return BADID when out of memory or VIDs in the current context.
** future changes / deprecation: **
Mostly used as a quick hack and should ideally be replaced with a proper and quick noise- function where you can specify the frequency and number of octaves wanted. Then it can be used for lots of tasty 3d tricks.
related functions:
[fill_surface]
caveats: