Uses of Class
net.mtrop.doom.graphics.Palette
Package
Description
Contains abstracts and implementations of graphic types.
Contains utility classes.
-
Uses of Palette in net.mtrop.doom.graphics
Modifier and TypeMethodDescriptionPalette.addColor
(int index, double scalar, int argb) Sets the color of a specific index in the Palette by additively blending it with another color.Palette.addColor
(int index, double scalar, int red, int green, int blue) Sets the color of a specific index in the Palette by additively blending it with another color.Palette.addColor
(int startIndex, int endIndex, double scalar, int argb) Sets the color of a range of indices in the Palette by additively blending it with another color.Palette.addColor
(int startIndex, int endIndex, double scalar, int red, int green, int blue) Sets the color of a range of indices in the Palette by additively blending it with another color.Palette.copy()
Makes a copy of this palette.Palette.mixColor
(int index, double scalar, int argb) Sets the color of a specific index in the Palette by blending it with another color.Palette.mixColor
(int index, double scalar, int red, int green, int blue) Sets the color of a specific index in the Palette by blending it with another color.Palette.mixColor
(int startIndex, int endIndex, double scalar, int argb) Sets the color of a range of indices in the Palette by blending it with another color.Palette.mixColor
(int startIndex, int endIndex, double scalar, int red, int green, int blue) Sets the color of a range of indices in the Palette by blending it with another color.Palette.multiplyColor
(int index, double scalar, int argb) Sets the color of a specific index in the Palette by multiplicatively blending it with another color.Palette.multiplyColor
(int index, double scalar, int red, int green, int blue) Sets the color of a specific index in the Palette by multiplicatively blending it with another color.Palette.multiplyColor
(int startIndex, int endIndex, double scalar, int argb) Sets the color of a range of indices in the Palette by multiplicatively blending it with another color.Palette.multiplyColor
(int startIndex, int endIndex, double scalar, int red, int green, int blue) Sets the color of a range of indices in the Palette by multiplicatively blending it with another color.Palette.saturateColor
(int index, double scalar) Sets the color of a specific index in the Palette by saturating/desaturating it.Palette.saturateColor
(int startIndex, int endIndex, double scalar) Sets the color of a range of indices in the Palette by saturating/desaturating it.Palette.setColor
(int index, int argb) Sets the color of a specific index in the Palette.Palette.setColor
(int startIndex, int endIndex, int argb) Sets the color of a range of indices in the Palette.Palette.setColor
(int index, int red, int green, int blue) Sets the color of a specific index in the Palette.Palette.setColor
(int startIndex, int endIndex, int red, int green, int blue) Sets the color of a range of indices in the Palette.Palette.setColorGradient
(int startIndex, int endIndex, int argb0, int argb1) Sets the color of a range of indices in the Palette by creating a linear color gradient.Palette.setColorGradient
(int startIndex, int endIndex, int red0, int green0, int blue0, int red1, int green1, int blue1) Sets the color of a range of indices in the Palette by creating a linear color gradient.Palette.subtractColor
(int index, double scalar, int argb) Sets the color of a specific index in the Palette by subtractively blending it with another color.Palette.subtractColor
(int index, double scalar, int red, int green, int blue) Sets the color of a specific index in the Palette by subtractively blending it with another color.Palette.subtractColor
(int startIndex, int endIndex, double scalar, int argb) Sets the color of a range of indices in the Palette by subtractively blending it with another color.Palette.subtractColor
(int startIndex, int endIndex, double scalar, int red, int green, int blue) Sets the color of a range of indices in the Palette by subtractively blending it with another color. -
Uses of Palette in net.mtrop.doom.util
Modifier and TypeFieldDescriptionstatic final Palette
GraphicUtils.DOOM
Default Doom palette.static final Palette
GraphicUtils.HERETIC
Default Heretic palette.static final Palette
GraphicUtils.HEXEN
Default Hexen palette.static final Palette
GraphicUtils.STRIFE
Default Strife palette.Modifier and TypeMethodDescriptionstatic Flat
GraphicUtils.createFlat
(BufferedImage image, Palette palette) Creates aFlat
from aBufferedImage
.static Flat
GraphicUtils.createFlat
(BufferedImage image, Palette palette, Colormap colormap) Creates aFlat
from aBufferedImage
.static Flat
GraphicUtils.createFlat
(PNGPicture pngPicture, Palette palette) Creates aFlat
from aPNGPicture
.static Flat
GraphicUtils.createFlat
(PNGPicture pngPicture, Palette palette, Colormap colormap) Creates aFlat
from aPNGPicture
.static BufferedImage
GraphicUtils.createImage
(Flat flat, Palette palette) Creates aBufferedImage
from aFlat
.static BufferedImage
GraphicUtils.createImage
(Flat flat, Palette palette, Colormap colormap) Creates aBufferedImage
from aFlat
.static BufferedImage
GraphicUtils.createImage
(Picture picture, Palette palette) Creates aBufferedImage
from aPicture
.static BufferedImage
GraphicUtils.createImage
(Picture picture, Palette palette, Colormap colormap) Creates aBufferedImage
from aFlat
.static Picture
GraphicUtils.createPicture
(BufferedImage image, Palette palette) Creates aPicture
from aBufferedImage
.static Picture
GraphicUtils.createPicture
(BufferedImage image, Palette palette, Colormap colormap) Creates aPicture
from aBufferedImage
.static Picture
GraphicUtils.createPicture
(PNGPicture pngPicture, Palette palette) Creates aPicture
from aBufferedImage
.static Picture
GraphicUtils.createPicture
(PNGPicture pngPicture, Palette palette, Colormap colormap) Creates aPicture
from aBufferedImage
.static PNGPicture
GraphicUtils.createPNGImage
(Picture picture, Palette palette) Creates aPNGPicture
from aPicture
.static PNGPicture
GraphicUtils.createPNGImage
(Picture picture, Palette palette, Colormap colormap) Creates aPNGPicture
from aPicture
.static void
GraphicUtils.setColormap
(Colormap colormap, Palette target, Palette sampled) Sets the indices of aColormap
by attempting to match colors in a palette from other colors in a different palette.