Functions for pixel manipulation.
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(...)
View on Desmos
.invert |
.arithmeticMean |
.sepia |
---|---|---|
.sine |
.sineAbsolute |
.squareRoot |
.cubeRoot |
.sigmoidRound |
---|---|---|---|---|
.modeRGB
.modeRBG
.modeGRB
.modeGBR
.modeBRG
.modeBGR