forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinary.xml
More file actions
executable file
·61 lines (39 loc) · 1.26 KB
/
Copy pathbinary.xml
File metadata and controls
executable file
·61 lines (39 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>binary()</name>
<category>Data</category>
<subcategory>Conversion</subcategory>
<usage>Web & Application</usage>
<example>
<image></image>
<code><![CDATA[
color c = color(255, 204, 0);
println(c); // Prints -13312
println(binary(c)); // Prints 11111111111111111100110000000000
println(binary(c, 16)); // Prints 1100110000000000
]]></code>
</example>
<description><![CDATA[Converts a byte, char, int, or color to a String containing the equivalent binary notation. For example color(0, 102, 153, 255) will convert to the String "11111111000000000110011010011001". This function can help make your geeky debugging sessions much happier.]]></description>
<syntax><![CDATA[
binary(<kbd>value</kbd>)
binary(<kbd>value</kbd>, <kbd>digits</kbd>)
]]></syntax>
<parameter>
<label>value</label>
<description><![CDATA[byte, char, int, color: value to convert]]></description>
</parameter>
<parameter>
<label>digits</label>
<description><![CDATA[int: number of digits to return]]></description>
</parameter>
<returns>String</returns>
<related>
unhex()
hex()
unbinary()
</related>
<availability>1.0</availability>
<type>Function</type>
<partof>IDE</partof>
<level>extended</level>
</root>