Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Color Scale</title>
- </head>
- <body>
- <table border="0" cellspacing="0" cellpadding="7">
- <tr>
- <script>
- for (i = 0; i <= 255; i+= 25 ) {
- document.write("<th style= 'background-color:rgb(255,"+i+","+i+");'>"+i+"</th>");
- }
- </script>
- </tr>
- <tr>
- <script>
- for (i = 0; i <= 255; i+= 25) {
- document.write("<th style= 'background-color:rgb("+i+",255,"+i+");'>"+i+"</th>");
- }
- </script>
- </tr>
- <tr>
- <script>
- for (i = 0; i <= 255; i+= 25) {
- document.write("<th style= 'background-color:rgb("+i+","+i+",255);'>"+i+"</th>");
- }
- </script>
- </tr>
- <tr>
- <script>
- for (i = 0; i <= 255; i+= 25) {
- document.write("<th style= 'background-color:rgb(255,255,"+i+");'>"+i+"</th>");
- }
- </script>
- </tr>
- <tr>
- <script>
- for (i = 0; i <= 255; i+= 25) {
- document.write("<th style= 'background-color:rgb("+i+",255,255);'>"+i+"</th>");
- }
- </script>
- </tr>
- <tr>
- <script>
- for (i = 0; i <= 255; i+= 25) {
- document.write("<th style= 'background-color:rgb(255,"+i+",255);'>"+i+"</th>");
- }
- </script>
- </tr>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement