import { default as p5ex } from '../p5exInterface'; /** * Draws a sine wave. * @param p * @param drawingLength * @param peakToPeakAmplitude * @param waveLength */ export declare function drawSineWave(p: p5ex, drawingLength: number, peakToPeakAmplitude: number, waveLength: number): void; /** * Set color to the specified pixel. * Should be used in conjunction with loadPixels() and updatePixels(). * @param renderer - Instance of either p5 or p5.Graphics. * @param x - The x index of the pixel. * @param y - The y index of the pixel. * @param red - The red value (0 - 255). * @param green - The green value (0 - 255). * @param blue - The blue value (0 - 255). * @param pixelDensity - If not specified, renderer.pixelDensity() will be called. */ export declare function setPixel(renderer: p5 | p5.Graphics, x: number, y: number, red: number, green: number, blue: number, alpha: number, pixelDensity?: number): void; /** * Lerp color to the specified pixel. The alpha channel remains unchanged. * Should be used in conjunction with loadPixels() and updatePixels(). * @param renderer - Instance of either p5 or p5.Graphics. * @param x - The x index of the pixel. * @param y - The y index of the pixel. * @param red - The red value (0 - 255). * @param green - The green value (0 - 255). * @param blue - The blue value (0 - 255). * @param pixelDensity - If not specified, renderer.pixelDensity() will be called. * @param lerpRatio - The lerp ratio (0 - 1). If 1, the color will be replaced. */ export declare function lerpPixel(renderer: p5 | p5.Graphics, x: number, y: number, red: number, green: number, blue: number, pixelDensity?: number, lerpRatio?: number): void; /** * Fill the canvas or graphics (according to p.currentRenderer) with gradation. * @param p * @param backgroundColor * @param fromColor * @param toColor * @param lerpRatioExponent */ export declare function gradationBackground(p: p5ex, backgroundColor: p5.Color, fromColor: p5.Color, toColor: p5.Color, lerpRatioExponent?: number): void; /** * Sets the specified color (default: black) to each pixel with a random alpha value. * @param renderer - Instance of either p5 or p5.Graphics. * @param {number} maxAlpha - The max value of alpha channel (1 - 255). * @param {boolean} [blend] - Set true for blending, false for replacing. * @param {number} [red] * @param {number} [green] * @param {number} [blue] */ export declare function applyRandomTexture(renderer: p5 | p5.Graphics, maxAlpha: number, blend?: boolean, red?: number, green?: number, blue?: number): p5 | p5.Graphics;