mirror of
https://github.com/NicklasVraa/Color-manager.git
synced 2026-01-18 17:27:20 +01:00
80 lines
1.8 KiB
Plaintext
80 lines
1.8 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 1,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"%load_ext autoreload\n",
|
|
"%autoreload 2\n",
|
|
"\n",
|
|
"from color_manager import utils"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 26,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"/home/nv/Downloads/my_pack/index.theme\n"
|
|
]
|
|
},
|
|
{
|
|
"name": "stderr",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"svg: 100%|██████████| 6/6 [00:00<00:00, 1582.36it/s]\n",
|
|
"png: 0%| | 0/8 [00:00<?, ?it/s]"
|
|
]
|
|
},
|
|
{
|
|
"name": "stderr",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"png: 100%|██████████| 8/8 [00:11<00:00, 1.46s/it]\n",
|
|
"jpg: 100%|██████████| 1/1 [00:04<00:00, 4.32s/it]\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"src = \"test/graphics\" # Also try \"test/theme\"\n",
|
|
"name = \"my_pack\"\n",
|
|
"dest = \"~/Downloads\"\n",
|
|
"color = (0.6, 0.54, 0.5) # = rc.normalize_hsl(180, 50, 50)\n",
|
|
"palette = \"palettes/nord.json\"\n",
|
|
"mapping = \"mappings/renord.json\"\n",
|
|
"\n",
|
|
"# Either input a single color, palette, or mapping.\n",
|
|
"utils.recolor(src, dest, name, color)"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "base",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.10.12"
|
|
},
|
|
"orig_nbformat": 4
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|