[Polycasso-commit] SF.net SVN: polycasso:[121] trunk/polycasso/src/com/mebigfatguy/polycasso/ Setti
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2009-11-29 06:55:59
|
Revision: 121
http://polycasso.svn.sourceforge.net/polycasso/?rev=121&view=rev
Author: dbrosius
Date: 2009-11-29 06:55:52 +0000 (Sun, 29 Nov 2009)
Log Message:
-----------
add max color change to settings
Modified Paths:
--------------
trunk/polycasso/src/com/mebigfatguy/polycasso/Settings.java
Modified: trunk/polycasso/src/com/mebigfatguy/polycasso/Settings.java
===================================================================
--- trunk/polycasso/src/com/mebigfatguy/polycasso/Settings.java 2009-11-29 03:22:09 UTC (rev 120)
+++ trunk/polycasso/src/com/mebigfatguy/polycasso/Settings.java 2009-11-29 06:55:52 UTC (rev 121)
@@ -30,6 +30,7 @@
private int maxPolygons;
private int maxPoints;
private int maxPtMovement;
+ private int maxColorChange;
/**
* constructs a settings object with rational defaults
@@ -39,6 +40,7 @@
maxPolygons = 50;
maxPoints = 8;
maxPtMovement = 20;
+ maxColorChange = 40;
}
/**
@@ -128,4 +130,22 @@
public int getMaxPtMovement() {
return maxPtMovement;
}
+
+ /**
+ * sets the maximum color component change
+ *
+ * @param maxColorChg the max color change
+ */
+ public void setMaxColorChange(int maxColorChg) {
+ maxColorChange = maxColorChg;
+ }
+
+ /**
+ * gets the maximum color component change
+ *
+ * @return the max color change
+ */
+ public int getMaxColorChange() {
+ return maxColorChange;
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|