From 940b4d1848e8c70ab7642901a68594e8016caffc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 18:51:28 +0200 Subject: Adding upstream version 1:7.0.4. Signed-off-by: Daniel Baumann --- .../source/text/sbasic/shared/03010305.xhp | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 helpcontent2/source/text/sbasic/shared/03010305.xhp (limited to 'helpcontent2/source/text/sbasic/shared/03010305.xhp') diff --git a/helpcontent2/source/text/sbasic/shared/03010305.xhp b/helpcontent2/source/text/sbasic/shared/03010305.xhp new file mode 100644 index 000000000..337e07992 --- /dev/null +++ b/helpcontent2/source/text/sbasic/shared/03010305.xhp @@ -0,0 +1,71 @@ + + + + + + + RGB Function + /text/sbasic/shared/03010305.xhp + + + + + + +
+ + RGB function + + +RGB Function + Returns a Long integer color value consisting of red, green, and blue components. +
+ +Syntax: + +RGB (Red, Green, Blue) + + +Return value: +Long + +Parameter: + Red: Any integer expression that represents the red component (0-255) of the composite color. + Green: Any integer expression that represents the green component (0-255) of the composite color. + Blue: Any integer expression that represents the blue component (0-255) of the composite color. +The color picker dialog helps computing red, green and blue components of a composite color. Changing the color of text and selecting Custom color displays the color picker dialog. + + + + +Example: + +Sub ExampleColor +Dim lVar As Long + lVar = rgb(128,0,200) + MsgBox "The color " & lVar & " consists of:" & Chr(13) &_ + "red= " & red(lVar) & Chr(13)&_ + "green= " & green(lVar) & Chr(13)&_ + "blue= " & blue(lVar) & Chr(13) , 64,"colors" +End Sub + + + + +
\ No newline at end of file -- cgit v1.2.3