@deafwave/osrs-botmaker-types 0.7.27 → 0.7.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
declare namespace java.awt {
|
|
2
2
|
export class Color {
|
|
3
|
+
/**
|
|
4
|
+
* Creates a color from a packed RGB int (`0xRRGGBB`) or a hex string.
|
|
5
|
+
* Use `constructor(rgba, true)` when alpha is packed in the top byte.
|
|
6
|
+
*/
|
|
3
7
|
constructor(hexString: string | number);
|
|
8
|
+
/** Creates a color from a packed int (`0xAARRGGBB` when `hasAlpha` is `true`). */
|
|
9
|
+
constructor(rgba: number, hasAlpha: boolean);
|
|
4
10
|
constructor(
|
|
5
|
-
/** 0.00 - 1.00 */
|
|
11
|
+
/** 0 - 255 integer OR 0.00 - 1.00 normalized float */
|
|
6
12
|
r: number,
|
|
7
|
-
/** 0.00 - 1.00 */
|
|
13
|
+
/** 0 - 255 integer OR 0.00 - 1.00 normalized float */
|
|
8
14
|
g: number,
|
|
9
|
-
/** 0.00 - 1.00 */
|
|
15
|
+
/** 0 - 255 integer OR 0.00 - 1.00 normalized float */
|
|
10
16
|
b: number,
|
|
11
17
|
);
|
|
12
18
|
constructor(
|
|
13
|
-
/** 0.00 - 1.00 */
|
|
19
|
+
/** 0 - 255 integer OR 0.00 - 1.00 normalized float */
|
|
14
20
|
r: number,
|
|
15
|
-
/** 0.00 - 1.00 */
|
|
21
|
+
/** 0 - 255 integer OR 0.00 - 1.00 normalized float */
|
|
16
22
|
g: number,
|
|
17
|
-
/** 0.00 - 1.00 */
|
|
23
|
+
/** 0 - 255 integer OR 0.00 - 1.00 normalized float */
|
|
18
24
|
b: number,
|
|
19
|
-
/** 0.00 - 1.00 */
|
|
25
|
+
/** Must match channel scale: 0 - 255 with int RGB, or 0.00 - 1.00 with normalized RGB */
|
|
20
26
|
a: number,
|
|
21
27
|
);
|
|
22
28
|
|