Comments (5)
It may look like it only has 4 colors, but it might actually have 5 colors where two are close in appearance. You're welcome to post the image in this ticket.
What C file are you trying to compile with GBDK-2020?
Why are you using guint
as a type? That's a GTK specific thing which isn't compatible with GBDK
from gimp-tilemap-gb.
Thanks for your answer.
The file.c contain a export of file.png realize with gimp.
The image is a empty background for gb-studio with only 4 colors
https://ibb.co/7pHxyZp
I want to convert a image.png to image.c usable with gbk-2020
Thanks
from gimp-tilemap-gb.
I read your answer on discord and i don't understand how to use png2asset.
You have an example to convert a .png to gbdk ?
I use img2gb and it work but only with 3 colors.
Thanks
from gimp-tilemap-gb.
png2asset
is part of GBDK-2020, and different from the tools in this repo (png2gbtiles
). It will probably work better for you than the one in this repo, too.
png2asset
In order to use png2asset
, here is the documentation:
- https://gbdk-2020.github.io/gbdk-2020/docs/api/docs_toolchain.html#autotoc_md96
- https://gbdk-2020.github.io/gbdk-2020/docs/api/docs_toolchain_settings.html#autotoc_md196
- The format is roughly
png2asset infile.png (options here if needed) -c outfile.c
And some example projects:
- https://github.com/gbdk-2020/gbdk-2020/tree/develop/gbdk-lib/examples/gb/metasprites
- https://github.com/gbdk-2020/gbdk-2020/tree/develop/gbdk-lib/examples/cross-platform/logo
png2gbtiles
However, if after that you still want to use png2gbtiles
intead of png2asset
then it works like this (adding any options necessary):
png2gbtiles input_file.png -csource outputfile.c
There are more details about it's options here:
https://github.com/bbbbbr/gimp-tilemap-gb/tree/master/console
from gimp-tilemap-gb.
Thanks for your answer. The file.c contain a export of file.png realize with gimp. The image is a empty background for gb-studio with only 4 colors https://ibb.co/7pHxyZp I want to convert a image.png to image.c usable with gbk-2020 Thanks
If you want to share an image, you can just drag it into the comments. Please avoid using third party link storage services
from gimp-tilemap-gb.
Related Issues (9)
- Installing error in windows HOT 3
- gbdk c?
- Preserve export settings from opened GBR/GBM files when re-exporting HOT 1
- CGB Export HOT 1
- Improve default export settings for GBR/GBM files HOT 2
- Add 8x16 size support HOT 1
- -csource output not working for console version (png2gbtiles) HOT 1
- install plugin to gimp (ubuntu) SOLVED HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gimp-tilemap-gb.