UDGs in forum threads?

Broken link? Feature request? Anything related to the Spectrum Computing website here.
Post Reply
User avatar
R-Tape
Site Admin
Posts: 6409
Joined: Thu Nov 09, 2017 11:46 am

UDGs in forum threads?

Post by R-Tape »

Is there a way we can type UDGs as 1 & 0s in a forum post, and have it displayed as easily recognised pixels? Something like:

[udg]
11111111
10000001
10000001
10000001
10000001
10000001
10000001
11111111
[/udg]

Is there a website that could be linked to, or is it something someone can code? Or some other way?
User avatar
Lee Bee
Dynamite Dan
Posts: 1297
Joined: Sat Nov 16, 2019 11:01 pm
Location: Devon, England
Contact:

Re: UDGs in forum threads?

Post by Lee Bee »

You could generate your avatar this way:

Image
User avatar
R-Tape
Site Admin
Posts: 6409
Joined: Thu Nov 09, 2017 11:46 am

Re: UDGs in forum threads?

Post by R-Tape »

Or is there an ASCII character we can use that looks like a black space and a white space?
User avatar
Lee Bee
Dynamite Dan
Posts: 1297
Joined: Sat Nov 16, 2019 11:01 pm
Location: Devon, England
Contact:

Re: UDGs in forum threads?

Post by Lee Bee »

Maybe get Peter to add a black square and white square to the smiley set?

:?: :?: :?: :?: :?: :?: :?: :?:
:?: :?: :?: :mrgreen: :mrgreen: :mrgreen: :?: :?:
:?: :?: :mrgreen: :?: :?: :?: :mrgreen: :?:
:?: :?: :?: :?: :?: :mrgreen: :?: :?:
:?: :?: :?: :?: :mrgreen: :?: :?: :?:
:?: :?: :?: :?: :?: :?: :?: :?:
:?: :?: :?: :?: :mrgreen: :?: :?: :?:
:?: :?: :?: :?: :?: :?: :?: :?:
User avatar
PROSM
Manic Miner
Posts: 476
Joined: Fri Nov 17, 2017 7:18 pm
Location: Sunderland, England
Contact:

Re: UDGs in forum threads?

Post by PROSM »

Could use a code block with @ signs (or any similarly "full" character like a hash) and spaces. I'm not sure a whole BBCode plugin for this is a good idea, especially if it ends up breaking in the future.

Code: Select all

 @@@@@@ 
@      @
@ @  @ @
@ @  @ @
@      @
@ @  @ @
@  @@  @
@      @
 @@@@@@ 
Perhaps have some reference axes on the top and side to indicate where the image starts if e.g. the leftmost column is blank.
Lee Bee wrote: Fri Nov 17, 2023 4:16 pm Maybe get Peter to add a black square and white square to the smiley set?
On reflection, I prefer your smilies idea! :lol:
Last edited by PROSM on Fri Nov 17, 2023 4:21 pm, edited 1 time in total.
All software to-date
Working on something, as always.
User avatar
Red Zebra
Drutt
Posts: 36
Joined: Fri Jan 20, 2023 7:53 am

Re: UDGs in forum threads?

Post by Red Zebra »

A code block and ascii squares/spaces almost does it...

Code: Select all

 ██████ 
█      █
█ █  █ █
█      █
█ █  █ █
█  ██  █
█      █
 ██████ 
User avatar
R-Tape
Site Admin
Posts: 6409
Joined: Thu Nov 09, 2017 11:46 am

Re: UDGs in forum threads?

Post by R-Tape »

:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :dance :dance: :dance :oops: :oops:
:oops: :oops: :dance :oops: :oops: :oops: :dance :oops:
:oops: :oops: :oops: :oops: :oops: :dance :oops: :oops:
:oops: :oops: :oops: :oops: :dance :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :dance :oops: :oops: :oops:
:oops: :oops: :oops: :oops: :oops: :oops: :oops: :oops:

The dancing banana. Always the elegant solution.
User avatar
R-Tape
Site Admin
Posts: 6409
Joined: Thu Nov 09, 2017 11:46 am

Re: UDGs in forum threads?

Post by R-Tape »

