mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-03 19:17:27 -04:00
Updated Component GPU (markdown)
parent
991a5c1f24
commit
c46fc5f5bb
@ -9,7 +9,7 @@ Callbacks:
|
|||||||
Gets the current background color. This background color is applied to all "pixels" that get changed by other operations.
|
Gets the current background color. This background color is applied to all "pixels" that get changed by other operations.
|
||||||
Note that the returned number is an RGB value in hexadecimal format, i.e. `0xRRGGBB`. This is to allow uniform color operations regardless of color depth supported by the screen and GPU.
|
Note that the returned number is an RGB value in hexadecimal format, i.e. `0xRRGGBB`. This is to allow uniform color operations regardless of color depth supported by the screen and GPU.
|
||||||
- `setBackground(color: number): number`
|
- `setBackground(color: number): number`
|
||||||
Sets the background color to apply to "pixels" modified by other operations from now on. The returned value is the new background color, which may differ from the specified value based on the supported color depth.
|
Sets the background color to apply to "pixels" modified by other operations from now on. The returned value is the old background color, as the actual value it was set to (i.e. not compressed to the color space currently set).
|
||||||
Note that the color is expected to be specified in hexadecimal RGB format, i.e. `0xRRGGBB`. This is to allow uniform color operations regardless of the color depth supported by the screen and GPU.
|
Note that the color is expected to be specified in hexadecimal RGB format, i.e. `0xRRGGBB`. This is to allow uniform color operations regardless of the color depth supported by the screen and GPU.
|
||||||
- `getForeground(): number`
|
- `getForeground(): number`
|
||||||
Like `getBackground`, but for the foreground color.
|
Like `getBackground`, but for the foreground color.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user