Interface SainSmartTFT18LCD
Properties
color
height
height: number
width
width: number
Methods
color16
- color16(r: number, g: number, b: number): RGB16
-
Parameters
-
r: number
-
g: number
-
b: number
drawChar
- drawChar(x: number, y: number, char: string, color: RGB16, backgroundColor: RGB16, size?: undefined | number): void
-
Parameters
-
x: number
-
y: number
-
char: string
-
-
backgroundColor: RGB16
-
Optional size: undefined | number
Returns void
drawCircle
- drawCircle(x: number, y: number, radius: number, color: RGB16): void
-
Parameters
-
x: number
-
y: number
-
radius: number
-
Returns void
drawContext
- drawContext(context: CanvasRenderingContext2D, gray: boolean): void
-
Parameters
-
context: CanvasRenderingContext2D
-
gray: boolean
Returns void
drawContextBound
- drawContextBound(context: any, x0: number, y0: number, width: number, height: number, x1: number, y1: number, gray: boolean): void
-
Parameters
-
context: any
-
x0: number
-
y0: number
-
width: number
-
height: number
-
x1: number
-
y1: number
-
gray: boolean
Returns void
drawHLine
- drawHLine(x: number, y: number, width: number, color: RGB16): void
-
Parameters
-
x: number
-
y: number
-
width: number
-
Returns void
drawLine
- drawLine(x0: number, y0: number, x1: number, y1: number, color: RGB16): void
-
Parameters
-
x0: number
-
y0: number
-
x1: number
-
y1: number
-
Returns void
drawRect
- drawRect(x: number, y: number, width: number, height: number, color: RGB16): void
-
Parameters
-
x: number
-
y: number
-
width: number
-
height: number
-
Returns void
drawRoundRect
- drawRoundRect(x: number, y: number, width: number, height: number, round: number, color: RGB16): void
-
Parameters
-
x: number
-
y: number
-
width: number
-
height: number
-
round: number
-
Returns void
drawString
- drawString(x: number, y: number, string: string, color: RGB16, backgroundColor: RGB16, size?: undefined | number, wrap?: undefined | false | true): [number, number]
-
Parameters
-
x: number
-
y: number
-
string: string
-
-
backgroundColor: RGB16
-
Optional size: undefined | number
-
Optional wrap: undefined | false | true
Returns [number, number]
drawTriangle
- drawTriangle(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, color: RGB16): void
-
Parameters
-
x0: number
-
y0: number
-
x1: number
-
y1: number
-
x2: number
-
y2: number
-
Returns void
drawVLine
- drawVLine(x: number, y: number, height: number, color: RGB16): void
-
Parameters
-
x: number
-
y: number
-
height: number
-
Returns void
fillCircle
- fillCircle(x: number, y: number, radius: number, color: RGB16): void
-
Parameters
-
x: number
-
y: number
-
radius: number
-
Returns void
fillRect
- fillRect(x: number, y: number, width: number, height: number, color: RGB16): void
-
Parameters
-
x: number
-
y: number
-
width: number
-
height: number
-
Returns void
fillRoundRect
- fillRoundRect(x: number, y: number, width: number, height: number, round: number, color: RGB16): void
-
Parameters
-
x: number
-
y: number
-
width: number
-
height: number
-
round: number
-
Returns void
fillScreen
- fillScreen(color: RGB16): void
-
Parameters
Returns void
fillTriangle
- fillTriangle(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, color: RGB16): void
-
Parameters
-
x0: number
-
y0: number
-
x1: number
-
y1: number
-
x2: number
-
y2: number
-
Returns void
raw
- raw(pixels: RGB24[]): void
-
Parameters
Returns void
rawBound
- rawBound(x: number, y: number, width: number, height: number, pixels: RGB24[]): void
-
Parameters
-
x: number
-
y: number
-
width: number
-
height: number
-
Returns void
setInversion
- setInversion(inversion: boolean): void
-
Parameters
Returns void
setInversionOff
-
Returns void
setInversionOn
-
Returns void
setRotation
- setRotation(dir: number): void
-
Parameters
Returns void