From 667fac6bbdce12216a4fd21a2da877841faf3b2f Mon Sep 17 00:00:00 2001 From: TEC Date: Wed, 8 May 2024 23:03:29 +0800 Subject: [PATCH] Add Studio Ghibli palettes To create data/ghibli.jl, I first downloaded and parsed it to a Dict with YAML.load. colours_dict = YAML.load() 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 --- CHANGELOG.md | 2 + data/ghibli.jl | 328 ++++++++++++++++++++++++++++++++++++++++++ docs/src/catalogue.md | 10 ++ src/ColorSchemes.jl | 1 + 4 files changed, 341 insertions(+) create mode 100644 data/ghibli.jl diff --git a/CHANGELOG.md b/CHANGELOG.md index a3bc2dd..a7bbbce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ - Pacific North West palettes (https://github.com/jakelawlor/PNWColors) +- Studio Ghibli palettes (https://github.com/ewenme/ghibli) + ## Changed - updated ScientificColorSchemes to version 8.0.0. Note that some schemes (grayC diff --git a/data/ghibli.jl b/data/ghibli.jl new file mode 100644 index 0000000..58c0b5c --- /dev/null +++ b/data/ghibli.jl @@ -0,0 +1,328 @@ +# Studio Ghibli Colour Palettes + +# Sourced from , +# which in turn cites . + +loadcolorscheme(:KikiDark, [ + RGB{N0f8}(0.055,0.047,0.059), + RGB{N0f8}(0.102,0.102,0.133), + RGB{N0f8}(0.349,0.02,0.078), + RGB{N0f8}(0.024,0.259,0.353), + RGB{N0f8}(0.314,0.255,0.165), + RGB{N0f8}(0.251,0.365,0.38), + RGB{N0f8}(0.412,0.357,0.314), + ], + "Ghibli", + "Dark theme derived from the movie Kiki's Delivery Service") + +loadcolorscheme(:KikiLight, [ + RGB{N0f8}(0.557,0.549,0.561), + RGB{N0f8}(0.604,0.604,0.635), + RGB{N0f8}(0.851,0.522,0.58), + RGB{N0f8}(0.525,0.761,0.855), + RGB{N0f8}(0.816,0.757,0.667), + RGB{N0f8}(0.753,0.867,0.882), + RGB{N0f8}(0.914,0.859,0.816), + ], + "Ghibli", + "Light theme derived from the movie Kiki's Delivery Service") + +loadcolorscheme(:KikiMedium, [ + RGB{N0f8}(0.11,0.102,0.122), + RGB{N0f8}(0.2,0.208,0.267), + RGB{N0f8}(0.71,0.039,0.165), + RGB{N0f8}(0.055,0.518,0.706), + RGB{N0f8}(0.62,0.514,0.337), + RGB{N0f8}(0.494,0.729,0.761), + RGB{N0f8}(0.82,0.718,0.62), + ], + "Ghibli", + "Medium theme derived from the movie Kiki's Delivery Service") + +loadcolorscheme(:LaputaDark, [ + RGB{N0f8}(0.035,0.051,0.063), + RGB{N0f8}(0.051,0.075,0.129), + RGB{N0f8}(0.122,0.098,0.208), + RGB{N0f8}(0.184,0.173,0.286), + RGB{N0f8}(0.341,0.29,0.369), + RGB{N0f8}(0.353,0.427,0.451), + RGB{N0f8}(0.467,0.416,0.239), + ], + "Ghibli", + "Dark theme derived from the movie Laputa: Castle in the Sky") + +loadcolorscheme(:LaputaLight, [ + RGB{N0f8}(0.537,0.553,0.565), + RGB{N0f8}(0.553,0.576,0.631), + RGB{N0f8}(0.624,0.6,0.71), + RGB{N0f8}(0.686,0.675,0.788), + RGB{N0f8}(0.843,0.792,0.871), + RGB{N0f8}(0.855,0.929,0.953), + RGB{N0f8}(0.969,0.918,0.741), + ], + "Ghibli", + "Light theme derived from the movie Laputa: Castle in the Sky") + +loadcolorscheme(:LaputaMedium, [ + RGB{N0f8}(0.078,0.098,0.122), + RGB{N0f8}(0.114,0.149,0.271), + RGB{N0f8}(0.251,0.2,0.412), + RGB{N0f8}(0.361,0.349,0.573), + RGB{N0f8}(0.682,0.576,0.745), + RGB{N0f8}(0.706,0.855,0.898), + RGB{N0f8}(0.941,0.843,0.482), + ], + "Ghibli", + "Medium theme derived from the movie Laputa: Castle in the Sky") + +loadcolorscheme(:MarnieDark1, [ + RGB{N0f8}(0.082,0.067,0.055), + RGB{N0f8}(0.184,0.086,0.098), + RGB{N0f8}(0.0,0.278,0.286), + RGB{N0f8}(0.055,0.231,0.322), + RGB{N0f8}(0.388,0.318,0.263), + RGB{N0f8}(0.2,0.365,0.42), + RGB{N0f8}(0.451,0.408,0.298), + ], + "Ghibli", + "Dark theme derived from the movie When Marnie Was There (1/2)") + +loadcolorscheme(:MarnieDark2, [ + RGB{N0f8}(0.055,0.075,0.051), + RGB{N0f8}(0.078,0.137,0.11), + RGB{N0f8}(0.09,0.22,0.184), + RGB{N0f8}(0.133,0.318,0.239), + RGB{N0f8}(0.251,0.302,0.235), + RGB{N0f8}(0.173,0.322,0.137), + RGB{N0f8}(0.4,0.396,0.043), + ], + "Ghibli", + "Dark theme derived from the movie When Marnie Was There (2/2)") + +loadcolorscheme(:MarnieLight1, [ + RGB{N0f8}(0.584,0.569,0.557), + RGB{N0f8}(0.686,0.588,0.6), + RGB{N0f8}(0.502,0.78,0.788), + RGB{N0f8}(0.557,0.733,0.824), + RGB{N0f8}(0.89,0.82,0.765), + RGB{N0f8}(0.702,0.867,0.922), + RGB{N0f8}(0.953,0.91,0.8), + ], + "Ghibli", + "Light theme derived from the movie When Marnie Was There (1/2)") + +loadcolorscheme(:MarnieLight2, [ + RGB{N0f8}(0.557,0.576,0.553), + RGB{N0f8}(0.58,0.639,0.612), + RGB{N0f8}(0.592,0.722,0.686), + RGB{N0f8}(0.635,0.82,0.741), + RGB{N0f8}(0.753,0.804,0.737), + RGB{N0f8}(0.675,0.824,0.639), + RGB{N0f8}(0.902,0.898,0.545), + ], + "Ghibli", + "Light theme derived from the movie When Marnie Was There (2/2)") + +loadcolorscheme(:MarnieMedium1, [ + RGB{N0f8}(0.157,0.137,0.114), + RGB{N0f8}(0.369,0.176,0.188), + RGB{N0f8}(0.0,0.557,0.565), + RGB{N0f8}(0.11,0.467,0.639), + RGB{N0f8}(0.773,0.639,0.529), + RGB{N0f8}(0.404,0.722,0.839), + RGB{N0f8}(0.914,0.816,0.592), + ], + "Ghibli", + "Medium theme derived from the movie When Marnie Was There (1/2)") + +loadcolorscheme(:MarnieMedium2, [ + RGB{N0f8}(0.114,0.153,0.11), + RGB{N0f8}(0.153,0.275,0.216), + RGB{N0f8}(0.173,0.443,0.373), + RGB{N0f8}(0.267,0.647,0.486), + RGB{N0f8}(0.506,0.604,0.478), + RGB{N0f8}(0.345,0.643,0.286), + RGB{N0f8}(0.808,0.788,0.09), + ], + "Ghibli", + "Medium theme derived from the movie When Marnie Was There (2/2)") + +loadcolorscheme(:MononokeDark, [ + RGB{N0f8}(0.012,0.039,0.063), + RGB{N0f8}(0.227,0.086,0.039), + RGB{N0f8}(0.122,0.153,0.243), + RGB{N0f8}(0.2,0.22,0.192), + RGB{N0f8}(0.404,0.153,0.106), + RGB{N0f8}(0.447,0.275,0.082), + RGB{N0f8}(0.459,0.427,0.286), + ], + "Ghibli", + "Dark theme derived from the movie Princess Mononoke") + +loadcolorscheme(:MononokeLight, [ + RGB{N0f8}(0.514,0.541,0.565), + RGB{N0f8}(0.729,0.588,0.541), + RGB{N0f8}(0.624,0.655,0.745), + RGB{N0f8}(0.702,0.722,0.694), + RGB{N0f8}(0.906,0.655,0.608), + RGB{N0f8}(0.949,0.776,0.584), + RGB{N0f8}(0.961,0.929,0.788), + ], + "Ghibli", + "Light theme derived from the movie Princess Mononoke") + +loadcolorscheme(:MononokeMedium, [ + RGB{N0f8}(0.024,0.078,0.122), + RGB{N0f8}(0.455,0.173,0.078), + RGB{N0f8}(0.239,0.31,0.49), + RGB{N0f8}(0.396,0.439,0.376), + RGB{N0f8}(0.804,0.31,0.22), + RGB{N0f8}(0.894,0.549,0.165), + RGB{N0f8}(0.918,0.847,0.565), + ], + "Ghibli", + "Medium theme derived from the movie Princess Mononoke") + +loadcolorscheme(:PonyoDark, [ + RGB{N0f8}(0.149,0.125,0.125), + RGB{N0f8}(0.176,0.216,0.251), + RGB{N0f8}(0.078,0.271,0.298), + RGB{N0f8}(0.455,0.176,0.2), + RGB{N0f8}(0.431,0.235,0.192), + RGB{N0f8}(0.424,0.345,0.114), + RGB{N0f8}(0.455,0.388,0.325), + ], + "Ghibli", + "Dark theme derived from the movie Ponyo") + +loadcolorscheme(:PonyoLight, [ + RGB{N0f8}(0.651,0.627,0.627), + RGB{N0f8}(0.678,0.718,0.753), + RGB{N0f8}(0.58,0.773,0.8), + RGB{N0f8}(0.957,0.678,0.702), + RGB{N0f8}(0.933,0.737,0.694), + RGB{N0f8}(0.925,0.847,0.616), + RGB{N0f8}(0.957,0.89,0.827), + ], + "Ghibli", + "Light theme derived from the movie Ponyo") + +loadcolorscheme(:PonyoMedium, [ + RGB{N0f8}(0.298,0.255,0.247), + RGB{N0f8}(0.353,0.435,0.502), + RGB{N0f8}(0.153,0.545,0.604), + RGB{N0f8}(0.906,0.357,0.392), + RGB{N0f8}(0.871,0.471,0.384), + RGB{N0f8}(0.847,0.686,0.224), + RGB{N0f8}(0.91,0.769,0.635), + ], + "Ghibli", + "Medium theme derived from the movie Ponyo") + +loadcolorscheme(:SpiritedDark, [ + RGB{N0f8}(0.059,0.071,0.09), + RGB{N0f8}(0.102,0.11,0.09), + RGB{N0f8}(0.255,0.102,0.106), + RGB{N0f8}(0.278,0.251,0.282), + RGB{N0f8}(0.204,0.361,0.459), + RGB{N0f8}(0.38,0.341,0.294), + RGB{N0f8}(0.357,0.42,0.471), + ], + "Ghibli", + "Dark theme derived from the movie Spirited Away") + +loadcolorscheme(:SpiritedLight, [ + RGB{N0f8}(0.561,0.573,0.592), + RGB{N0f8}(0.604,0.612,0.592), + RGB{N0f8}(0.757,0.604,0.608), + RGB{N0f8}(0.78,0.753,0.784), + RGB{N0f8}(0.706,0.863,0.961), + RGB{N0f8}(0.882,0.843,0.796), + RGB{N0f8}(0.859,0.922,0.973), + ], + "Ghibli", + "Light theme derived from the movie Spirited Away") + +loadcolorscheme(:SpiritedMedium, [ + RGB{N0f8}(0.122,0.149,0.18), + RGB{N0f8}(0.208,0.22,0.192), + RGB{N0f8}(0.514,0.204,0.216), + RGB{N0f8}(0.561,0.502,0.576), + RGB{N0f8}(0.404,0.725,0.914), + RGB{N0f8}(0.765,0.686,0.592), + RGB{N0f8}(0.718,0.851,0.949), + ], + "Ghibli", + "Medium theme derived from the movie Spirited Away") + +loadcolorscheme(:TotoroDark, [ + RGB{N0f8}(0.02,0.035,0.039), + RGB{N0f8}(0.082,0.078,0.071), + RGB{N0f8}(0.173,0.114,0.086), + RGB{N0f8}(0.157,0.149,0.161), + RGB{N0f8}(0.129,0.192,0.282), + RGB{N0f8}(0.337,0.251,0.161), + RGB{N0f8}(0.361,0.325,0.267), + ], + "Ghibli", + "Dark theme derived from the movie My Neighbor Totoro") + +loadcolorscheme(:TotoroLight, [ + RGB{N0f8}(0.522,0.537,0.541), + RGB{N0f8}(0.584,0.58,0.573), + RGB{N0f8}(0.675,0.616,0.588), + RGB{N0f8}(0.659,0.651,0.663), + RGB{N0f8}(0.631,0.694,0.784), + RGB{N0f8}(0.839,0.753,0.663), + RGB{N0f8}(0.863,0.827,0.769), + ], + "Ghibli", + "Light theme derived from the movie My Neighbor Totoro") + +loadcolorscheme(:TotoroMedium, [ + RGB{N0f8}(0.039,0.071,0.082), + RGB{N0f8}(0.176,0.165,0.145), + RGB{N0f8}(0.345,0.231,0.169), + RGB{N0f8}(0.325,0.298,0.325), + RGB{N0f8}(0.267,0.396,0.565), + RGB{N0f8}(0.678,0.506,0.322), + RGB{N0f8}(0.733,0.655,0.549), + ], + "Ghibli", + "Medium theme derived from the movie My Neighbor Totoro") + +loadcolorscheme(:YesterdayDark, [ + RGB{N0f8}(0.012,0.055,0.071), + RGB{N0f8}(0.043,0.098,0.141), + RGB{N0f8}(0.082,0.145,0.102), + RGB{N0f8}(0.165,0.235,0.314), + RGB{N0f8}(0.243,0.384,0.282), + RGB{N0f8}(0.475,0.435,0.094), + RGB{N0f8}(0.314,0.404,0.467), + ], + "Ghibli", + "Dark theme derived from the movie Only Yesterday") + +loadcolorscheme(:YesterdayLight, [ + RGB{N0f8}(0.463,0.506,0.522), + RGB{N0f8}(0.494,0.549,0.592), + RGB{N0f8}(0.533,0.596,0.553), + RGB{N0f8}(0.616,0.686,0.765), + RGB{N0f8}(0.694,0.835,0.733), + RGB{N0f8}(0.925,0.886,0.545), + RGB{N0f8}(0.765,0.855,0.918), + ], + "Ghibli", + "Light theme derived from the movie Only Yesterday") + +loadcolorscheme(:YesterdayMedium, [ + RGB{N0f8}(0.024,0.102,0.129), + RGB{N0f8}(0.075,0.18,0.255), + RGB{N0f8}(0.149,0.263,0.184), + RGB{N0f8}(0.302,0.427,0.576), + RGB{N0f8}(0.435,0.702,0.51), + RGB{N0f8}(0.863,0.792,0.173), + RGB{N0f8}(0.573,0.733,0.851), + ], + "Ghibli", + "Medium theme derived from the movie Only Yesterday") diff --git a/docs/src/catalogue.md b/docs/src/catalogue.md index db690df..1466c30 100644 --- a/docs/src/catalogue.md +++ b/docs/src/catalogue.md @@ -218,6 +218,16 @@ using Luxor, ColorSchemes # hide ColorSchemeCategory("Wes Anderson") # hide ``` +## ✦ Ghibli + +Palettes derived from the films of Studio Ghibli. See [Ewenme's github +repository](https://github.com/ewenme/ghibli). + +```@example catalog +using Luxor, ColorSchemes # hide +ColorSchemeCategory("Ghibli") # hide +``` + ## ✦ general and miscellaneous ```@example catalog diff --git a/src/ColorSchemes.jl b/src/ColorSchemes.jl index 523d2d6..bf62496 100644 --- a/src/ColorSchemes.jl +++ b/src/ColorSchemes.jl @@ -132,6 +132,7 @@ function loadallschemes() include(joinpath(datadir, "kindlmann.jl")) include(joinpath(datadir, "pnw.jl")) include(joinpath(datadir, "wesanderson.jl")) + include(joinpath(datadir, "ghibli.jl")) # create them as constants... for key in keys(colorschemes)