ianfhunter / custom-asset-scripts-wonderdraft Goto Github PK
View Code? Open in Web Editor NEWScripts to accelerate Asset creation for the map making tool Wonderdraft
Scripts to accelerate Asset creation for the map making tool Wonderdraft
pretty sure there is loads of packages we dont need included.
How does it work ๐ค
Seperate it out and make some generic functions like getSVGs, etc
If open source, https://ci.appveyor.com/account?
Is it a prefix folder, or a prefix to the name of the file?
TBD what is different
max width, height of output
improve perf.
suggested json
Replace 2 colors values or a gradient by another, so without colors permutations. Might be useful for recolor top down basics building to use wonderdraft as a city mapmaking software.
Like taking watabou basic shapes building and recolors them and release as symbols set https://watabou.itch.io/medieval-fantasy-city-generator
Only if you find an easy way and it doesn't take you too much time
There are a couple of ways to convert svg to png, cairopng seems fastest for me, but perhaps other backends are faster on other pcs. It would be nice to have a setting to switch between them
ABR , GBR to PNG
Regression
Basic recolor (recolor without every permutation)
e.g. city map
(This is why we aren't replacing rivers in the city map thing)
users with slower pcs would need this
If new github release, gui/tool should print out saying the user should upgrade and provide an easy way to do so
Save choices like raster engine, max dim size, paths to libraries in a file, so users dont have to re-specify every time
On first launch, suggest which engines are available.
provide a flag --engine-select to reselect or override
need to strip whitespace
example:
ff0000 base color would be translated to template color
cc0000 base color would be translated to darker color
Lot of svg from website like vexels or flat icons don't really recolor the file with the color you want, they use style for recolor
The hide/unhide le me save with inkscape and when i save with inkscape it get rid of them and convert style color into real color
when imputing colors sometime the script doesn't recognize separation between 2 colors packs
https://cdn.discordapp.com/attachments/502537052215312387/507694675906527232/color_schemes.txt
we would need an other symbol to separate 2 color pack, like '-' or '|' instead of nothing or even new line for every color pack
think the issue come from this:
"color_schemes = [
{ 'name': s[0], 'variant': s[1], 'colors': s[2:] }
for s in [
l.strip().split(',')
for l in open(COLOR_SCHEME_FILE).readlines()
if l.strip()[0] != '#'
]
]"
This part i think:
" if l.strip()[0] != '#'"
The issue might be the same as this one https://translate.google.fr/translate?sl=fr&tl=en&js=y&prev=_t&hl=fr&ie=UTF-8&u=http%3A%2F%2Fsametmax.com%2Fle-piege-de-la-methode-strip-des-chaines-en-python%2F&edit-text=&act=url
Have a color scheme defined to replace a single color:
https://watabou.itch.io/medieval-fantasy-city-generator has all grey buildings, could have a color scheme of different roof shades, which would be applied randomly
Indeed, i try to recolor files with more colors (6/7) and if one of the color is not present on every files files that don't have it will not be recolorized, the script should recolor the other color inside the file
Standalone script to take an image that has several images within it and make a folder of those subimages
Visual way to make .txt color schemes, rather than editing file manually
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.