Incremental
This commit is contained in:
parent
9446513091
commit
a467bca5e3
2 changed files with 17 additions and 7 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
<link rel="stylesheet" type="text/css" media="screen" href="css/example.css">
|
<link rel="stylesheet" type="text/css" media="screen" href="css/example.css">
|
||||||
<script type="text/javascript" src="http://images.webs.com/static/global/js/jquery/jquery-1.3.2.min.js"></script>
|
<script type="text/javascript" src="http://images.webs.com/static/global/js/jquery/jquery-1.3.2.min.js"></script>
|
||||||
<script type="text/javascript" src="js/franz.js"></script>
|
<script type="text/javascript" src="js/franz.js"></script>
|
||||||
|
<script type="text/javascript" src="http://www.google-analytics.com/ga.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var img_input;
|
var img_input;
|
||||||
|
|
||||||
|
|
@ -135,5 +136,9 @@
|
||||||
two of the most awesome people you'll ever hear about.
|
two of the most awesome people you'll ever hear about.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
try { var pageTracker = _gat._getTracker("UA-9252411-2"); pageTracker._trackPageview(); } catch(err) {}
|
||||||
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -173,6 +173,7 @@ var franz = {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
resetIndex: function() {
|
resetIndex: function() {
|
||||||
/* keep track of original index so we don't have to revert
|
/* keep track of original index so we don't have to revert
|
||||||
back to RGB just to display output */
|
back to RGB just to display output */
|
||||||
|
|
@ -187,30 +188,35 @@ var franz = {
|
||||||
franz.displayColors(franz.origIndex);
|
franz.displayColors(franz.origIndex);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
displayHue: function() {
|
displayHue: function() {
|
||||||
franz.resetIndex();
|
franz.resetIndex();
|
||||||
franz.qsort(franz.clone(franz.hue), 0, franz.alpha.length);
|
franz.qsort(franz.clone(franz.hue), 0, franz.alpha.length);
|
||||||
franz.displayColors(franz.origIndex);
|
franz.displayColors(franz.origIndex);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
displaySat: function() {
|
displaySat: function() {
|
||||||
franz.resetIndex();
|
franz.resetIndex();
|
||||||
franz.qsort(franz.clone(franz.sat), 0, franz.alpha.length);
|
franz.qsort(franz.clone(franz.sat), 0, franz.alpha.length);
|
||||||
franz.displayColors(franz.origIndex);
|
franz.displayColors(franz.origIndex);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
displayVal: function() {
|
displayVal: function() {
|
||||||
franz.resetIndex();
|
franz.resetIndex();
|
||||||
franz.qsort(franz.clone(franz.val), 0, franz.alpha.length);
|
franz.qsort(franz.clone(franz.val), 0, franz.alpha.length);
|
||||||
franz.displayColors(franz.origIndex);
|
franz.displayColors(franz.origIndex);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
displaySatL: function() {
|
displaySatL: function() {
|
||||||
franz.resetIndex();
|
franz.resetIndex();
|
||||||
franz.qsort(franz.clone(franz.satL), 0, franz.alpha.length);
|
franz.qsort(franz.clone(franz.satL), 0, franz.alpha.length);
|
||||||
franz.displayColors(franz.origIndex);
|
franz.displayColors(franz.origIndex);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
displayLight: function() {
|
displayLight: function() {
|
||||||
franz.resetIndex();
|
franz.resetIndex();
|
||||||
franz.qsort(franz.clone(franz.light), 0, franz.alpha.length);
|
franz.qsort(franz.clone(franz.light), 0, franz.alpha.length);
|
||||||
|
|
@ -218,7 +224,6 @@ var franz = {
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
/* quicksort algorithm that also swaps an index array */
|
/* quicksort algorithm that also swaps an index array */
|
||||||
sort_Partition: function(array, begin, end, pivot) {
|
sort_Partition: function(array, begin, end, pivot) {
|
||||||
var piv=array[pivot];
|
var piv=array[pivot];
|
||||||
|
|
|
||||||
Reference in a new issue