Colour text
Pages: 1 2
|
Test one Test two test |
||||||||||||||||||||||||||||||||||||||||||||
|
testtesttest |
||||||||||||||||||||||||||||||||||||||||||||
|
World Bank data for Switzerland
Created with Currency with data from The World Bank |
||||||||||||||||||||||||||||||||||||||||||||
|
xxxxxxxxxxxx x⠀⠀░░▒▒▓▓██x This is a blue container. |
||||||||||||||||||||||||||||||||||||||||||||
|
If you are going to do clever things, post the source too. |
||||||||||||||||||||||||||||||||||||||||||||
|
This is a blue container.
|
||||||||||||||||||||||||||||||||||||||||||||
|
haha, the forum software is very weird |
||||||||||||||||||||||||||||||||||||||||||||
|
You should see what it looks like on NetSurf. ;) What are you actually trying to do? Looks like an attempt at a sideways bar chart with vivid colours. |
||||||||||||||||||||||||||||||||||||||||||||
|
Heheh, I was worried about that. I suspect it’s possible NetSurf might not render my idea correctly once I get it completed… Right now I’m just trying out ideas and seeing what works, but my plan is to write a script to generate pretty geometric patterns using unicode symbols in different colours. |
||||||||||||||||||||||||||||||||||||||||||||
|
testtest2
░░▒▒▓▓██ ╭──╮╭──╮╭────╮╭────╮ |
||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
|
Oh my god, he’s done a Teletext picture using unicode blocks! 🤯 The code to make it happen runs to 50K…I can grab it with Paint and save it as a PNG in 11K. 😋 If I might suggest an obvious optimisation, don’t spit out This is the top line. I have inserted linefeeds after each colour bit so it doesn’t completely bugger up the forum view in NetSurf. <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(0,0,255);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(16,16,8);">██</span> <span style="color:rgb(0,0,255);">██</span><br /> Quite a mouthful. Surely you could reduce that to something like this (again with inserted lines between each colour change)? <span style="color:rgb(0,0,255);">████████</span> <span style="color:rgb(16,16,8);">██████</span> <span style="color:rgb(0,0,255);">██████████</span> <span style="color:rgb(16,16,8);">██████████████████</span> <span style="color:rgb(0,0,255);">████████████████</span> <span style="color:rgb(16,16,8);">████</span> <span style="color:rgb(0,0,255);">██</span><br /> ████████████████████████████████████████████████████████████████ Yup, that appears to work. I won’t do the rest, ‘cos I am doing this by hand. 🥴 I’m guessing you wrote a program to do this? If so, just look ahead and if the pixel colour is the same as the current, output the ‘██’ and step to the next pixel… |
||||||||||||||||||||||||||||||||||||||||||||
|
Ahh, good point, I should get it to do that. I did write a quick Tcl script to produce that image: package require Tk image create photo p -file [lindex $argv 0] set w [image width p] puts {} for {set y 0} {$y < $h} {incr y} { puts {} exit Unfortunately, I can’t get the forum to stop mangling the code, but you can at least get the idea of how I did it. I’ll try making the change you’re suggesting. |
||||||||||||||||||||||||||||||||||||||||||||
|
╭──╮╭──╮╭────╮╭────╮ ╭╮╭──────╮╭╮╭────╮╭──╮╭╮╭────────╮╭╮╭──╮ |
||||||||||||||||||||||||||||||||||||||||||||
|
Well, given the fact that I still have to figure out each time how to quote within a quote, this is pretty impressive. |
||||||||||||||||||||||||||||||||||||||||||||
|
Of the things I expected to see today, run-length-encoded HTML was not one of them :) |
||||||||||||||||||||||||||||||||||||||||||||
|
Cackles and rubs hands in glee at thought of replacing the engine with GitHub-flavoured MarkDown ;-D |
||||||||||||||||||||||||||||||||||||||||||||
|
Not your fault, Paul, I think the textile stuff is honestly pretty broken, unintuitive, and not very good. Even doing normal stuff like posting code snippets seems impossible because it corrupts the content of your messages. I need to find a way to get it to stop combining spaces… ,,,,,,,,╭──╮,,,,,,,, ,,,,,,,,╰─╮│,,,,,,,, ,,,,,,╭──╮│╰─╮,,,,,, ,,,,,,│╭─╯│╭─╯,,,,,, ,,,,╭─╯│╭╮││╭──╮,,,, ,,,,│╭─╯││╰╯│╭─╯,,,, ,,╭╮││╭─╯╰─╮││╭╮╭╮,, ,,││╰╯╰─╮╭─╯││││││,, ╭─╯╰───╮││╭─╯││││╰─╮ ╰──────╯╰╯╰──╯│││,,│ ╭────────╮╭╮╭─╯││,,│ ╰────────╯│││╭─╯╰──╯ ,,,,,,╭───╯│││,,,,,, ,,,,,,╰───╮│╰╯,,,,,, ,,,,,,╭╮╭╮││╭╮,,,,,, ,,,,,,││││╰╯││,,,,,, ,,,,,,│││╰──╯│,,,,,, ,,,,,,││╰────╯,,,,,, ,,,,,,│╰───╮╭╮,,,,,, ,,,,,,╰────╯││,,,,,, ,,,,,,╭─────╯│,,,,,, ,,,,,,╰──────╯,,,,,, |
||||||||||||||||||||||||||||||||||||||||||||
|
Yes. I’m not joking about Markdown, but it’d need backwards compatibility with Textile for existing posts. It won’t happen for ages because all the engines for it require much newer Rails stack software than we currently run. My company might be trialling a 4 day week soon; if they do, game on – I’ll have a day a week to start modernising the infrastructure. |
||||||||||||||||||||||||||||||||||||||||||||
|
Ah, thank you Andrew, I appreciate that. ,,,,,,,,,,,,,,,,,,,,,,,,╭──╮╭──────╮ |
||||||||||||||||||||||||||||||||||||||||||||
|
,,,,,,,,,,,,╭──╮,,,,,,,,,,,, ,,,,,,,,,,,,│,,│,,,,,,,,,,,, ,,,,,,,,╭───╯,,╰───╮,,,,,,,, ,,,,,,,,╰───╮,,╭───╯,,,,,,,, ,,,,╭──────╮│,,│╭──╮╭──╮,,,, ,,,,│,,╭───╯╰──╯│,,││,,│,,,, ╭───╯,,│╭───────╯,,││,,│╭──╮ │,,╭───╯│,,╭───────╯│,,││,,│ │,,│╭──╮│,,│╭───────╯,,││,,│ ╰──╯│,,│╰──╯╰──────────╯│,,│ ╭──╮│,,╰───────────╮╭──╮│,,│ │,,│╰──────────────╯│,,││,,│ │,,│╭──────╮╭───────╯,,││,,│ │,,│╰───╮,,│╰───────╮,,││,,│ │,,╰───╮│,,╰───────╮│,,││,,│ │,,╭───╯╰──────────╯╰──╯╰──╯ │,,│╭──────────╮╭──────────╮ ╰──╯│,,╭────╮,,││,,,,,,╭───╯ ,,,,│,,│╭──╮│,,││,,,,,,│,,,, ,,,,╰──╯│,,│╰──╯╰──────╯,,,, ,,,,,,,,│,,╰───────╮,,,,,,,, ,,,,,,,,╰───╮,,╭───╯,,,,,,,, ,,,,,,,,,,,,│,,│,,,,,,,,,,,, ,,,,,,,,,,,,╰──╯,,,,,,,,,,,, |
||||||||||||||||||||||||||||||||||||||||||||
|
,,,,,,,,,,,,,,,,╭──────╮,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,╰───╮,,│,,,,,,,,,,,,,,,, ,,,,,,,,,,,,╭──────╮│,,╰───╮,,,,,,,,,,,, ,,,,,,,,,,,,│,,╭───╯│,,╭───╯,,,,,,,,,,,, ,,,,,,,,╭───╯,,│╭──╮│,,│╭──────╮,,,,,,,, ,,,,,,,,│,,╭───╯│,,│╰──╯│,,╭───╯,,,,,,,, ,,,,╭──╮│,,│╭───╯,,╰───╮│,,│╭──╮╭──╮,,,, ,,,,│,,│╰──╯╰───╮,,╭───╯│,,││,,││,,│,,,, ╭───╯,,╰───────╮│,,│╭───╯,,││,,││,,╰───╮ ╰──────────────╯╰──╯╰──────╯│,,││,,,,,,│ ╭──────────────────╮╭──╮╭───╯,,││,,,,,,│ ╰──────────────────╯│,,││,,╭───╯╰──────╯ ,,,,,,,,,,,,╭───────╯,,││,,│,,,,,,,,,,,, ,,,,,,,,,,,,╰───────╮,,│╰──╯,,,,,,,,,,,, ,,,,,,,,,,,,╭──╮╭──╮│,,│╭──╮,,,,,,,,,,,, ,,,,,,,,,,,,│,,││,,│╰──╯│,,│,,,,,,,,,,,, ,,,,,,,,,,,,│,,││,,╰────╯,,│,,,,,,,,,,,, ,,,,,,,,,,,,│,,│╰──────────╯,,,,,,,,,,,, ,,,,,,,,,,,,│,,╰───────╮╭──╮,,,,,,,,,,,, ,,,,,,,,,,,,╰──────────╯│,,│,,,,,,,,,,,, ,,,,,,,,,,,,╭───────────╯,,│,,,,,,,,,,,, ,,,,,,,,,,,,╰──────────────╯ |
||||||||||||||||||||||||||||||||||||||||||||
|
,,,,╭──────────────────╮╭──╮,,,, ,,,,╰──────────────────╯│,,│,,,, ╭──────────╮╭──╮╭───────╯,,│╭──╮ │,,,,,,╭───╯│,,││,,╭───────╯│,,│ │,,,,,,│╭───╯,,││,,│╭───────╯,,│ ╰──────╯╰───╮,,│╰──╯╰───────╮,,│ ╭──────────╮│,,│╭──────────╮│,,│ │,,╭───────╯│,,││,,╭────╮,,│╰──╯ │,,│╭──────╮│,,││,,│╭──╮│,,│╭──╮ │,,│╰───╮,,│╰──╯╰──╯│,,│╰──╯│,,│ │,,│╭──╮│,,╰───╮╭───╯,,╰───╮│,,│ ╰──╯│,,│╰───╮,,││,,╭───────╯│,,│ ╭───╯,,╰───╮│,,││,,│╭──╮╭───╯,,│ ╰───╮,,╭───╯╰──╯╰──╯│,,││,,╭───╯ ,,,,│,,│╭───────────╯,,││,,│,,,, ,,,,╰──╯╰──────────────╯╰──╯,,,, |
||||||||||||||||||||||||||||||||||||||||||||
|
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,╭──╮ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│,,│ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,╭───────╯,,│ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,╰───────╮,,│ ,,,,,,,,,,,,,,,,,,,,,,,,╭──────╮╭──╮│,,│ ,,,,,,,,,,,,,,,,,,,,,,,,│,,╭───╯│,,│╰──╯ ,,,,,,,,,,,,╭──╮╭──╮╭───╯,,│╭───╯,,│,,,, ,,,,,,,,,,,,│,,││,,│╰───╮,,││,,,,,,│,,,, ╭──╮╭───────╯,,││,,╰───╮│,,││,,,,,,│,,,, │,,││,,╭───────╯╰───╮,,│╰──╯╰──────╯,,,, │,,││,,│╭──────────╮│,,╰───╮,,,,,,,,,,,, │,,│╰──╯│,,╭───────╯╰──────╯,,,,,,,,,,,, │,,│╭───╯,,│╭──────────╮╭──╮,,,,,,,,,,,, │,,│╰──────╯╰───────╮,,││,,│,,,,,,,,,,,, │,,╰───╮,,,,,,,,╭──╮│,,││,,│,,,,,,,,,,,, ╰──────╯,,,,,,,,│,,││,,││,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,││,,││,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,│╰──╯│,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,╰───╮│,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,╭───╯│,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,│╭──╮│,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,╰──╯│,,│╰──╯,,,,,,,,,,,, ,,,,,,,,,,,,,,,,╭───╯,,╰───╮,,,,,,,,,,,, ,,,,,,,,,,,,,,,,╰───╮,,╭───╯,,,,,,,,,,,, ,,,,,,,,,,,,,,,,╭──╮│,,│╭──╮,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,│╰──╯│,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,╰────╯,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,╰──────────╯,,,,,,,,,,,, |
||||||||||||||||||||||||||||||||||||||||||||
|
quick test for rss feeder |
Pages: 1 2