Lee Bee wrote: Fri Nov 17, 2023 4:16 pm Maybe get Peter to add a black square and white square to the smiley set?
I like the sound of this one. It also makes it very easy to draw one just by clicking.
User avatar
R-Tape
Site Admin
Posts: 6409
Joined: Thu Nov 09, 2017 11:46 am

Re: UDGs in forum threads?

Post by R-Tape »

Red Zebra wrote: Fri Nov 17, 2023 4:20 pm A code block and ascii squares/spaces almost does it...
Yeah pretty good. How do you type that exactly?
User avatar
PeterJ
Site Admin
Posts: 6879
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: UDGs in forum threads?

Post by PeterJ »

It's ALT + 254 @R-Tape

https://theasciicode.com.ar/extended-as ... e-254.html

I used Left ALT + Numeric keyboard (Windows PC)
User avatar
uglifruit
Manic Miner
Posts: 703
Joined: Thu Jan 17, 2019 12:41 pm
Location: Leicester
Contact:

Re: UDGs in forum threads?

Post by uglifruit »

If forum users can't just immediately turn ...

Code: Select all

	defb 126,129,165,129,153,153,129,126
... into a UDG in their mind, then should they be allowed here? :D
CLEAR 23855
Timmy
Manic Miner
Posts: 230
Joined: Sat Apr 23, 2022 7:13 pm
Location: The Netherlands

Re: UDGs in forum threads?

Post by Timmy »

Is this seriously a big deal?

Code: Select all

⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜🟥🟥⬜🟥🟥⬜
⬜🟥🟥🟥🟥🟥🟥🟥
⬜🟥🟥🟥🟥🟥🟥🟥
⬜⬜🟥🟥🟥🟥🟥⬜
⬜⬜⬜🟥🟥🟥⬜⬜
⬜⬜⬜⬜🟥⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜
User avatar
p13z
Manic Miner
Posts: 611
Joined: Sun Feb 17, 2019 10:41 pm
Location: UK
Contact:

Re: UDGs in forum threads?

Post by p13z »

uglifruit wrote: Fri Nov 17, 2023 6:09 pm If forum users can't just immediately turn ...



... into a UDG in their mind, then should they be allowed here? :D

Code: Select all

	DATA 126,129,165,129,153,153,129,126
FTFY
User avatar
R-Tape
Site Admin
Posts: 6409
Joined: Thu Nov 09, 2017 11:46 am

Re: UDGs in forum threads?

Post by R-Tape »

Timmy wrote: Fri Nov 17, 2023 6:34 pm Is this seriously a big deal?
For me yes! Very cool. What did you type?
User avatar
R-Tape
Site Admin
Posts: 6409
Joined: Thu Nov 09, 2017 11:46 am

Re: UDGs in forum threads?

Post by R-Tape »

p13z wrote: Fri Nov 17, 2023 7:04 pm

Code: Select all

REM UDG optical illusion of Lego surprised face/Hitler
DATA 126,129,165,129,153,153,129,126
FTFY
User avatar
PQR
Manic Miner
Posts: 241
Joined: Sat May 12, 2018 11:35 am
Contact:

Re: UDGs in forum threads?

Post by PQR »

Here is an example using unicode characters U+25A0 and U+25A1:

□□□□□□□□
□■□□□□■□
□□■□□■□□
□□□■■□□□
□■■■■■■□
□□□■■□□□
□□■□□■□□
□■□□□□■□
User avatar
PQR
Manic Miner
Posts: 241
Joined: Sat May 12, 2018 11:35 am
Contact:

Re: UDGs in forum threads?

Post by PQR »

This one is using unicode characters U+2B1B and U+2B1C:

⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬜⬜⬜⬜⬛⬜
⬜⬜⬛⬜⬜⬛⬜⬜
⬜⬜⬜⬛⬛⬜⬜⬜
⬜⬛⬛⬛⬛⬛⬛⬜
⬜⬜⬜⬛⬛⬜⬜⬜
⬜⬜⬛⬜⬜⬛⬜⬜
⬜⬛⬜⬜⬜⬜⬛⬜
User avatar
PQR
Manic Miner
Posts: 241
Joined: Sat May 12, 2018 11:35 am
Contact:

