Popular recipes tagged "colour" but not "background"http://code.activestate.com/recipes/tags/colour-background/2013-09-10T21:23:58-07:00ActiveState Code Recipes Pseudo-3D effect in text mode... (Bash)
2013-09-10T21:23:58-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/578655-pseudo-3d-effect-in-text-mode/
<p style="color: grey">
Bash
recipe 578655
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/3d/">3d</a>, <a href="/recipes/tags/apple/">apple</a>, <a href="/recipes/tags/bash/">bash</a>, <a href="/recipes/tags/color/">color</a>, <a href="/recipes/tags/colour/">colour</a>, <a href="/recipes/tags/display/">display</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/macbook_pro/">macbook_pro</a>, <a href="/recipes/tags/text/">text</a>).
</p>
<p>This is just a simple DEMO to display a pseudo-3D effect using a bash script.
It generates a recessed box and a button and writes some thext inside bot.</p>
<p>There are two pieces of code, one for Linux, and one for OSX 10.7.5...</p>
<p>The Linux version also works on OSX 10.7.5 but is harder to see so a near
identical version using the default OSX terminal colours was craeted instead.</p>
<p>You will have to split the two code pieces up yourself to run...</p>
<p>Enjoy finding simple solutions to often very difficult problems...</p>
<p>Bazza...</p>
Colour Bar And Greyscale Generator For Standard Text Mode Python. (Python)
2013-01-18T21:08:21-08:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/578425-colour-bar-and-greyscale-generator-for-standard-te/
<p style="color: grey">
Python
recipe 578425
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/apple/">apple</a>, <a href="/recipes/tags/bar/">bar</a>, <a href="/recipes/tags/color/">color</a>, <a href="/recipes/tags/colour/">colour</a>, <a href="/recipes/tags/generator/">generator</a>, <a href="/recipes/tags/gray/">gray</a>, <a href="/recipes/tags/grey/">grey</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/macbook_pro/">macbook_pro</a>, <a href="/recipes/tags/scale/">scale</a>).
</p>
<p>This is just a simple colour bar and combined greyscale generator for standard text mode Python...</p>
<p>It relies on the _magic_ of the ANSI Escape sequences to work and does mess with the terminal colours but restores the colours back to the defaults...</p>
<p>See the code for the machines tested on. It might need the colours adjusting for some terminals but I am sure that is not beyond the average coder...</p>
<p>Written so that anyone can see how it works.</p>
<p>To hide the cursor the command "tput" is assumed to be available, if not, try "setterm -cursor off" and "setterm -cursor on" instead...</p>
<p>Enjoy...</p>
<p>Bazza, G0LCU...</p>
A DEMO 6 Bit At A Glance Colouerd Bargraph Generator. (Bash)
2013-01-16T12:26:55-08:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/578391-a-demo-6-bit-at-a-glance-colouerd-bargraph-generat/
<p style="color: grey">
Bash
recipe 578391
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/analogue/">analogue</a>, <a href="/recipes/tags/anim/">anim</a>, <a href="/recipes/tags/apple/">apple</a>, <a href="/recipes/tags/bargraph/">bargraph</a>, <a href="/recipes/tags/bash/">bash</a>, <a href="/recipes/tags/beep/">beep</a>, <a href="/recipes/tags/color/">color</a>, <a href="/recipes/tags/colour/">colour</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/display/">display</a>, <a href="/recipes/tags/generator/">generator</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/macbook_pro/">macbook_pro</a>).
Revision 2.
</p>
<p>This code generates a horizontal coloured real time bargraph generator anim for a Macbook Pro 13 inch, OSX 10.7.5, using the default standard Terminal only.</p>
<p>It is UNTESTED on Linux variants but I would like any successful Linux tryers to make a comment in the comments section and tags will be added accordingly otherwise I will assume it does NOT work on other UNIX like variants.</p>
<p>It is a derivative of my 7 bit bargraph generator for Python on this site elsewhere.</p>
<p>The Terminal colours WILL be changed on running but it is simple to return it back to its original state.</p>
<p>Read the code for more information.</p>
<p>Enjoy, (and a Happy New Year)...</p>
<p>Bazza, G0LCU...</p>
Colo(u)rs Inside Text Mode Python... (Python)
2012-08-21T21:01:57-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/578101-colours-inside-text-mode-python/
<p style="color: grey">
Python
recipe 578101
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/amiga/">amiga</a>, <a href="/recipes/tags/apple/">apple</a>, <a href="/recipes/tags/color/">color</a>, <a href="/recipes/tags/colour/">colour</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/display/">display</a>, <a href="/recipes/tags/e_uae/">e_uae</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/macbook_pro/">macbook_pro</a>, <a href="/recipes/tags/windows/">windows</a>, <a href="/recipes/tags/winuae/">winuae</a>).
Revision 2.
</p>
<p>A simple DEMO to show how to enhance Python inside a Terminal. This works on Classic AMIGAs, E-UAE,
Debian Linux 6.0.0, PCLinuxOS 2009, Windows XP and Vista and WinUAE, from Python 1.4.0 to 3.3A2.</p>
<p>Due to a complaint about my _fun_ upload recently I decided to post this so that the MANY can now
find out how to manipulate text inside a Python Terminal window so that it looks much better.</p>
<p>Read the code for more information...</p>
<p>Enjoy finding simple solutions to often very difficult problems...</p>
<p>Bazza...</p>
DUAL 4 Bit Vertical Coloured Analogue Bar Graph Generator DEMO... (Python)
2011-05-04T17:58:08-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/577685-dual-4-bit-vertical-coloured-analogue-bar-graph-ge/
<p style="color: grey">
Python
recipe 577685
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/analogue/">analogue</a>, <a href="/recipes/tags/anim/">anim</a>, <a href="/recipes/tags/audio/">audio</a>, <a href="/recipes/tags/bargraph/">bargraph</a>, <a href="/recipes/tags/color/">color</a>, <a href="/recipes/tags/colour/">colour</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/display/">display</a>, <a href="/recipes/tags/linux/">linux</a>).
</p>
<p>This is a two channel version of the "Four Bit Vertical Coloured Analogue Bar Graph Generator DEMO...".</p>
<p>These are DUAL LED style "VU" meters in the vertical plane...</p>
<p>This is for standard Python 3.x.x.</p>
<p>It has different overload beeps for each channel, and has all the unwanted code has been removed.</p>
<p>It demonstrates how to obtain multichannel ability, (it is possible to add more channels).</p>
<p>Enjoy finding simple solutions to often very difficult problems...</p>
<p>Bazza...</p>
Seven Bit Colored Analogue Bar Graph Generator DEMO... (Python)
2011-03-17T22:14:52-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/577612-seven-bit-colored-analogue-bar-graph-generator-dem/
<p style="color: grey">
Python
recipe 577612
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/analogue/">analogue</a>, <a href="/recipes/tags/anim/">anim</a>, <a href="/recipes/tags/audio/">audio</a>, <a href="/recipes/tags/bargraph/">bargraph</a>, <a href="/recipes/tags/color/">color</a>, <a href="/recipes/tags/colour/">colour</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/display/">display</a>, <a href="/recipes/tags/linux/">linux</a>).
Revision 3.
</p>
<p>..For STANDARD Python 2.6 and above...</p>
<p>This code will display a horizontal full colour analogue "VU" style meter. It displays green for normal, yellow
for warning and red for danger with a critical error beep near the end of full scale, at value 120+.</p>
<p>This version is for Python 2.6 and above and only for the Linux, (*nix?), platform.</p>
<p>It is an "at a glance" display that is in colour rather than having to read say a digitally generated number.</p>
<p>A Python 3.x version can be found here:-</p>
<p><a href="http://www.linuxformat.com/forums/viewtopic.php?t=13443" rel="nofollow">http://www.linuxformat.com/forums/viewtopic.php?t=13443</a></p>
<p>This has uses "for at a glance" voltmeters, ammeters, data-loggers, anemometers etc, etc...</p>
<p>Watch for wordwrapping etc...</p>
<p>NOTE:- This is Public Domain and you may do with it as you please.</p>
<p>73...</p>
<p>Bazza, G0LCU...</p>
<p>Team AMIGA...</p>
Four Bit Vertical Coloured Analogue Bar Graph Generator DEMO... (Python)
2011-04-23T20:50:55-07:00Barry Walkerhttp://code.activestate.com/recipes/users/4177147/http://code.activestate.com/recipes/577675-four-bit-vertical-coloured-analogue-bar-graph-gene/
<p style="color: grey">
Python
recipe 577675
by <a href="/recipes/users/4177147/">Barry Walker</a>
(<a href="/recipes/tags/analogue/">analogue</a>, <a href="/recipes/tags/anim/">anim</a>, <a href="/recipes/tags/audio/">audio</a>, <a href="/recipes/tags/bargraph/">bargraph</a>, <a href="/recipes/tags/color/">color</a>, <a href="/recipes/tags/colour/">colour</a>, <a href="/recipes/tags/demo/">demo</a>, <a href="/recipes/tags/display/">display</a>, <a href="/recipes/tags/linux/">linux</a>).
</p>
<p>This is a(n) LED style "VU" meter in the vertical plane instead of the horizontal one in the recipe below:-</p>
<p><a href="http://code.activestate.com/recipes/577612-seven-bit-colored-analogue-bar-graph-generator-dem/?in=lang-python" rel="nofollow">http://code.activestate.com/recipes/577612-seven-bit-colored-analogue-bar-graph-generator-dem/?in=lang-python</a></p>
<p>It is another "AT A GLANCE" display with an overload error beep too.</p>
<p>This is for Linux only and tested on Python 2.6.x although it should work on earlier 2.x.x versions.</p>
<p>A Python 3.x.x version can be found here:-</p>
<p><a href="http://www.linuxformat.com/forums/viewtopic.php?t=13637" rel="nofollow">http://www.linuxformat.com/forums/viewtopic.php?t=13637</a></p>
<p>This is issued as Public Domain and you may do with it as you please.</p>
<p>Enjoy finding simple solutions to often very difficult problems...</p>