All the LibGDX-based display code (primarily meant for text grids) is in this package.
Interface Summary Interface Description ICellVisibleA basic interface for any kind of object that has a symbolic representation and a color, here represented by a char and a packed float color. IPackedColorPanelCreated by Tommy Ettinger on 8/5/2017. SquidInput.KeyHandlerA single-method interface used to process "typed" characters, special characters produced by unusual keys, and modifiers that can affect them.
Class Summary Class Description AnimatedEntityA simple class that wraps an Actor with its grid position, animating state, and if it is a double-width Actor. ColorChangeImageAn Image that has multiple possible color tints that it cycles through over time. ColorChangeLabelA Label that changes its color automatically, taking its current color from a list such as a gradient. ColorNoiseCreated by Tommy Ettinger on 6/12/2017. DefaultResourcesDefault BitmapFonts, a sample image, "stretchable" fonts and icons, and a central RNG for use with LibGDX. FilterBatchA drop-in substitute for
SpriteBatchthat filters any colors used to tint text or images using a
IFilter, that all are meant to perform different changes to colors before they are created.
Filters.ChainFilter Filters.ColorizeFilterAn IFilter that is constructed with a color and makes any color it is told to alter have the same hue as the given color, have saturation that is somewhere between the given color's and the altered colors, and chiefly is distinguishable from other colors by value. Filters.DistinctRedGreenFilterAn IFilter that alters primarily-red and primarily-green colors so they can be more easily be distinguished by people with at least some forms of red-green color-blindness (deuteranopia should be handled well, protanopia very well, and tritanopia may not benefit at all). Filters.GammaCorrectFilterAn IFilter that performs a brightness adjustment to make dark areas lighter and light areas not much less bright. Filters.GrayscaleFilterAn IFilter that converts all colors passed to it to grayscale, like a black and white film. Filters.HallucinateFilterAn IFilter that makes the colors requested from it highly saturated, with the original hue, value and a timer that increments very slowly altering hue, with hue, value and the timer altering saturation, and the original hue, saturation, and value all altering value. Filters.IdentityFilterAn IFilter that does nothing to the colors it is given but pass them along unchanged. Filters.LerpFilterAn IFilter that is constructed with a color and linear-interpolates any color it is told to alter toward the color it was constructed with. Filters.MaxValueFilterAn IFilter that tracks the highest brightness for any component it was assigned and stores it in its
Filters.MultiLerpFilterAn IFilter that is constructed with a group of colors and linear-interpolates any color it is told to alter toward the color it was constructed with that has the closest hue. Filters.PaletteFilterAn IFilter that is constructed with a group of colors and forces any color it is told to alter to exactly the color it was constructed with that has the closest red, green, and blue components. Filters.SaturationFilterAn IFilter that multiplies the saturation of any color requested from it by a number given during construction. Filters.SaturationValueFilterAn IFilter that multiplies the saturation and the value of any color requested from it by different numbers given during construction. Filters.WiggleFilterAn IFilter that is constructed with a palette of colors and randomly increases or decreases the red, green, and blue components of any color it is told to alter. FloatFilterLike
IFilter, but produces packed floats that encode colors instead of
FloatFiltersPre-made FloatFilter classes that you can use to filter colors without producing extra Color objects. FloatFilters.ChainFilterA FloatFilter that chains together one or more FloatFilters one after the next, passing the float output of one as input to the next until the chain has all been called. FloatFilters.ColorizeFilterChanges all colors this alters to have the same hue as, and a closer saturation to, a target color given in the constructor, as well as optionally multiplying saturation of the result and/or adding lightness/value. FloatFilters.DistinctRedGreenFilterA FloatFilter that alters primarily-red and primarily-green colors so they can be more easily be distinguished by people with at least some forms of red-green color-blindness (deuteranopia should be handled well, protanopia very well, and tritanopia may not benefit at all). FloatFilters.GrayscaleFilterA FloatFilter that makes all colors given to it grayscale, using only their luma as calculated by
SColor.lumaOfFloat(float)as the lightness (it does also preserve alpha transparency).
FloatFilters.HSVFilterWraps the functionality of
SColor.toEditedFloat(float, float, float, float, float)so it can be called as a FloatFilter, adding values to hue, saturation, and value (clamping saturation and value and wrapping hue).
FloatFilters.IdentityFilterA FloatFilter that makes no changes to the colors given to it; useful as a default for when no filter is wanted. FloatFilters.LerpFilterA FloatFilter that linearly interpolates (lerps) any color it is given toward a specified color by a specified amount. FloatFilters.MultiLerpFilterA FloatFilter that linearly interpolates (lerps) any color it is given toward the most-similar of a group of given colors. FloatFilters.PaletteFilterA FloatFilter that limits the colors it can return to a fixed palette, and won't return any colors that are missing from that palette (although it can always return fully-transparent). FloatFilters.PaletteReducerFilterA FloatFilter that limits the colors it can return to a fixed palette as determined by a
PaletteReducer, and won't return any colors that are missing from that palette (although it can always return fully-transparent).
FloatFilters.HSVFilter, but edits its input colors in YCbCr color space, and multiplies rather than adds.
FloatFilters.YCoCgFilter FloatFilters.YCwCmFilter GDXMarkupGDXMarkup implements IMarkup for libGDX Color objects, and can start blocks of markup that libGDX understands that display text in a given Color. ICellVisible.BasicA bare-bones implementation of ICellVisible that always allows its symbol and color to be changed. ICellVisible.NamedA implementation of ICellVisible that extends
ICellVisible.Basicto also carry a String name.
ImageSquidPanelDisplays text and images in a grid pattern, like SquidPanel, but will automatically render certain chars as images. LightingHandlerA convenience class that makes dealing with multiple colored light sources easier. MapUtilityCreated by Tommy Ettinger on 7/9/2017. PackedColorActionSets the actor's color (or a specified color), from the current to the new color. PanelEffect PanelEffect.ExplosionEffect PanelEffect.GibberishEffect PanelEffect.GlowBallEffect PanelEffect.ProjectileEffect PanelEffect.PulseEffect PanelEffect.SteadyProjectileEffectAlmost exactly lke
PanelEffect.ProjectileEffect, but its duration specifies the amount of time to spend crossing each cell (in seconds), not the duration of the entire effect.
RadianceGrouping of qualities related to glow and light emission. SColorAllows for the use of custom colors with custom names. ScreenSizeManagerA container that keeps tracks of the sizes of margins and cells. ShrinkPartViewportA viewport that scales the world using
Scaling.stretchon a sub-region of the screen.
SparseLayersA general-purpose char display grid that supports one layer of backgrounds and arbitrarily many layers of foreground, only rendering foreground chars when something is present at a char's location. SparseTextMapAn unordered map where the keys are two positive ints up to 16 bits (x and y, between 0 and 65535) and there are multiple kinds of value per key, here just a char and a float for color. SparseTextMap.CharValues SparseTextMap.Entries SparseTextMap.Entry SparseTextMap.FloatValues SparseTextMap.Keys SquidColorCenterA concrete implementation of
SquidInputThis input processing class can handle mouse and keyboard input, using a squidpony.squidgrid.gui.gdx.SquidMouse for Mouse input and a user implementation of the SquidInput.KeyHandler interface to react to keys represented as chars and the modifiers those keys were pressed with, any of alt, ctrl, and/or shift. SquidKeyThis wraps an InputProcessor, storing all key events and allowing them to be processed one at a time using next() or all at once using drain(). SquidLayersA helper class to make using multiple SquidPanels easier. SquidMessageBoxA specialized SquidPanel that is meant for displaying messages in a scrolling pane. SquidMouseThis mouse processor allows for easy conversion to a grid based system. SquidPanelDisplays text and images in a grid pattern. StarterKitA convenience class that groups several commonly-used GUI classes into one object and provides ways to initialize these kits for specific purposes, some of which would be a challenge to write without this code. SubcellLayersA subclass of SparseLayers that acts almost the same, but uses 3x3 subcells of background color for every cell that may contain a char. TextCellFactoryClass for creating text blocks. TextFamilyA variant of
TextCellFactorythat allows switching between regular, bold, italic, and bold italic styles.
TextPanelA panel to display some text using libgdx directly (i.e. UIUtil VisualInputActs like SquidInput but displays available keys as visible buttons if the device has no physical keyboard. WildMapViewCreated by Tommy Ettinger on 9/6/2019. WorldMapViewCreated by Tommy Ettinger on 9/6/2019.