Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Studio Ghibli palettes #123

Merged
merged 1 commit into from
May 9, 2024
Merged

Conversation

tecosaur
Copy link
Contributor

@tecosaur tecosaur commented May 8, 2024

I saw the Wes Anderson palettes, and loved the look of them. Then a friend sent me a link to https://github.com/ewenme/ghibli. I think they'd be a nice addition too 🙂

To create data/ghibli.jl, I first downloaded
<https://raw.githubusercontent.com/ewenme/ghibli/master/inst/extdata/palettes.yml>
and parsed it to a Dict with YAML.load.

    colours_dict = YAML.load(<IO of palettes.yml>)
    colours_list = sort([k => parse.(Colorant, vs) for (k, vs) in colours_dict], by=first)
    for (name, vals) in colours_list
        print("loadcolorscheme(:", name, ", [\n")
        for v in vals
            print("        ")
            show(v)
            println(",")
        end
        print("    ],\n    \"Ghibli\",\n    \"Theme derived form the movie $name\")\n\n")
    end
@cormullion cormullion merged commit caf21df into JuliaGraphics:master May 9, 2024
18 checks passed
@cormullion
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants