Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 2.17 KB

README.md

File metadata and controls

64 lines (44 loc) · 2.17 KB

pixelmap-functions

Functions for pixel manipulation.

Usage

Include pixelmapFunctions.min.js

<script src="pixelmapFunctions.min.js"></script>
var funcs = pixelmapFunctions

// EXAMPLE
funcs.name($R, $G, $B, $A)

// FUNCTIONS
funcs.invert(...)
funcs.arithmeticMean(...)
funcs.sepia(...)
funcs.sine(...)
funcs.sineAbsolute(...)
funcs.squareRoot(...)
funcs.cubeRoot(...)
funcs.sigmoidRound(...)
funcs.modeRGB(...) // INPUT = OUTPUT
funcs.modeRBG(...)
funcs.modeGRB(...)
funcs.modeGBR(...)
funcs.modeBGR(...)
funcs.modeBRG(...)

Graphs

View on Desmos

Functions

.invert .arithmeticMean .sepia
.sine .sineAbsolute .squareRoot .cubeRoot .sigmoidRound

.modeRGB .modeRBG .modeGRB .modeGBR .modeBRG .modeBGR

Example

Related

License

MIT