This would allow me to see what colors are in a photo and be able to show them in a graphic.
But it only takes a long time for these two "for" and I understand I couldn't do it with Script in Photoshop. Am I correct or would there be some way to optimize the code?
Code: Select all
var nAncho = app.activeDocument.width.value
var nLargo = app.activeDocument.height.value
for (var i = 0; i < nAncho; i++) {
for (var j = 0; j < nLargo; j++) {
pointSample.move([i,j]);
// ...
// some task
// ...
}
}
Walter