mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
add auto-resize to IntList.increment()
This commit is contained in:
@@ -393,6 +393,9 @@ public class IntList implements Iterable<Integer> {
|
||||
* @brief Add one to a value
|
||||
*/
|
||||
public void increment(int index) {
|
||||
if (count <= index) {
|
||||
resize(index + 1);
|
||||
}
|
||||
data[index]++;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,9 @@ X https://github.com/processing/processing/issues/1962
|
||||
X this should actually be in the code..
|
||||
X maybe not working on OS X/retina?
|
||||
X perhaps it's a getGraphics() issue?
|
||||
X when using increment() on IntList, make sure the index exists
|
||||
X automatically resize the list if necessary
|
||||
X (this is more in keeping with increment() in the Dict classes)
|
||||
|
||||
cleaning
|
||||
X load/save methods.. is it save("blah.svg") or saveSVG("blah.svg")
|
||||
@@ -33,6 +36,8 @@ o decision: useExtension() or something like that
|
||||
X put saveXxxx() methods inside PApplet
|
||||
o require people to put things in the data folder
|
||||
|
||||
_ blendMode(ADD) is broken with default renderer
|
||||
_ https://github.com/processing/processing/issues/2012
|
||||
_ add option to have full screen span across screens
|
||||
_ display=all in cmd line
|
||||
_ sketchDisplay() -> 0 for all, or 1, 2, 3...
|
||||
|
||||
Reference in New Issue
Block a user