Package com.vuzix.ultralite
Interface LVGLImage.ColorMapper
- Enclosing class:
- LVGLImage
public static interface LVGLImage.ColorMapper
Maps RGB colors to 1 or 2 bit colors.
- Since:
- 1.0.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final android.graphics.Color
The darkest color supported on the glasses, results in a transparent pixel.static final android.graphics.Color
Displays a dimly lit pixel on the glasses.static final android.graphics.Color
Displays a mid-level lit pixel on the glasses.static final android.graphics.Color
The brightest color supported on the glasses, results in a fully lit pixel. -
Method Summary
-
Field Details
-
BLACK
static final android.graphics.Color BLACKThe darkest color supported on the glasses, results in a transparent pixel.- Since:
- 1.0.0
-
DIM
static final android.graphics.Color DIMDisplays a dimly lit pixel on the glasses.- Since:
- 1.0.0
-
MID
static final android.graphics.Color MIDDisplays a mid-level lit pixel on the glasses.- Since:
- 1.0.0
-
WHITE
static final android.graphics.Color WHITEThe brightest color supported on the glasses, results in a fully lit pixel.- Since:
- 1.0.0
-
-
Method Details
-
getColors
android.graphics.Color[] getColors()Provides the color palette this mapper uses. You must return the appropriate number of colors based on the color format you want to use.- Returns:
- an array of Colors
- Since:
- 1.0.0
-
mapColor
int mapColor(android.graphics.Color color) Maps a Color to an index in the palette. You must return an index that is in the range of palette indices.- Parameters:
color
- a Color- Returns:
- the indexed value of the desired Color in the palette.
- Since:
- 1.0.0
-