Generate image: white noise NOTE: It requires GetRandomValue(), defined in [rcore]
// Generate a 128x128 white noise image (50% white pixels) img = raylib.GenImageWhiteNoise(128, 128, 0.5) tex = raylib.LoadTextureFromImage(img) raylib.UnloadImage img raylib.BeginDrawing raylib.ClearBackground raylib.BLACK raylib.DrawTexture tex, 0, 0, raylib.WHITE raylib.EndDrawing raylib.UnloadTexture tex
There was an error while loading. Please reload this page.