<script> for(r = 0; r<=255;r++) { document.write("<p id='let'>текст</p>") word = document.querySelectorAll('#let')[r]; rgb = 'rgb('+r+','+0+','+0+')'; word.style.color = rgb } </script>