<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d7134549\x26blogName\x3dJonathan\x27s+Liverstone\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://liverstone.blogspot.com/search\x26blogLocale\x3den_GB\x26v\x3d2\x26homepageUrl\x3dhttp://liverstone.blogspot.com/\x26vt\x3d-3181951560992862409', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>
Jonathan's Liverstone

A place of Bile & other Humours.

BlogRoll


Web Colour Charts  

I can never remember the Codes for colours so I need a chart.
This is a bash script to construct a chart of alleged websafe colours
from the list of "safecolours".
Just run the script on a linux box & then copy the resultant file
into a browsable directory.
#!/bin/bash
LIST="0 3 6 9 C F"
PAGE="chartsafe.html"
echo "<html> <head> </head> <body> <table width=80% > " > ${PAGE}
for REACH in ${LIST} ; do
for GEACH in ${LIST} ; do
echo "<TR>" >> $PAGE
for BEACH in ${LIST} ; do
COLOR="${BEACH}${BEACH}${REACH}${REACH}${GEACH}${GEACH}"
COLOUR="${BEACH}${REACH}${GEACH}"
echo "<TD align=\"right\"> ${COLOUR}</TD> <TD align=\"center\" bgcolor=\"#${COLOR}\"> <span style=\"color: #${COLOR}\">#${COLOR}</span></TD>" >> ${PAGE}
done
echo "</TR>" >> ${PAGE}
done
done
echo "</table> </body> </html> " >> ${PAGE}
#[EOF]

This script is a bit more ambitious, it makes a chart of *ALL* the colours.
Moving the mouse over the resultant chart will give a "popup" colour value as a comment.
#!/bin/bash
LIST="0 1 2 3 4 5 6 7 8 9 A B C D E F"
PAGE="chartall.html"
echo "<html> <head> </head> <body> <center><table width=\"600px\" border=0 cellspacing=0 > " > ${PAGE}
for REACH in ${LIST} ; do
for GEACH in ${LIST} ; do
echo "<TR>" >> $PAGE
for BEACH in ${LIST} ; do
COLOR="${BEACH}${BEACH}${REACH}${REACH}${GEACH}${GEACH}"
echo " <TD align=\"center\" bgcolor=\"#${COLOR}\"> <a href=\"nowhere\" style=\"text-decoration: none\" title=\"#${COLOR}\"> &nbsp;&nbsp;&nbsp;&nbsp; </a> </TD> " >> ${PAGE}
done
echo "</TR>" >> ${PAGE}
done
done
echo "</table> </body> </html> " >> ${PAGE}
#[EOF]

0 Comments:

Disclaimer: (I stole this from Internal Affairs.)
All links and references to other websites, organisations or people not within my control are provided for the user's convenience only, and should not be taken as endorsement of those websites, or of the information contained in those websites, nor of organisations or people referred to. I also do not implicitly or impliedly endorse any website, organisation or people who have off-site links to this website.
... But then again; I only link to sites 'cos I see something there that's worth linking to.