Re: UDGs in forum threads?

Post by PQR »

(This might open up the box of Pandora though..!)

⬜⬜⬛⬛⬛⬛⬜⬜ ⬜⬜⬜⬜⬜⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬛⬜⬜⬜⬜⬛⬜ ⬜⬜⬜⬛⬛⬜⬜⬜ ⬜⬜⬛⬛⬛⬛⬜⬜ ⬜⬜⬛⬛⬛⬛⬜⬜ ⬜⬜⬛⬛⬛⬛⬜⬜
⬛⬜⬜⬛⬛⬜⬜⬛ ⬜⬜⬛⬜⬛⬜⬜⬜ ⬜⬛⬜⬜⬜⬜⬛⬜ ⬜⬛⬜⬜⬜⬜⬛⬜ ⬜⬛⬜⬜⬜⬜⬛⬜
⬛⬜⬛⬜⬜⬜⬜⬛ ⬜⬜⬜⬜⬛⬜⬜⬜ ⬜⬛⬜⬜⬜⬜⬛⬜ ⬜⬜⬛⬛⬛⬛⬜⬜ ⬜⬜⬜⬜⬜⬜⬛⬜
⬛⬜⬛⬜⬜⬜⬜⬛ ⬜⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬛⬛⬛⬛⬛⬜ ⬜⬛⬜⬜⬜⬜⬛⬜ ⬜⬜⬛⬛⬛⬛⬜⬜
⬛⬜⬜⬛⬛⬜⬜⬛ ⬜⬜⬜⬜⬛⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬛⬜ ⬜⬛⬜⬜⬜⬜⬛⬜ ⬜⬛⬜⬜⬜⬜⬜⬜
⬜⬛⬜⬜⬜⬜⬛⬜ ⬜⬜⬛⬛⬛⬛⬛⬜ ⬜⬜⬛⬛⬛⬛⬜⬜ ⬜⬜⬛⬛⬛⬛⬜⬜ ⬜⬛⬛⬛⬛⬛⬛⬜
⬜⬜⬛⬛⬛⬛⬜⬜ ⬜⬜⬜⬜⬜⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬜⬜ ⬜⬜⬜⬜⬜⬜⬜⬜
User avatar
Lee Bee
Dynamite Dan
Posts: 1297
Joined: Sat Nov 16, 2019 11:01 pm
Location: Devon, England
Contact:

Re: UDGs in forum threads?

Post by Lee Bee »

It seems the big advantage of using the Unicode/ASCII/Timmy's method is that you can see the graphic while you're editing (WYSIWYG), which is really helpful. With the smiley method you're basically working in the dark.

On the other hand, the advantage of the smiley method is a quick click to insert the graphic. Plus, the smiley method can produce a perfectly square arrangement, with a little adjustment of the graphics…

The forum puts a 5px gap between each smiley horizontally, and a 1px gap vertically. To compensate for this, I recommend using graphics like these below - squares with a transparent 4px gap beneath them, making everything perfectly square:

0: Image
1: Image

Here's how it (should) look, with 3 colour suggestions, displayed over the three forum skins:

Image
User avatar
Lee Bee
Dynamite Dan
Posts: 1297
Joined: Sat Nov 16, 2019 11:01 pm
Location: Devon, England
Contact:

Re: UDGs in forum threads?

Post by Lee Bee »

Another option is www.piskelapp.com/p/create/sprite - just start drawing a sprite, click export then "upload", and it gives you a URL you can instantly link to. Not as immediate as a built-in forum tool, and pixels are actual size, but a pretty convenient tool nevertheless.

Image
Timmy
Manic Miner
Posts: 230
Joined: Sat Apr 23, 2022 7:13 pm
Location: The Netherlands

Re: UDGs in forum threads?

Post by Timmy »

R-Tape wrote: Fri Nov 17, 2023 7:50 pm For me yes! Very cool. What did you type?
I don't understand what you mean, but I used an online emoji editor to draw it.

https://brush.ninja/create/emoji-art/

The standard size is 10x10, but with a bit creative cut and paste afterwards it should work. (Yes, they have all kinds of colours too.)
Post Reply