22. High-level API Reference
www.yoctopuce.com
319
YDisplayLayer
displaylayer
→
setConsoleBackground()
Sets up the background color used by the
clearConsole
function and by the console scrolling
feature.
js
function setConsoleBackground(
bgcol
)
cpp
int setConsoleBackground( int
bgcol
)
m
-(int) setConsoleBackground : (int)
bgcol
pas
function setConsoleBackground(
bgcol
: LongInt): LongInt
vb
function setConsoleBackground( ) As Integer
cs
int setConsoleBackground( int
bgcol
)
java
int setConsoleBackground( int
bgcol
)
uwp
Task<int> setConsoleBackground( int
bgcol
)
py
def setConsoleBackground(
bgcol
)
php
function setConsoleBackground(
$bgcol
)
es
function setConsoleBackground(
bgcol
)
cmd
YDisplay
target
[-layer
layerId
] setConsoleBackground
bgcol
Parameters :
bgcol
the background gray level to use when scrolling (0 = black, 255 = white), or -1 for transparent
Returns :
YAPI_SUCCESS
if the call succeeds.
On failure, throws an exception or returns a negative error code.
Summary of Contents for Yocto-Display
Page 1: ...Yocto Display User Manual...
Page 2: ......
Page 40: ...34 www yoctopuce com...
Page 52: ...46 www yoctopuce com...
Page 84: ...78 www yoctopuce com...
Page 92: ...86 www yoctopuce com...
Page 130: ...124 www yoctopuce com...
Page 422: ...416 www yoctopuce com...