Coder Social home page Coder Social logo

godot-color-palette's Issues

Godot 4 support

Love this addon! Any chance of a Godot 4 version of it now that the first beta version was just released?

Does not work properly

I have got two palettes in a folder. I can visualize them in the "Color Palette" window of the plugin. However when I click on "Load into Picker", nothing happens. The palette I click on does not appears in the color picker. I tried to Reopen the scene but it did not solve the issue.

Lospec palettes fail to import

Steps to reproduce:

Observed behaviour: the palette is not imported and the following error appears on the console: res://addons/color-palette/PaletteImporter.gd:37 - Invalid get index '1' (on base: 'PoolStringArray').

Expected behaviour: the palette is correctly imported.

Importer fails with some .gpl files

Hi,

I was trying to use this add-on with the following palette, generated with GIMP 2.10.18, but some colors were lost, not parsed correctly.

The issue seems to be with the test for lines that start with numbers.
Apparently, valid palette entries can start with whitespace.

See for instance:

GIMP Palette
Name: [famicube]
Columns: 16
#
  0   0   0	Index 0
224  60  40	Index 1
255 255 255	Index 2
215 215 215	Index 3
168 168 168	Index 4
123 123 123	Index 5
 52  52  52	Index 6
 21  21  21	Index 7
 13  32  48	Index 8
 65  93 102	Index 9

Notice also that after the entry there's a name (in this case it seems autogenerated, but perhaps you can manually fill them in?). It comes after a tab \t.

The format seems to be:

[spaces (optional)] R [spaces] G [spaces] B [tab] name

I made a fork of this repo, and created a fix which properly imports the .gpl file I had.

turbohz@15fcf7f

Would you like me to submit a pull request?

Cheers.

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.