201805-08 Hewes的学习笔记 前言: 只要热爱生命 一切,都在意料之中 ▼ 我在用什么? Processing/ Java/ Python/ JavaScript/ HTML ▼ 我要做什么? 生成艺术/ 交互设计/ 数据可视化/ 机器学习/ 音乐可视化/ 游戏制作/ APP/ 分.... Read More >
201708-10 第四期 Processing分形之一——Wallpaper 简介: 分形在自然界中普遍存在,例如,弯弯曲曲的海岸线、起伏不平的山脉,粗糙不堪的断面,变幻无常的浮云,九曲回肠的河流,纵横交错的血管,令人眼花缭乱的满天繁星等。它们的特点都是,极不规则或极不光滑。 让我们自己动手来创造一个属于自己的分形吧。 代码: /** * Wallpa.... Read More >
201707-21 * (multiply) 乘 名称:* (multiply) 例子: int e = 50 * 5; // Sets 'e' to 250 int f = e * 5; // Sets 'f' to 1250 描述: Multiplies the values of the two parameters. Multiplication is equival.... Read More >
201707-21 *= (multiply assign) 名称:*= (multiply assign) 例子: int a = 5; int b = 2; a *= b; // Sets 'a' to 10 描述: Combines multiplication with assignment. The expression a *= b is equivalent to a = a.... Read More >
201707-21 + (addition) 加法 名称:+ (addition) 例子: int a = 50 + 5; // Sets 'a' to 55 int b = a + 5; // Sets 'b' to 60 String s1 = "Chernenko"; String s2 = "Brezhnev"; String sc1 = s1 + s2; String.... Read More >
201707-21 ++ (increment) 名称:++ (increment) 例子: int a = 1; // Sets 'a' to 1 int b = a++; // Sets 'b' to 1, then increments 'a' to 2 int c = a; // Sets 'c' to 2 描述: Increases the value of a.... Read More >
201707-21 += (add assign) 名称:+= (add assign) 例子: int a = 50; int b = 23; a += b; // Sets 'a' to 73 描述: Combines addition with assignment. The expression a += b is equivalent to a .... Read More >
201707-21 – (minus) 减 名称:- (minus) 例子: int c = 50 - 5; // Sets 'c' to 45 int d = c - 5; // Sets 'd' to 40 int e = d - 60; // Sets 'e' to -20 int a = 5; // Sets 'a' to 5 int b = .... Read More >
201707-21 — (decrement) 名称:-- (decrement) 例子: int a = 5; // Sets 'a' to 5 int b = a--; // Sets 'b' to 5, then decrements 'a' to 4 int c = a; // Sets 'c' to 4 描述: Substracts the value .... Read More >
201707-21 -= (subtract assign) 名称:-= (subtract assign) 例子: int a = 50; int b = 23; a -= b; // Sets 'a' to 27 描述: Combines subtraction with assignment. The expression a -= b is equivale.... Read More >
201707-21 / (divide) 除 名称:/ (divide) 例子: int g = 50 / 5; // Assigns 10 to 'g' int h = g / 5; // Assigns 2 to 'h' 描述: Divides the value of the first parameter by the value of the second pa.... Read More >
201707-21 /= (divide assign) 名称:/= (divide assign) 例子: int a = 12; int b = 3; a /= b; // Sets 'a' to 4 描述: Combines division with assignment. The expression a /= b is equivalent to a = a / b. .... Read More >
201707-21 | (bitwise OR) 或 名称:| (bitwise OR) 例子: int a = 205; // In binary: 11001101 int b = 45; // In binary: 00101101 int c = a | b; // In binary: 11101101 println(c); // Prints "237", the decimal e.... Read More >
201707-21 >> (right shift) 右移 名称:>> (right shift) 例子: int m = 8 >> 3; // In binary: 1000 to 1 println(m); // Prints "1" int n = 256 >> 6; // In binary: 100000000 to 100 println(n); // Pr.... Read More >
201707-21 << (left shift) 左移 名称:<< (left shift) 例子: int m = 1 << 3; // In binary: 1 to 1000 println(m); // Prints "8" int n = 1 << 8; // In binary: 1 to 100000000 println(n); // Prints ".... Read More >
201707-21 & (bitwise AND) 与 名称:& (bitwise AND) 例子: int a = 207; // In binary: 11001111 int b = 61; // In binary: 00111101 int c = a & b; // In binary: 00001101 println(c); // Prints "13", th.... Read More >
201707-21 《Processing互动编程艺术》 Processing互动编程艺术_完整版PDF电子书下载 带索引书签目录高清版 网盘地址: 链接:http://pan.baidu.com/s/1bp6cMJH 密码:n0nz.... Read More >
201707-20 % (modulo) 模数 名称:% (modulo) 例子: int a = 5 % 4; // Sets 'a' to 1 int b = 125 % 100; // Sets 'b' to 25 float c = 285.5 % 140.0; // Sets 'c' to 5.5 float d = 30.0 % 33.0; // S.... Read More >