Skip to content

Instantly share code, notes, and snippets.

@masakick
Last active April 20, 2016 04:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masakick/950e088f8eb19042945a4efa6c1d8041 to your computer and use it in GitHub Desktop.
Save masakick/950e088f8eb19042945a4efa6c1d8041 to your computer and use it in GitHub Desktop.
変数の代入や計算
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