Used by the command-line version to create a sketch object. @param path location of the main .pde file @param mode what flavor of sketch we're dealing with.
(String path, Mode mode)
| 100 | * @param mode what flavor of sketch we're dealing with. |
| 101 | */ |
| 102 | public Sketch(String path, Mode mode) { |
| 103 | this.editor = null; |
| 104 | this.mode = mode; |
| 105 | load(path); |
| 106 | } |
| 107 | |
| 108 | |
| 109 | /** |