-
Notifications
You must be signed in to change notification settings - Fork 52
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
render map to PNG format #1632
render map to PNG format #1632
Conversation
bda4133
to
859340e
Compare
aa10513
to
0453ed1
Compare
ab9fb5b
to
aba5ecf
Compare
4014896
to
de6e1fd
Compare
I see... I have a theory that the ANSI color constants cannot be reproduced with RGB equivalents. I will try creating a parallel "vty-independent" enum that will map back to the vty constants for TUI rendering. |
Ah, fixed the terrain color, at least, with 42db654. |
Ok, have now fixed trees/water (via introducing |
94bcf54
to
e85517e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is super cool! Definitely a nice feature to be able to render the world to a PNG, and I think I will make heavy use of it when I get back around to stuff like adding cities and so on to the "classic" world.
3ae3661
to
28cb91f
Compare
28cb91f
to
808badb
Compare
808badb
to
0e88286
Compare
Towards #1415.
Uses
This capability could be used to quickly iterate on DSL world descriptions, e.g. when tuning noise parameters.
Implementation notes
Blank
terrain corresponds to a transparent pixel.attr
references. Previously, referencing a nonexistentattr
by an entity would fail silently at runtime."rock"
now only exist once; the string is shared via toplevel variable definitionsDemos
Each pixel in the output image correponds to one world cell. To enlarge, can use imagemagick: