GUI: PLT Graphics Toolkit

1`` | Overview
- | Windowing
- | Drawing
- | Editor
2`` | Reference
- | Windowing Classes
- | Windowing Functions
- | Drawing Classes
- | Drawing Functions
- | Editor Classes
- | Editor Functions
- | WXME Decoding
3`` | Configuration
4`` | Dynamic Loading
| Index

On this page:

get
get-b
get-g
get-r
set
set-b
set-g
set-r

Version: 4.0.2
contents index
← prev up next →

add-color<%> : interface?

An add-color<%> object is used to additively change the RGB values of a color% object. An add-color<%> object only exists within a style-delta% object.

See also get-foreground-add and get-background-add.

(send an-add-color get r g b) → void?
r : (box/c (integer-in -1000 1000))
g : (box/c (integer-in -1000 1000))
b : (box/c (integer-in -1000 1000))

Gets all of the additive values.

The r box is filled with the additive value for the red component of the color. The g box is filled with the additive value for the green component of the color. The b box is filled with the additive value for the blue component of the color.

(send an-add-color get-b) → (integer-in -1000 1000)

Gets the additive value for the blue component of the color.

(send an-add-color get-g) → (integer-in -1000 1000)

Gets the additive value for the green component of the color.

(send an-add-color get-r) → (integer-in -1000 1000)

Gets the additive value for the red component of the color.

(send an-add-color set r g b) → void?
r : (integer-in -1000 1000)
g : (integer-in -1000 1000)
b : (integer-in -1000 1000)

Sets all of the additive values.

(send an-add-color set-b v) → void?
v : (integer-in -1000 1000)

Sets the additive value for the blue component of the color.

(send an-add-color set-g v) → void?
v : (integer-in -1000 1000)

Sets the additive value for the green component of the color.

(send an-add-color set-r v) → void?
v : (integer-in -1000 1000)

Sets the additive value for the red component of the color.

contents index
← prev up next →