這些是什麼code

怎樣compile?
  1. void setup()
  2. {
  3.    size(940,540,P3D);
  4.    xcols = int(width / scl);
  5.    yrows = int(height / scl);
  6.    colorMode(HSB,255);
  7.    background(0);
  8.    for (int i = 0; i < parts.length; i++)
  9.    {
  10.            parts[i] = new Particle();
  11.    }
  12.    flowField = PVector[xcols * yrows];
  13.    System.out.print("xcols=" + xcols);
  14.    System.out.print("yrows=" + yrows);
  15.    background(255);
  16. }
複製代碼

Processing

TOP

估係arduino

TOP

TOP

本帖最後由 procapitalist 於 2017-9-3 14:50 編輯

可以系java swing gui都得,看看"Simple Java Swing Example" section
https://www.javatpoint.com/java-swing


Also, look at how to compile java code:
https://stackoverflow.com/questi ... and-line-on-windows

TOP

回覆 5# procapitalist


    唔會係 java, int 係 java reserved keyword, 唔可以用係 method name

TOP