Colour text
Pages: 1 2
Patrick M (2888) 126 posts |
Test one Test two test |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
testtesttest |
||||||||||||||||||||||||||||||||||||||||||||
Kevin (224) 322 posts |
World Bank data for Switzerland
Created with Currency with data from The World Bank |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
xxxxxxxxxxxx x⠀⠀░░▒▒▓▓██x This is a blue container. |
||||||||||||||||||||||||||||||||||||||||||||
David J. Ruck (33) 1635 posts |
If you are going to do clever things, post the source too. |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
This is a blue container.
|
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
haha, the forum software is very weird |
||||||||||||||||||||||||||||||||||||||||||||
Rick Murray (539) 13840 posts |
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. |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
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. |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
testtest2
░░▒▒▓▓██ ╭──╮╭──╮╭────╮╭────╮ |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
|
||||||||||||||||||||||||||||||||||||||||||||
Rick Murray (539) 13840 posts |
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… |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
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. |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
╭──╮╭──╮╭────╮╭────╮ ╭╮╭──────╮╭╮╭────╮╭──╮╭╮╭────────╮╭╮╭──╮ |
||||||||||||||||||||||||||||||||||||||||||||
Paul Sprangers (346) 524 posts |
Well, given the fact that I still have to figure out each time how to quote within a quote, this is pretty impressive. |
||||||||||||||||||||||||||||||||||||||||||||
Chris Mahoney (1684) 2165 posts |
Of the things I expected to see today, run-length-encoded HTML was not one of them :) |
||||||||||||||||||||||||||||||||||||||||||||
Andrew Hodgkinson (6) 465 posts |
Cackles and rubs hands in glee at thought of replacing the engine with GitHub-flavoured MarkDown ;-D |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
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… ,,,,,,,,╭──╮,,,,,,,, ,,,,,,,,╰─╮│,,,,,,,, ,,,,,,╭──╮│╰─╮,,,,,, ,,,,,,│╭─╯│╭─╯,,,,,, ,,,,╭─╯│╭╮││╭──╮,,,, ,,,,│╭─╯││╰╯│╭─╯,,,, ,,╭╮││╭─╯╰─╮││╭╮╭╮,, ,,││╰╯╰─╮╭─╯││││││,, ╭─╯╰───╮││╭─╯││││╰─╮ ╰──────╯╰╯╰──╯│││,,│ ╭────────╮╭╮╭─╯││,,│ ╰────────╯│││╭─╯╰──╯ ,,,,,,╭───╯│││,,,,,, ,,,,,,╰───╮│╰╯,,,,,, ,,,,,,╭╮╭╮││╭╮,,,,,, ,,,,,,││││╰╯││,,,,,, ,,,,,,│││╰──╯│,,,,,, ,,,,,,││╰────╯,,,,,, ,,,,,,│╰───╮╭╮,,,,,, ,,,,,,╰────╯││,,,,,, ,,,,,,╭─────╯│,,,,,, ,,,,,,╰──────╯,,,,,, |
||||||||||||||||||||||||||||||||||||||||||||
Andrew Hodgkinson (6) 465 posts |
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. |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
Ah, thank you Andrew, I appreciate that. ,,,,,,,,,,,,,,,,,,,,,,,,╭──╮╭──────╮ |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
,,,,,,,,,,,,╭──╮,,,,,,,,,,,, ,,,,,,,,,,,,│,,│,,,,,,,,,,,, ,,,,,,,,╭───╯,,╰───╮,,,,,,,, ,,,,,,,,╰───╮,,╭───╯,,,,,,,, ,,,,╭──────╮│,,│╭──╮╭──╮,,,, ,,,,│,,╭───╯╰──╯│,,││,,│,,,, ╭───╯,,│╭───────╯,,││,,│╭──╮ │,,╭───╯│,,╭───────╯│,,││,,│ │,,│╭──╮│,,│╭───────╯,,││,,│ ╰──╯│,,│╰──╯╰──────────╯│,,│ ╭──╮│,,╰───────────╮╭──╮│,,│ │,,│╰──────────────╯│,,││,,│ │,,│╭──────╮╭───────╯,,││,,│ │,,│╰───╮,,│╰───────╮,,││,,│ │,,╰───╮│,,╰───────╮│,,││,,│ │,,╭───╯╰──────────╯╰──╯╰──╯ │,,│╭──────────╮╭──────────╮ ╰──╯│,,╭────╮,,││,,,,,,╭───╯ ,,,,│,,│╭──╮│,,││,,,,,,│,,,, ,,,,╰──╯│,,│╰──╯╰──────╯,,,, ,,,,,,,,│,,╰───────╮,,,,,,,, ,,,,,,,,╰───╮,,╭───╯,,,,,,,, ,,,,,,,,,,,,│,,│,,,,,,,,,,,, ,,,,,,,,,,,,╰──╯,,,,,,,,,,,, |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
,,,,,,,,,,,,,,,,╭──────╮,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,╰───╮,,│,,,,,,,,,,,,,,,, ,,,,,,,,,,,,╭──────╮│,,╰───╮,,,,,,,,,,,, ,,,,,,,,,,,,│,,╭───╯│,,╭───╯,,,,,,,,,,,, ,,,,,,,,╭───╯,,│╭──╮│,,│╭──────╮,,,,,,,, ,,,,,,,,│,,╭───╯│,,│╰──╯│,,╭───╯,,,,,,,, ,,,,╭──╮│,,│╭───╯,,╰───╮│,,│╭──╮╭──╮,,,, ,,,,│,,│╰──╯╰───╮,,╭───╯│,,││,,││,,│,,,, ╭───╯,,╰───────╮│,,│╭───╯,,││,,││,,╰───╮ ╰──────────────╯╰──╯╰──────╯│,,││,,,,,,│ ╭──────────────────╮╭──╮╭───╯,,││,,,,,,│ ╰──────────────────╯│,,││,,╭───╯╰──────╯ ,,,,,,,,,,,,╭───────╯,,││,,│,,,,,,,,,,,, ,,,,,,,,,,,,╰───────╮,,│╰──╯,,,,,,,,,,,, ,,,,,,,,,,,,╭──╮╭──╮│,,│╭──╮,,,,,,,,,,,, ,,,,,,,,,,,,│,,││,,│╰──╯│,,│,,,,,,,,,,,, ,,,,,,,,,,,,│,,││,,╰────╯,,│,,,,,,,,,,,, ,,,,,,,,,,,,│,,│╰──────────╯,,,,,,,,,,,, ,,,,,,,,,,,,│,,╰───────╮╭──╮,,,,,,,,,,,, ,,,,,,,,,,,,╰──────────╯│,,│,,,,,,,,,,,, ,,,,,,,,,,,,╭───────────╯,,│,,,,,,,,,,,, ,,,,,,,,,,,,╰──────────────╯ |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
,,,,╭──────────────────╮╭──╮,,,, ,,,,╰──────────────────╯│,,│,,,, ╭──────────╮╭──╮╭───────╯,,│╭──╮ │,,,,,,╭───╯│,,││,,╭───────╯│,,│ │,,,,,,│╭───╯,,││,,│╭───────╯,,│ ╰──────╯╰───╮,,│╰──╯╰───────╮,,│ ╭──────────╮│,,│╭──────────╮│,,│ │,,╭───────╯│,,││,,╭────╮,,│╰──╯ │,,│╭──────╮│,,││,,│╭──╮│,,│╭──╮ │,,│╰───╮,,│╰──╯╰──╯│,,│╰──╯│,,│ │,,│╭──╮│,,╰───╮╭───╯,,╰───╮│,,│ ╰──╯│,,│╰───╮,,││,,╭───────╯│,,│ ╭───╯,,╰───╮│,,││,,│╭──╮╭───╯,,│ ╰───╮,,╭───╯╰──╯╰──╯│,,││,,╭───╯ ,,,,│,,│╭───────────╯,,││,,│,,,, ,,,,╰──╯╰──────────────╯╰──╯,,,, |
||||||||||||||||||||||||||||||||||||||||||||
Patrick M (2888) 126 posts |
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,╭──╮ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│,,│ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,╭───────╯,,│ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,╰───────╮,,│ ,,,,,,,,,,,,,,,,,,,,,,,,╭──────╮╭──╮│,,│ ,,,,,,,,,,,,,,,,,,,,,,,,│,,╭───╯│,,│╰──╯ ,,,,,,,,,,,,╭──╮╭──╮╭───╯,,│╭───╯,,│,,,, ,,,,,,,,,,,,│,,││,,│╰───╮,,││,,,,,,│,,,, ╭──╮╭───────╯,,││,,╰───╮│,,││,,,,,,│,,,, │,,││,,╭───────╯╰───╮,,│╰──╯╰──────╯,,,, │,,││,,│╭──────────╮│,,╰───╮,,,,,,,,,,,, │,,│╰──╯│,,╭───────╯╰──────╯,,,,,,,,,,,, │,,│╭───╯,,│╭──────────╮╭──╮,,,,,,,,,,,, │,,│╰──────╯╰───────╮,,││,,│,,,,,,,,,,,, │,,╰───╮,,,,,,,,╭──╮│,,││,,│,,,,,,,,,,,, ╰──────╯,,,,,,,,│,,││,,││,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,││,,││,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,│╰──╯│,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,╰───╮│,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,╭───╯│,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,│╭──╮│,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,╰──╯│,,│╰──╯,,,,,,,,,,,, ,,,,,,,,,,,,,,,,╭───╯,,╰───╮,,,,,,,,,,,, ,,,,,,,,,,,,,,,,╰───╮,,╭───╯,,,,,,,,,,,, ,,,,,,,,,,,,,,,,╭──╮│,,│╭──╮,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,│╰──╯│,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,│,,╰────╯,,│,,,,,,,,,,,, ,,,,,,,,,,,,,,,,╰──────────╯,,,,,,,,,,,, |
||||||||||||||||||||||||||||||||||||||||||||
DownUnderROUser (1587) 127 posts |
quick test for rss feeder |
Pages: 1 2