This could be particularly helpful maybe for Slice 9(aka 9 Patch):
http://renderhjs.net/shoebox/
I had a look at this. Not sure how much help you need to make Nine Patch textures, though. Just mark the black pixels where they can stretch
Great work Hapax!
Thanks!
it looks awesome, good job
Thanks!
Impressive, even the character set matches.
I created the texture myself...from a screenshot of a Windows console after printing out the entire ASCII set:
It was edited to change the characters from the default grey to the final perfect white.
Afterwards the background was removed (not in the image shown above) to allow just the characters to be used in Console Screen, since Console Screen can display its own cell backgrounds.
#include <Dev.hpp>
#include <Plinth.hpp>
int main()
{
DEV::KeepConsoleOpen keepConsoleOpen;
const bool displayCharacterIndex{ false };
const unsigned int gridWidth{ 16u };
for (unsigned int y{ 0 }; y < 256 / gridWidth; ++y)
{
for (unsigned int x{ 0 }; x < gridWidth; ++x)
{
const unsigned int index{ y * gridWidth + x };
std::string output;
if (displayCharacterIndex)
output += pl::padStringLeft(pl::stringFrom(index), 3) + ": "; // display character index
if (index != 7 && index != 8 && index != 9 && index != 10 && index != 13)
output += static_cast<char>(index);
output = pl::padStringRight(output, (displayCharacterIndex ? 8 : 1)); // pad to 8 cells (for displaying character index) or 1 cell (for characters only)
std::cout << output;
}
std::cout << '\n';
}
return EXIT_SUCCESS;
}
Console Screen has been around for a while - I used it to display the (bitmap)
text overlay UI in Faux Car and I used it to display the
tile map when creating the base for a platform game - but I rewrote it (line by line) for Selba Ward. Although, in the future, Faux Car would probably use Selba Ward's Bitmap Text instead, and the platform game would probably use Selba Ward's Tile Map (still to come!). This version of Console Screen doesn't have all of the features of the original version but I plan to reintroduce them over time (not too long, hopefully!)
EDIT: corrected paste error in code inside spoiler