Skip to content

melon.noise

garryspins edited this page Feb 27, 2026 · 3 revisions

melon.noise


client link

Handles noise generation and materials
melon

Functions

melon.noise.Draw

client link
melon.noise.Draw(x: number, y: number, w: number, h: number, xoff: number, yoff: number)

Argument and Return information

Arguments

# Name Type Description
1 x number X Coord
2 y number Y Coord
3 w number Width
4 h number Height
5 xoff number X Offset
6 yoff number Y Offset

Draws the noise material with the given offsets

melon.noise.DrawRandomPixel

client link internal
melon.noise.DrawRandomPixel()

Adds a pixel to the material

melon.noise.GetMaterial

client link
melon.noise.GetMaterial() -> IMaterial

Argument and Return information

Returns

# Name Type Description
1 noise IMaterial The Noise Material

Gets the noise material generated

Clone this wiki locally