FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
processing/java/examples/Basics/Data/Variables/Variables.pde at master · p5info/processing · GitHub
p5info
processing
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
processing
/
java
/
examples
/
Basics
/
Data
/
Variables
/
Variables.pde
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (30 loc) · 622 Bytes
Breadcrumbs
processing
/
java
/
examples
/
Basics
/
Data
/
Variables
/
Variables.pde
Copy path
File metadata and controls
40 lines (30 loc) · 622 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
/**
* Variables.
*
* Variables are used for storing values. In this example, change
* the values of variables to affect the composition.
*/
size
(
640
,
360
);
background
(
0
);
stroke
(
153
);
strokeWeight
(
4
);
strokeCap
(
SQUARE
);
int
a
=
50
;
int
b
=
120
;
int
c
=
180
;
line
(a, b, a
+
c, b);
line
(a, b
+
10
, a
+
c, b
+
10
);
line
(a, b
+
20
, a
+
c, b
+
20
);
line
(a, b
+
30
, a
+
c, b
+
30
);
a
=
a
+
c;
b
=
height
-
b;
line
(a, b, a
+
c, b);
line
(a, b
+
10
, a
+
c, b
+
10
);
line
(a, b
+
20
, a
+
c, b
+
20
);
line
(a, b
+
30
, a
+
c, b
+
30
);
a
=
a
+
c;
b
=
height
-
b;
line
(a, b, a
+
c, b);
line
(a, b
+
10
, a
+
c, b
+
10
);
line
(a, b
+
20
, a
+
c, b
+
20
);
line
(a, b
+
30
, a
+
c, b
+
30
);
Back
|
FazBrowse Home
|
New Git URL