SPRITE namespace JJ2+
Sprite drawing modes and flips
Enums
- enum Direction { FLIPNONE = 0, FLIPH, FLIPV = 64, FLIPHV } JJ2+
- How a sprite is flipped, used as the
directionof drawing functions - enum Mode { NORMAL = 0, TRANSLUCENT = 1, TINTED = 2 partially supported, GEM = 5 partially supported, INVISIBLE = 10 partially supported, SINGLECOLOR = 11, RESIZED = 12, NEONGLOW = 15 partially supported, FROZEN = 16 partially supported, PLAYER = 17 partially supported, PALSHIFT = 18 partially supported, SHADOW = 20, SINGLEHUE = 21 partially supported, BRIGHTNESS = 22 partially supported, TRANSLUCENTCOLOR = 23 partially supported, TRANSLUCENTPLAYER = 24 partially supported, TRANSLUCENTPALSHIFT = 25 partially supported, TRANSLUCENTSINGLEHUE = 26 partially supported, ALPHAMAP = 27 partially supported, MENUPLAYER = 28 partially supported, BLEND_NORMAL = 29, BLEND_DARKEN = 30 partially supported, BLEND_LIGHTEN = 31 partially supported, BLEND_HUE = 32 partially supported, BLEND_SATURATION = 33 partially supported, BLEND_COLOR = 34 partially supported, BLEND_LUMINANCE = 35 partially supported, BLEND_MULTIPLY = 36 partially supported, BLEND_SCREEN = 37 partially supported, BLEND_DISSOLVE = 38 partially supported, BLEND_OVERLAY = 39 partially supported, BLEND_HARDLIGHT = 40 partially supported, BLEND_SOFTLIGHT = 41 partially supported, BLEND_DIFFERENCE = 42 partially supported, BLEND_DODGE = 43 partially supported, BLEND_BURN = 44 partially supported, BLEND_EXCLUSION = 45 partially supported, TRANSLUCENTTILE = 46, CHROMAKEY = 47 partially supported, MAPPING = 48 partially supported, TRANSLUCENTMAPPING = 49 partially supported, INVERSE = 50 partially supported } JJ2+
- How the colors of a sprite, tile, text or shape are rendered
Enum documentation
enum SPRITE:: Mode JJ2+
How the colors of a sprite, tile, text or shape are rendered
Most drawing functions take a mode together with a uint8 parameter whose meaning depends on the mode. Some of the blending modes are only approximated.
| Enumerators | |
|---|---|
| NORMAL |
Drawn with its own colors |
| TRANSLUCENT |
Drawn half transparent |
| TINTED |
Mixed with the palette color |
| GEM |
Drawn like a gem, |
| INVISIBLE |
Not drawn at all |
| SINGLECOLOR |
Shape filled with the palette color |
| RESIZED |
Drawn like |
| NEONGLOW |
Brightness added to what is behind, |
| FROZEN |
Drawn frozen in ice |
| PLAYER |
Drawn in the fur colors of the player with index |
| PALSHIFT |
Palette indices shifted by |
| SHADOW |
Darkens what is behind, in the shape of the sprite |
| SINGLEHUE |
Drawn in shades of the palette gradient starting at index |
| BRIGHTNESS |
Brightness scaled by |
| TRANSLUCENTCOLOR |
Translucent variant of SINGLECOLOR |
| TRANSLUCENTPLAYER |
Translucent variant of |
| TRANSLUCENTPALSHIFT |
Translucent variant of |
| TRANSLUCENTSINGLEHUE |
Translucent variant of SINGLEHUE |
| ALPHAMAP |
Palette color |
| MENUPLAYER |
Player colors as used in menus |
| BLEND_NORMAL |
Normal blending, |
| BLEND_DARKEN |
Darken blending, |
| BLEND_LIGHTEN |
Lighten blending, |
| BLEND_HUE |
Hue blending, |
| BLEND_SATURATION |
Saturation blending, |
| BLEND_COLOR |
Color blending, |
| BLEND_LUMINANCE |
Luminance blending, |
| BLEND_MULTIPLY |
Multiply blending, |
| BLEND_SCREEN |
Screen blending, |
| BLEND_DISSOLVE |
Random pixels drawn, |
| BLEND_OVERLAY |
Overlay blending, |
| BLEND_HARDLIGHT |
Hard light blending, |
| BLEND_SOFTLIGHT |
Soft light blending, |
| BLEND_DIFFERENCE |
Difference blending, |
| BLEND_DODGE |
Color dodge blending, |
| BLEND_BURN |
Color burn blending, |
| BLEND_EXCLUSION |
Exclusion blending, |
| TRANSLUCENTTILE |
Translucent the way translucent tiles are |
| CHROMAKEY |
Drawn only over pixels of the palette color |
| MAPPING |
Colors remapped by mapping |
| TRANSLUCENTMAPPING |
Translucent variant of MAPPING |
| INVERSE |
Inverted colors |