Już sobie poradziłem.
W kodzie szablonu należy zmienić to:
Kod PHP:
document.getElementById('red').value = this.color.rgb[0]*100 + '%';
document.getElementById('grn').value = this.color.rgb[1]*100 + '%';
document.getElementById('blu').value = this.color.rgb[2]*100 + '%';
na to:
Kod PHP:
document.getElementById('red').value = Math.round(this.color.rgb[0]*250);
document.getElementById('grn').value = Math.round(this.color.rgb[1]*250);
document.getElementById('blu').value = Math.round(this.color.rgb[2]*250);
Teraz (dla koloru #4AE632 ) zamiast odczytu:
Kod PHP:
R: 29.01960784313726%
G: 90.19607843137256%
B: 19.607843137254903%
mam:
Zamiast parametru "100" użyłem "250".