Skip to content

g1p: Color palette processor / generator #19

@dipdowel

Description

@dipdowel

g1p: Graph1 Palette generator

explore the following palette formats, think whether they can be easily parsed and converted to Graph1 palettes:

ASE (Adobe Swatch Exchange) – Best for Adobe products but also supported in CorelDRAW and some open-source tools.
GPL (GIMP Palette) – Open-source alternative, widely supported.
CSV/JSON/XML – Useful for developers and cross-platform exchange.
SVG & CSS – Good for web-based applications.
PAL & ACO – Used in legacy Microsoft and Photoshop workflows.

Start with a native human readable palette format, that the parser / generator can read and generate Rust file and HTML+CSS preview from:

{
  "graph1": {
    "palettes": [

      {
        "name": "My New palette",
        "colors": [{
            "name": "Red",
            "rgba": [255, 0, 0, 255]

          }, {
            "name": "Green",
            "rgba": [0, 255, 0, 255]

          },


        ]
      }

    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions