Giter Site home page Giter Site logo

Comments (5)

bbbbbr avatar bbbbbr commented on May 21, 2024

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.

jackygoule avatar jackygoule commented on May 21, 2024

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.

jackygoule avatar jackygoule commented on May 21, 2024

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.

bbbbbr avatar bbbbbr commented on May 21, 2024

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:

And some example projects:

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.

bbbbbr avatar bbbbbr commented on May 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.