diff --git a/README.md b/README.md
index d5966f02..bdff2500 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,12 @@ The goal is to create an easy-to-use/in-the-cloud/web-based 2d animation editor.
Try it at : http://juliandescottes.github.com/piskel/
+16 Sep 2012
+------------------------------------
+Just a quick update to post a new screenshot. @grosbouddha is delivering features so fast, it's hard to keep up !
+
+![Screenshot 4](https://dl.dropbox.com/u/17803671/screen_piskel_4.png "Screenshot 4")
+
15 Sep 2012
------------------------------------
2 weeks already since the last README.md update, and so many changes ! There has been a continuous stream of features added to piskel by @grosboudda, @captainbrosset (thanks guys) and myself.
diff --git a/js/Constants.js b/js/Constants.js
index 81dca60e..fdaaaa95 100644
--- a/js/Constants.js
+++ b/js/Constants.js
@@ -15,6 +15,12 @@ var Constants = {
* strokes and rectangles:
*/
SELECTION_TRANSPARENT_COLOR: 'rgba(255, 255, 255, 0.6)',
+
+ /*
+ * When a tool is hovering the drawing canvas, we highlight the eventual
+ * pixel target with this color:
+ */
+ TOOL_TARGET_HIGHLIGHT_COLOR: 'rgba(255, 255, 255, 0.2)',
/*
* Default entry point for piskel web service:
diff --git a/js/Events.js b/js/Events.js
index 3f6d3757..cdf31c42 100644
--- a/js/Events.js
+++ b/js/Events.js
@@ -28,7 +28,7 @@ Events = {
REDRAW_PREVIEWFILM: "REDRAW_PREVIEWFILM",
GRID_DISPLAY_STATE_CHANGED: "GRID_DISPLAY_STATE_CHANGED",
-
+
/**
* The framesheet was reseted and is now probably drastically different.
* Number of frames, content of frames, color used for the palette may have changed.
diff --git a/js/controller/PaletteController.js b/js/controller/PaletteController.js
index 816f25d5..bca36b94 100644
--- a/js/controller/PaletteController.js
+++ b/js/controller/PaletteController.js
@@ -14,15 +14,22 @@
$.publish(Events.COLOR_SELECTED, [inputPicker.val(), evt.data.isPrimary]);
};
- /**
+ /**
* @private
*/
- ns.PaletteController.prototype.createPalette_ = function (colors) {
+ ns.PaletteController.prototype.createPaletteMarkup_ = function (colors) {
// Always adding transparent color
this.paletteRoot.html('');
- for(var color in colors) {
+
+ for(var i=0, l=this.paletteColors.length; i