Last active
April 20, 2016 04:14
-
-
Save masakick/950e088f8eb19042945a4efa6c1d8041 to your computer and use it in GitHub Desktop.
変数の代入や計算
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int a, b, c; | |
a = 10; | |
b = 5; | |
c = a + b; | |
println(c); | |
float d,e,f; | |
d = 3.14; | |
e = 1.68; | |
f = d - e; | |
println(f); | |
char character = 'a'; | |
String s1 = "hello"; | |
String s2 = "world"; | |
String s3; | |
s3 = s1 + s2; | |
println(character); | |
println(s3); | |
boolean bool1,bool2; | |
bool1 = true; | |
bool2 = !bool1; | |
println(bool1); | |
println(bool2); | |
size(400,300); | |
println(width); | |
println(height); | |
color c1 = color(51,102,153); | |
color c2 = color(237,159,176); | |
fill(c1); | |
stroke(c2); | |
ellipse(150,200,80,80); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment