Ich habe keine obskure Programmiersprache zur Hand. Geht auch HTML5 Canvas? Code (text/html): <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>YAY YAY HAPPY YAY</title> <script> var width = 600; var height = 32; var ctx; var text = "HERZLICHEN!".split(""); var hue = 0; function redraw() { requestAnimFrame(redraw); ctx.clearRect(0, 0, width, height); for (index in text) { hue = ++hue; var color = "hsl(" + ((hue + 10 * index) % 360) + ", 100%, 50%)"; ctx.fillStyle = color; ctx.fillText(text[index], index * 18, 24); } } function init() { var canvas = document.getElementsByTagName('canvas')[0]; ctx = canvas.getContext("2d"); ctx.font = "32px Courier"; canvas.style.width = width; canvas.style.height = height; redraw(); } window.requestAnimFrame = (function() { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function( callback ) { window.setTimeout(callback, 1000 / 60); }; })(); window.addEventListener('load', init, false); </script> </head> <body> <canvas></canvas> </body> </html> * GRUNNUR ;
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>YAY YAY HAPPY YAY</title> <script> var width = 600; var height = 32; var ctx; var text = "HERZLICHEN!".split(""); var hue = 0; function redraw() { requestAnimFrame(redraw); ctx.clearRect(0, 0, width, height); for (index in text) { hue = ++hue; var color = "hsl(" + ((hue + 10 * index) % 360) + ", 100%, 50%)"; ctx.fillStyle = color; ctx.fillText(text[index], index * 18, 24); } } function init() { var canvas = document.getElementsByTagName('canvas')[0]; ctx = canvas.getContext("2d"); ctx.font = "32px Courier"; canvas.style.width = width; canvas.style.height = height; redraw(); } window.requestAnimFrame = (function() { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function( callback ) { window.setTimeout(callback, 1000 / 60); }; })(); window.addEventListener('load', init, false); </script> </head> <body> <canvas></canvas> </body> </html>
Foren-Regeln