-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add background colors to ASCII art #42543
Comments
Point 2 works fine for me: [
{
"type": "ascii_art",
"id": "glass_bottle",
"picture": [
"",
"",
"",
"<color_white_red> ║ ║",
" ║ ║",
" ║ ║",
" ╔═╝ ╚═╗",
" ╔╝ #╚╗",
" ╔╝ ### ╚╗",
" ║ #### ║",
" ║ #### ║",
" ║ #### ║",
" ║###### ║",
" ║#### ║",
" ║### ║",
" ║# ║",
" ║ ║",
" ║ ║",
" ║ ║",
" ║ ║",
"0123456789012345678901234567890123456789A"
]
}
] |
Regarding point 1 - it is not unique to color tags with background color. Image is displayed fine in the end, despite error messages, [
{
"type": "ascii_art",
"id": "glass_bottle",
"picture": [
"",
"",
"",
"<color_white_red> ║ ║",
" ║ ║",
" ║ ║",
" ╔═╝ ╚═╗",
" ╔╝ #╚╗",
" ╔╝ ### ╚╗",
" ║ #### ║",
" ║ #### ║",
" ║ #### ║",
" ║###### ║",
" ║#### ║",
" ║### ║",
" ║# ║",
" ║ ║",
" ║ ║",
" ║ ║",
" ║ ║",
"<color_green>0123456789012345678901234567890123456789A",
"<color_red_white>0123456789012345678901234567890123456789A"
]
}
] |
The picture above looks fine, but when I did this
|
|
Point 3 is related to curses and terminals. It looks like there are different limits for color pairs on different terminals (https://linux.die.net/man/3/init_pair). We can probably add more color pairs to the code, but they won't guaranteed to work on all terminals. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
This issue has been automatically closed due to lack of activity. This does not mean that we do not value the issue. Feel free to request that it be re-opened if you are going to actively work on it |
Is your feature request related to a problem? Please describe.
Currently you can add background colors to ASCII art, but they will behave badly:
Describe the solution you'd like
Make color tags with background colors not count towards character limit in a single line, make them apply to next lines, and add more foreground and background combinations.
Describe alternatives you've considered
Leave it as it is.
Additional context
This idea was suggested during my discussion with Kyzrati, the developer of REXPaint, an ASCII art tool. Soon he'll release a new version of REXPaint, which will include support for exporting art in a format readable by CDDA. This will include foreground and background colors, but for the background colors to work, they have to be implemented in the game first.
The text was updated successfully, but these errors were encountered: