Skip to content
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

(pretty stupid idea) character palette #1857

Open
tizu69 opened this issue Jun 9, 2024 · 6 comments
Open

(pretty stupid idea) character palette #1857

tizu69 opened this issue Jun 9, 2024 · 6 comments
Labels
area-Core This affects CC's core (the Lua runtime, APIs, computer internals). area-CraftOS This affects CraftOS, or any other Lua portions of the mod. area-Minecraft This affects CC's Minecraft-specific content. enhancement An extension of a feature or a new feature.

Comments

@tizu69
Copy link
Contributor

tizu69 commented Jun 9, 2024

yk the color palette? that's pretty cool, righ? now, that applies to colors. in theory you can have infinite, just not at once :)
now, ever wanted to build a ui, but turns out you're missing some super weird character? you could use a resource pack, sure, but what abt servers? ok so basically-

Not sure if I like the syntax, but something like this. The 1px border is also included.

term.setPaletteChar("\x90", {
  "        ",
  "        ",
  "     X  ",
  "    XX  ",
  "        ",
  "        ",
  "  XXXX  ",
  "        ",
  "        ",
  "XX  XX  ",
  " X      ",
})

^ fyi, this isn't supposed to represent anythig.

This would allow for somewhat higher resolution, but still be locked to oh so many characters. This could be treated as a limited graphics mode ig, that doesn't have the issue of having to send huge amounts of data to the client, as it's all just one of the 256 characters after all. idk.

@tizu69 tizu69 added the enhancement An extension of a feature or a new feature. label Jun 9, 2024
@SquidDev SquidDev added area-CraftOS This affects CraftOS, or any other Lua portions of the mod. area-Core This affects CC's core (the Lua runtime, APIs, computer internals). area-Minecraft This affects CC's Minecraft-specific content. labels Jun 20, 2024
@m-doescode
Copy link

This is really fun and I support the idea, but I worry that this takes away from some of the limitations of computercraft that requires out-of-box thinking.

Still, if this ever gets added I'll be quite happy!

@dgendreau
Copy link

dgendreau commented Feb 10, 2025

The term you are looking for is not a character palette, its a custom Bitmap Font. I agree this could be fun in programs. CC Tweaked Rogue-like game anyone? Who knows, it might even make simple Icons, Sprites and mouse cursors possible?

@tizu69
Copy link
Contributor Author

tizu69 commented Feb 11, 2025

This is really fun and I support the idea, but I worry that this takes away from some of the limitations of computercraft that requires out-of-box thinking.

Still, if this ever gets added I'll be quite happy!

Eh? You're still limited by the actual char count of 256, so you're gonna have to sacrifice either letters or symbols.

@m-doescode
Copy link

Eh? You're still limited by the actual char count of 256, so you're gonna have to sacrifice either letters or symbols.

I guess so. It creates its own puzzle then. I should've been more clear that I meant it would make sub-pixel (using chars 127-160) and other workarounds obsolete, not that it gets rid of the challenge altogether.

But youre right, I think having to work with a limited character set provides its own challenge so disregard my initial comment.

@tizu69
Copy link
Contributor Author

tizu69 commented Feb 12, 2025

I should've been more clear that I meant it would make sub-pixel (using chars 127-160) and other workarounds obsolete.

Disagree. Older programs will still use that, and same applies if people want to do simple applications. Where I think this would really shine is for icons and the like, for more complex applications.

@m-doescode
Copy link

Disagree. Older programs will still use that, and same applies if people want to do simple applications. Where I think this would really shine is for icons and the like, for more complex applications.

Yes, I see that now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Core This affects CC's core (the Lua runtime, APIs, computer internals). area-CraftOS This affects CraftOS, or any other Lua portions of the mod. area-Minecraft This affects CC's Minecraft-specific content. enhancement An extension of a feature or a new feature.
Projects
None yet
Development

No branches or pull requests

4 participants