Compare commits
6 Commits
main
...
feat/atoma
Author | SHA1 | Date |
---|---|---|
ENDERZOMBI102 | d64540e614 | 2 years ago |
ENDERZOMBI102 | f6de883236 | 2 years ago |
ENDERZOMBI102 | 972a5f43bd | 2 years ago |
ENDERZOMBI102 | cc121610d5 | 2 years ago |
ENDERZOMBI102 | 74a88cf3af | 2 years ago |
ENDERZOMBI102 | e524e1cbbf | 2 years ago |
@ -1,6 +1,3 @@
|
||||
original/
|
||||
output/
|
||||
Cargo.lock
|
||||
target/
|
||||
blobfox-*.zip
|
||||
species/custom/
|
||||
original
|
||||
output
|
||||
**/__pycache__
|
@ -1,24 +0,0 @@
|
||||
[package]
|
||||
name = "blobfox-template"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
default-run = "blobfox-template"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0.140", features = ["derive"] }
|
||||
toml = "0.5.9"
|
||||
# Original repo is abandonned :(
|
||||
# TODO: switch back to the official crate once https://github.com/eminence/xmltree-rs/pull/33 is merged
|
||||
# xmltree = "0.10.3"
|
||||
xmltree = { git = "https://github.com/MFEK/xmltree.rlib" }
|
||||
mustache = { git = "https://git.shadamethyst.xyz/adri326/rust-mustache.git" }
|
||||
clap = { version = "3.2", features = ["derive"] }
|
||||
mkdirp = "1.0.0"
|
||||
resvg = "0.23"
|
||||
usvg = "0.23"
|
||||
tiny-skia = "0.6"
|
||||
png = "0.17"
|
||||
css-color-parser = "0.1.2"
|
||||
wax = "0.5.0"
|
@ -0,0 +1 @@
|
||||
.idea
|
@ -0,0 +1,5 @@
|
||||
To run
|
||||
-
|
||||
```bash
|
||||
$ python src/main.py
|
||||
```
|
@ -0,0 +1,201 @@
|
||||
[[package]]
|
||||
name = "cairocffi"
|
||||
version = "1.3.0"
|
||||
description = "cffi-based cairo bindings for Python"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=3.7"
|
||||
|
||||
[package.dependencies]
|
||||
cffi = ">=1.1.0"
|
||||
|
||||
[package.extras]
|
||||
doc = ["sphinx", "sphinx-rtd-theme"]
|
||||
test = ["pytest-runner", "pytest-cov", "pytest-flake8", "pytest-isort"]
|
||||
xcb = ["xcffib (>=0.3.2)"]
|
||||
|
||||
[[package]]
|
||||
name = "cairosvg"
|
||||
version = "2.5.2"
|
||||
description = "A Simple SVG Converter based on Cairo"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=3.5"
|
||||
|
||||
[package.dependencies]
|
||||
cairocffi = "*"
|
||||
cssselect2 = "*"
|
||||
defusedxml = "*"
|
||||
pillow = "*"
|
||||
tinycss2 = "*"
|
||||
|
||||
[package.extras]
|
||||
doc = ["sphinx", "sphinx-rtd-theme"]
|
||||
test = ["pytest-runner", "pytest-cov", "pytest-flake8", "pytest-isort"]
|
||||
|
||||
[[package]]
|
||||
name = "cffi"
|
||||
version = "1.15.1"
|
||||
description = "Foreign Function Interface for Python calling C code."
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
|
||||
[package.dependencies]
|
||||
pycparser = "*"
|
||||
|
||||
[[package]]
|
||||
name = "cssselect2"
|
||||
version = "0.6.0"
|
||||
description = "CSS selectors for Python ElementTree"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=3.7"
|
||||
|
||||
[package.dependencies]
|
||||
tinycss2 = "*"
|
||||
webencodings = "*"
|
||||
|
||||
[package.extras]
|
||||
doc = ["sphinx", "sphinx-rtd-theme"]
|
||||
test = ["pytest", "pytest-cov", "pytest-flake8", "pytest-isort", "coverage"]
|
||||
|
||||
[[package]]
|
||||
name = "defusedxml"
|
||||
version = "0.7.1"
|
||||
description = "XML bomb protection for Python stdlib modules"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
|
||||
|
||||
[[package]]
|
||||
name = "pillow"
|
||||
version = "9.2.0"
|
||||
description = "Python Imaging Library (Fork)"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=3.7"
|
||||
|
||||
[package.extras]
|
||||
docs = ["furo", "olefile", "sphinx (>=2.4)", "sphinx-copybutton", "sphinx-issues (>=3.0.1)", "sphinx-removed-in", "sphinxext-opengraph"]
|
||||
tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "packaging", "pyroma", "pytest", "pytest-cov", "pytest-timeout"]
|
||||
|
||||
[[package]]
|
||||
name = "pycparser"
|
||||
version = "2.21"
|
||||
description = "C parser in Python"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
|
||||
|
||||
[[package]]
|
||||
name = "pyyaml"
|
||||
version = "6.0"
|
||||
description = "YAML parser and emitter for Python"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=3.6"
|
||||
|
||||
[[package]]
|
||||
name = "tinycss2"
|
||||
version = "1.1.1"
|
||||
description = "A tiny CSS parser"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=3.6"
|
||||
|
||||
[package.dependencies]
|
||||
webencodings = ">=0.4"
|
||||
|
||||
[package.extras]
|
||||
doc = ["sphinx", "sphinx-rtd-theme"]
|
||||
test = ["pytest", "pytest-cov", "pytest-flake8", "pytest-isort", "coverage"]
|
||||
|
||||
[[package]]
|
||||
name = "types-pyyaml"
|
||||
version = "6.0.10"
|
||||
description = "Typing stubs for PyYAML"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
|
||||
[[package]]
|
||||
name = "typing-extensions"
|
||||
version = "4.3.0"
|
||||
description = "Backported and Experimental Type Hints for Python 3.7+"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=3.7"
|
||||
|
||||
[[package]]
|
||||
name = "webencodings"
|
||||
version = "0.5.1"
|
||||
description = "Character encoding aliases for legacy web content"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
|
||||
[metadata]
|
||||
lock-version = "1.1"
|
||||
python-versions = "^3.10"
|
||||
content-hash = "f53bba5be8f79539f2f1e96e0fccc6feaf7553d646a307ea39be9e6d3cefc64c"
|
||||
|
||||
[metadata.files]
|
||||
cairocffi = []
|
||||
cairosvg = []
|
||||
cffi = []
|
||||
cssselect2 = []
|
||||
defusedxml = [
|
||||
{file = "defusedxml-0.7.1-py2.py3-none-any.whl", hash = "sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61"},
|
||||
{file = "defusedxml-0.7.1.tar.gz", hash = "sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69"},
|
||||
]
|
||||
pillow = []
|
||||
pycparser = [
|
||||
{file = "pycparser-2.21-py2.py3-none-any.whl", hash = "sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9"},
|
||||
{file = "pycparser-2.21.tar.gz", hash = "sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206"},
|
||||
]
|
||||
pyyaml = [
|
||||
{file = "PyYAML-6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d4db7c7aef085872ef65a8fd7d6d09a14ae91f691dec3e87ee5ee0539d516f53"},
|
||||
{file = "PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9df7ed3b3d2e0ecfe09e14741b857df43adb5a3ddadc919a2d94fbdf78fea53c"},
|
||||
{file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:77f396e6ef4c73fdc33a9157446466f1cff553d979bd00ecb64385760c6babdc"},
|
||||
{file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a80a78046a72361de73f8f395f1f1e49f956c6be882eed58505a15f3e430962b"},
|
||||
{file = "PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f84fbc98b019fef2ee9a1cb3ce93e3187a6df0b2538a651bfb890254ba9f90b5"},
|
||||
{file = "PyYAML-6.0-cp310-cp310-win32.whl", hash = "sha256:2cd5df3de48857ed0544b34e2d40e9fac445930039f3cfe4bcc592a1f836d513"},
|
||||
{file = "PyYAML-6.0-cp310-cp310-win_amd64.whl", hash = "sha256:daf496c58a8c52083df09b80c860005194014c3698698d1a57cbcfa182142a3a"},
|
||||
{file = "PyYAML-6.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:897b80890765f037df3403d22bab41627ca8811ae55e9a722fd0392850ec4d86"},
|
||||
{file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:50602afada6d6cbfad699b0c7bb50d5ccffa7e46a3d738092afddc1f9758427f"},
|
||||
{file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:48c346915c114f5fdb3ead70312bd042a953a8ce5c7106d5bfb1a5254e47da92"},
|
||||
{file = "PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:98c4d36e99714e55cfbaaee6dd5badbc9a1ec339ebfc3b1f52e293aee6bb71a4"},
|
||||
{file = "PyYAML-6.0-cp36-cp36m-win32.whl", hash = "sha256:0283c35a6a9fbf047493e3a0ce8d79ef5030852c51e9d911a27badfde0605293"},
|
||||
{file = "PyYAML-6.0-cp36-cp36m-win_amd64.whl", hash = "sha256:07751360502caac1c067a8132d150cf3d61339af5691fe9e87803040dbc5db57"},
|
||||
{file = "PyYAML-6.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:819b3830a1543db06c4d4b865e70ded25be52a2e0631ccd2f6a47a2822f2fd7c"},
|
||||
{file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:473f9edb243cb1935ab5a084eb238d842fb8f404ed2193a915d1784b5a6b5fc0"},
|
||||
{file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ce82d761c532fe4ec3f87fc45688bdd3a4c1dc5e0b4a19814b9009a29baefd4"},
|
||||
{file = "PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:231710d57adfd809ef5d34183b8ed1eeae3f76459c18fb4a0b373ad56bedcdd9"},
|
||||
{file = "PyYAML-6.0-cp37-cp37m-win32.whl", hash = "sha256:c5687b8d43cf58545ade1fe3e055f70eac7a5a1a0bf42824308d868289a95737"},
|
||||
{file = "PyYAML-6.0-cp37-cp37m-win_amd64.whl", hash = "sha256:d15a181d1ecd0d4270dc32edb46f7cb7733c7c508857278d3d378d14d606db2d"},
|
||||
{file = "PyYAML-6.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0b4624f379dab24d3725ffde76559cff63d9ec94e1736b556dacdfebe5ab6d4b"},
|
||||
{file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:213c60cd50106436cc818accf5baa1aba61c0189ff610f64f4a3e8c6726218ba"},
|
||||
{file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9fa600030013c4de8165339db93d182b9431076eb98eb40ee068700c9c813e34"},
|
||||
{file = "PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:277a0ef2981ca40581a47093e9e2d13b3f1fbbeffae064c1d21bfceba2030287"},
|
||||
{file = "PyYAML-6.0-cp38-cp38-win32.whl", hash = "sha256:d4eccecf9adf6fbcc6861a38015c2a64f38b9d94838ac1810a9023a0609e1b78"},
|
||||
{file = "PyYAML-6.0-cp38-cp38-win_amd64.whl", hash = "sha256:1e4747bc279b4f613a09eb64bba2ba602d8a6664c6ce6396a4d0cd413a50ce07"},
|
||||
{file = "PyYAML-6.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:055d937d65826939cb044fc8c9b08889e8c743fdc6a32b33e2390f66013e449b"},
|
||||
{file = "PyYAML-6.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e61ceaab6f49fb8bdfaa0f92c4b57bcfbea54c09277b1b4f7ac376bfb7a7c174"},
|
||||
{file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d67d839ede4ed1b28a4e8909735fc992a923cdb84e618544973d7dfc71540803"},
|
||||
{file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cba8c411ef271aa037d7357a2bc8f9ee8b58b9965831d9e51baf703280dc73d3"},
|
||||
{file = "PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:40527857252b61eacd1d9af500c3337ba8deb8fc298940291486c465c8b46ec0"},
|
||||
{file = "PyYAML-6.0-cp39-cp39-win32.whl", hash = "sha256:b5b9eccad747aabaaffbc6064800670f0c297e52c12754eb1d976c57e4f74dcb"},
|
||||
{file = "PyYAML-6.0-cp39-cp39-win_amd64.whl", hash = "sha256:b3d267842bf12586ba6c734f89d1f5b871df0273157918b0ccefa29deb05c21c"},
|
||||
{file = "PyYAML-6.0.tar.gz", hash = "sha256:68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"},
|
||||
]
|
||||
tinycss2 = [
|
||||
{file = "tinycss2-1.1.1-py3-none-any.whl", hash = "sha256:fe794ceaadfe3cf3e686b22155d0da5780dd0e273471a51846d0a02bc204fec8"},
|
||||
{file = "tinycss2-1.1.1.tar.gz", hash = "sha256:b2e44dd8883c360c35dd0d1b5aad0b610e5156c2cb3b33434634e539ead9d8bf"},
|
||||
]
|
||||
types-pyyaml = []
|
||||
typing-extensions = []
|
||||
webencodings = [
|
||||
{file = "webencodings-0.5.1-py2.py3-none-any.whl", hash = "sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78"},
|
||||
{file = "webencodings-0.5.1.tar.gz", hash = "sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"},
|
||||
]
|
@ -0,0 +1,18 @@
|
||||
[tool.poetry]
|
||||
name = "automate"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["ENDERZOMBI102 <enderzombi102.end@gmail.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
PyYAML = "^6.0"
|
||||
types-PyYAML = "^6.0.10"
|
||||
CairoSVG = "^2.5.2"
|
||||
typing-extensions = "^4.3.0"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
After Width: | Height: | Size: 15 KiB |
@ -0,0 +1,15 @@
|
||||
name: 'blobfox'
|
||||
basedOff: null
|
||||
variants:
|
||||
- name: 'base'
|
||||
src: '../vector/blobfox.svg'
|
||||
|
||||
- name: 'boop'
|
||||
objects:
|
||||
- type: svg
|
||||
src: 'resources/lgbtq_heart.svg'
|
||||
|
||||
overwrites:
|
||||
- id: 'eye-left'
|
||||
color: 0xfffffffff
|
||||
remove: true
|
@ -0,0 +1,11 @@
|
||||
name: 'neugeme'
|
||||
basedOff: 'blobfox' # all variants from 'blobfox' will be imported in this unit, unless they are already present
|
||||
variants:
|
||||
- name: 'base'
|
||||
overwrites:
|
||||
- id: 'body'
|
||||
color: 0x02FFFD
|
||||
- id: 'hair'
|
||||
color: 0x02FFFD
|
||||
- id: 'blobfox'
|
||||
remove: true
|
@ -0,0 +1,29 @@
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing_extensions import Self
|
||||
|
||||
from data.object import Object
|
||||
from data.overwrite import Overwrite
|
||||
|
||||
|
||||
@dataclass
|
||||
class Emote:
|
||||
name: str
|
||||
origin: list[ str ] #: the origins in order of definition
|
||||
base: str | None = None
|
||||
src: Path | None = None
|
||||
objects: list[Object] = None
|
||||
overwrites: list[Overwrite] = None
|
||||
|
||||
@classmethod
|
||||
def load( cls, data: list[dict], origin: str ) -> list[Self]:
|
||||
return [
|
||||
Emote(
|
||||
origin=[ origin ],
|
||||
**entry | {
|
||||
'base': 'base' if 'base' not in entry and 'src' not in entry else entry.get( 'base', None ),
|
||||
'overwrites': Overwrite.load( entry.get( 'overwrites', [ ] ) ),
|
||||
'objects': Object.load( entry.get( 'objects', [ ] ) )
|
||||
}
|
||||
) for entry in data
|
||||
]
|
@ -0,0 +1,17 @@
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing_extensions import Self
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Object:
|
||||
type: str
|
||||
src: Path | None
|
||||
|
||||
@classmethod
|
||||
def load( cls, data: list[dict] ) -> list[ Self ]:
|
||||
objects: list[ Object ] = []
|
||||
for obj in data or []:
|
||||
objects += [ Object( **obj ) ]
|
||||
|
||||
return objects
|
@ -0,0 +1,17 @@
|
||||
from dataclasses import dataclass
|
||||
from typing_extensions import Self
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Overwrite:
|
||||
id: str
|
||||
color: str | None = None
|
||||
remove: bool = False
|
||||
|
||||
@classmethod
|
||||
def load( cls, data: list[dict] ) -> list[Self]:
|
||||
overwrites: list[ Overwrite ] = [ ]
|
||||
for overwrite in data or [ ]:
|
||||
overwrites += [ Overwrite( **overwrite ) ]
|
||||
|
||||
return overwrites
|
@ -0,0 +1,80 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import typing
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import Final
|
||||
from collections.abc import Collection, Iterator
|
||||
|
||||
import util
|
||||
from data.emote import Emote
|
||||
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
from generator import Generator
|
||||
|
||||
|
||||
# noinspection PyFinal
|
||||
@dataclass(frozen=True, slots=True)
|
||||
class Variants( Collection[Emote] ):
|
||||
""" An immutable variant list """
|
||||
name: Final[ str ]
|
||||
basedOff: Final[ tuple[ str ] ]
|
||||
variants: Final[ tuple[ Emote ] ]
|
||||
|
||||
def __init__( self, path: Path, gen: Generator ) -> None:
|
||||
data = util.load( path )
|
||||
|
||||
object.__setattr__( self, 'name', data[ 'name' ] )
|
||||
object.__setattr__( self, 'basedOff', data.get( 'basedOff', None ) )
|
||||
|
||||
if data['basedOff']:
|
||||
# loading a set based off another, load the base one before this
|
||||
base = gen.load( path.parent / f'{data["basedOff"]}.yml' )
|
||||
|
||||
# additional emotes may be defined
|
||||
additional = [ ]
|
||||
# apply overwrites and append new emotes to `additional`
|
||||
for emote in Emote.load( data['variants'], self.name ):
|
||||
if emote.name in base:
|
||||
base._applyOverwrite( emote )
|
||||
else:
|
||||
additional += [ emote ]
|
||||
# save the newly created set of emotes
|
||||
object.__setattr__( self, 'variants', base.variants + tuple( additional ) )
|
||||
else:
|
||||
# loading a baseless set, just load it directly
|
||||
object.__setattr__( self, 'variants', tuple( Emote.load( data['variants'], self.name ) ) )
|
||||
|
||||
def __iter__( self ) -> Iterator[Emote ]:
|
||||
return self.variants.__iter__()
|
||||
|
||||
def __contains__( self, item: object ) -> bool:
|
||||
if isinstance( item, str ):
|
||||
for elem in self.variants:
|
||||
if elem.name == item:
|
||||
return True
|
||||
return False
|
||||
return item in self.variants
|
||||
|
||||
def __getitem__( self, item: int | str ) -> Emote:
|
||||
if isinstance( item, int ):
|
||||
return self.variants[ item ]
|
||||
|
||||
if isinstance( item, str ):
|
||||
for elem in self.variants:
|
||||
if elem.name == item:
|
||||
return elem
|
||||
raise KeyError( f'A variant with name "{item}" does not exist' )
|
||||
|
||||
raise ValueError( f'Invalid __getitem__ input: {item}' )
|
||||
|
||||
def __len__( self ) -> int:
|
||||
return len( self.variants )
|
||||
|
||||
def _applyOverwrite( self, overwriter: Emote ) -> None:
|
||||
emote = self[ overwriter.name ]
|
||||
emote.origin += overwriter.origin
|
||||
emote.overwrites += overwriter.overwrites
|
||||
emote.objects += overwriter.objects
|
||||
|
@ -0,0 +1,40 @@
|
||||
from pathlib import Path
|
||||
|
||||
from PIL.Image import Image
|
||||
from cairosvg.surface import Surface
|
||||
|
||||
from data.emote import Emote
|
||||
from data.variants import Variants
|
||||
|
||||
|
||||
class Generator:
|
||||
declarations: dict[ str, Variants ]
|
||||
surfaces: dict[ str, Surface ]
|
||||
|
||||
def __init__( self, declFile: Path ) -> None:
|
||||
if not declFile.exists():
|
||||
raise FileNotFoundError('Declaration file does not exist!')
|
||||
|
||||
self.declarations = { declFile.name[:-4]: self.load( declFile ) }
|
||||
|
||||
def load( self, declFile: Path ) -> Variants:
|
||||
return Variants( declFile, self )
|
||||
|
||||
def generate( self, emote: Emote ) -> Image:
|
||||
pass
|
||||
|
||||
def export( self, sets: list[str], outputDir: Path = Path( '.' ) ) -> None:
|
||||
"""
|
||||
Generates the images in the given folder
|
||||
\t
|
||||
:param sets: the sets to export to PNGs
|
||||
:param outputDir: output directory
|
||||
"""
|
||||
if not outputDir.exists():
|
||||
outputDir.mkdir()
|
||||
|
||||
for set in sets:
|
||||
# for emote in emotes
|
||||
pass
|
||||
|
||||
|
@ -0,0 +1,55 @@
|
||||
import os
|
||||
import sys
|
||||
from argparse import ArgumentParser
|
||||
from pathlib import Path
|
||||
from typing import cast
|
||||
|
||||
from generator import Generator
|
||||
|
||||
parser = ArgumentParser(
|
||||
prog=( 'automation' + '.exe' if 'win' in os.name.lower() else '' ) if getattr( sys, 'frozen', False ) else 'main.py',
|
||||
description='Generates blobfoxes from yaml and svgs'
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
'-d',
|
||||
'--declfile',
|
||||
help='Declaration file to export',
|
||||
action='store',
|
||||
type=Path,
|
||||
dest='declFile',
|
||||
required=True
|
||||
)
|
||||
parser.add_argument(
|
||||
'-e',
|
||||
'--export',
|
||||
help='A comma-separated list of emote to export',
|
||||
action='store',
|
||||
dest='exports',
|
||||
default='<all>'
|
||||
)
|
||||
parser.add_argument(
|
||||
'-o',
|
||||
'--output',
|
||||
help='Output directory',
|
||||
action='store',
|
||||
type=Path,
|
||||
dest='output',
|
||||
default=Path('.')
|
||||
)
|
||||
|
||||
|
||||
class Arguments:
|
||||
declFile: Path
|
||||
exports: str
|
||||
output: Path
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
args: Arguments = cast( parser.parse_args( sys.argv[1:] ), Arguments )
|
||||
|
||||
gen = Generator( args.declFile )
|
||||
|
||||
gen.export( args.exports.split(','), args.output )
|
||||
|
||||
|
@ -0,0 +1,14 @@
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
import yaml
|
||||
|
||||
|
||||
def load( path: Path ) -> Any:
|
||||
""" Parse the first YAML document in a stream and produce the corresponding Python object. """
|
||||
return yaml.load( path.read_text(), yaml.FullLoader )
|
||||
|
||||
|
||||
def loads( data: str ) -> Any:
|
||||
""" Parse the first YAML document in a string and produce the corresponding Python object. """
|
||||
return yaml.load( data, yaml.FullLoader )
|
@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
cargo run --bin clean -- "$1"
|
||||
xmllint "$1" --format --output "$1"
|
@ -1,63 +0,0 @@
|
||||
name = "snuggle"
|
||||
dx = -90
|
||||
dy = -30
|
||||
bold = 12.0
|
||||
|
||||
# TODO: (medium) read from the species declaration and grab all the svgs with a given tag
|
||||
# TODO: (low) generate the SVGs in-memory instead of reading them from the disk
|
||||
[left]
|
||||
blobfox = "blobfox_snuggle_left"
|
||||
blobfox_blush = "blobfox_blush"
|
||||
blobfox_happy = "blobfox_happy"
|
||||
blobfox_aww = "blobfox_aww"
|
||||
|
||||
blobhusky = "blobhusky_snuggle_left"
|
||||
blobhusky_blush = "blobhusky_blush"
|
||||
blobhusky_happy = "blobhusky_happy"
|
||||
blobhusky_aww = "blobhusky_aww"
|
||||
|
||||
blobcat = "blobcat_snuggle_left"
|
||||
blobcat_blush = "blobcat_blush"
|
||||
blobcat_happy = "blobcat_happy"
|
||||
blobcat_aww = "blobcat_aww"
|
||||
|
||||
blobstella = "blobstella_snuggle_left"
|
||||
blobstella_blush = "blobstella_blush"
|
||||
blobstella_happy = "blobstella_happy"
|
||||
blobstella_aww = "blobstella_aww"
|
||||
|
||||
blobarcticfox = "blobarcticfox_snuggle_left"
|
||||
blobarcticfox_blush = "blobarcticfox_blush"
|
||||
blobarcticfox_happy = "blobarcticfox_happy"
|
||||
blobarcticfox_aww = "blobarcticfox_aww"
|
||||
|
||||
[right]
|
||||
blobfox = "blobfox_snuggle_right"
|
||||
blobfox_blush = "blobfox_snuggle_right_blush"
|
||||
blobfox_heart = "blobfox_snuggle_right_heart"
|
||||
blobfox_blush_heart = "blobfox_snuggle_right_blush_heart"
|
||||
|
||||
blobarcticfox = "blobarcticfox_snuggle_right"
|
||||
blobarcticfox_blush = "blobarcticfox_snuggle_right_blush"
|
||||
blobarcticfox_heart = "blobarcticfox_snuggle_right_heart"
|
||||
blobarcticfox_blush_heart = "blobarcticfox_snuggle_right_blush_heart"
|
||||
|
||||
blobhusky = "blobhusky_snuggle_right"
|
||||
blobhusky_blush = "blobhusky_snuggle_right_blush"
|
||||
blobhusky_heart = "blobhusky_snuggle_right_heart"
|
||||
blobhusky_blush_heart = "blobhusky_snuggle_right_blush_heart"
|
||||
|
||||
blobcat = "blobcat_snuggle_right"
|
||||
blobcat_blush = "blobcat_snuggle_right_blush"
|
||||
blobcat_heart = "blobcat_snuggle_right_heart"
|
||||
blobcat_blush_heart = "blobcat_snuggle_right_blush_heart"
|
||||
|
||||
blobamber = "blobamber_snuggle_right"
|
||||
blobamber_blush = "blobamber_snuggle_right_blush"
|
||||
blobamber_heart = "blobamber_snuggle_right_heart"
|
||||
blobamber_blush_heart = "blobamber_snuggle_right_blush_heart"
|
||||
|
||||
blobstella = "blobstella_snuggle_right"
|
||||
blobstella_blush = "blobstella_snuggle_right_blush"
|
||||
blobstella_heart = "blobstella_snuggle_right_heart"
|
||||
blobstella_blush_heart = "blobstella_snuggle_right_blush_heart"
|
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB |
@ -1,10 +0,0 @@
|
||||
name = "blobamber"
|
||||
base = "../blobcat/"
|
||||
|
||||
[vars]
|
||||
body_color = "#6a6862"
|
||||
ear_color = "#313131"
|
||||
ear_fluff_color = "#474747"
|
||||
hand_color = "#6a6862"
|
||||
tail_color = "#6a6862"
|
||||
marks_color = "#c8c8c8"
|
@ -1,3 +0,0 @@
|
||||
{{>blobcat.body-basic}}
|
||||
|
||||
{{#set-fill}} {{vars.marks_color}} | {{#base}}#belly{{/base}} {{/set-fill}}
|
@ -1,8 +0,0 @@
|
||||
{{>blobcat.body-comfy}}
|
||||
|
||||
<g clip-path="url(#body-clip)">
|
||||
{{#set-fill}}
|
||||
{{vars.marks_color}}
|
||||
| {{#base}}#belly{{/base}}
|
||||
{{/set-fill}}
|
||||
</g>
|
@ -1,10 +0,0 @@
|
||||
{{>blobcat.body-snuggle}}
|
||||
|
||||
<g clip-path="url(#body-snuggle-clip)" blobfox-ignore-size="true">
|
||||
<g transform="translate(-5 -5) rotate(-5 45 45)">
|
||||
{{#set-fill}}
|
||||
{{vars.marks_color}}
|
||||
| {{#base}}#belly{{/base}}
|
||||
{{/set-fill}}
|
||||
</g>
|
||||
</g>
|
@ -1,14 +0,0 @@
|
||||
<!-- DEFS -->
|
||||
|
||||
{{#blobamber.owo}}#blobamber-owo-defs{{/blobamber.owo}}
|
||||
{{#blobamber.base}}#blobamber-defs{{/blobamber.base}}
|
||||
|
||||
{{#tags.eyes-owo}}
|
||||
<g id="eyes">
|
||||
{{#owo}}#left-eye{{/owo}}
|
||||
{{#owo}}#right-eye{{/owo}}
|
||||
</g>
|
||||
{{/tags.eyes-owo}}
|
||||
{{^tags.eyes-owo}}
|
||||
{{>blobcat.eyes}}
|
||||
{{/tags.eyes-owo}}
|
@ -1,14 +0,0 @@
|
||||
{{#tags.hand-3c}}
|
||||
{{#tags.holding}}
|
||||
<g transform="translate(1.9 -3.8)">
|
||||
{{/tags.holding}}
|
||||
{{^tags.holding}}
|
||||
<g transform="translate(4.5 -10.9)">
|
||||
{{/tags.holding}}
|
||||
{{/tags.hand-3c}}
|
||||
|
||||
{{>blobcat.hands}}
|
||||
|
||||
{{#tags.hand-3c}}
|
||||
</g>
|
||||
{{/tags.hand-3c}}
|
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 9.5 KiB |
@ -1,12 +0,0 @@
|
||||
name = "blobarcticfox"
|
||||
base = "../blobfox"
|
||||
|
||||
[vars]
|
||||
body_color = "#eef2f4"
|
||||
ear_color = "#8599ad"
|
||||
ear_fluff_color = "#a0c7de"
|
||||
hand_color = "#eef2f4"
|
||||
tail_color = "#eef2f4"
|
||||
marks_color = "#eee64e"
|
||||
sheen_color = "#bfdef4"
|
||||
hand_stroke_color = "#8599ad"
|
@ -1,22 +0,0 @@
|
||||
{{! Left ear }}
|
||||
{{#tags.ear-owo}}
|
||||
{{#set-fill}} {{vars.ear_fluff_color}} | {{#boop_owo}}#left-ear-fluff{{/boop_owo}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#boop_owo}}#left-ear{{/boop_owo}} {{/set-fill}}
|
||||
{{/tags.ear-owo}}
|
||||
{{^tags.ear-owo}}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#base}}#left-ear{{/base}} {{/set-fill}}
|
||||
{{/tags.ear-owo}}
|
||||
|
||||
{{! Body }}
|
||||
<defs>
|
||||
<clipPath id="body-clip">
|
||||
{{#base}}#body{{/base}}
|
||||
</clipPath>
|
||||
</defs>
|
||||
{{#base}}#body-sheen{{/base}}
|
||||
{{#set-fill}} {{vars.body_color}} | {{#base}}#body{{/base}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.body_color}} | {{#base}}#hair{{/base}} {{/set-fill}}
|
||||
|
||||
{{! Right ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#base}}#right-ear{{/base}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.ear_fluff_color}} | {{#base}}#right-ear-fluff{{/base}} {{/set-fill}}
|
@ -1,24 +0,0 @@
|
||||
<g id="body-snug">
|
||||
<defs>
|
||||
<clipPath id="body-clip">
|
||||
{{#snug}}#body{{/snug}}
|
||||
</clipPath>
|
||||
</defs>
|
||||
|
||||
{{! TODO: owo ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#snug}}#left-ear{{/snug}} {{/set-fill}}
|
||||
|
||||
{{! TODO: set-stroke }}
|
||||
{{#snug}}#body-sheen{{/snug}}
|
||||
{{#set-fill}} {{vars.body_color}} | {{#snug}}#body{{/snug}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.body_color}} | {{#snug}}#hair{{/snug}} {{/set-fill}}
|
||||
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#snug}}#right-ear{{/snug}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.ear_fluff_color}} | {{#snug}}#right-ear-fluff{{/snug}} {{/set-fill}}
|
||||
|
||||
{{#tags.tail}}
|
||||
<g id="tail">
|
||||
{{#set-fill}} {{vars.body_color}} | {{#snug}}#tail{{/snug}} {{/set-fill}}
|
||||
</g>
|
||||
{{/tags.tail}}
|
||||
</g>
|
@ -1,16 +0,0 @@
|
||||
{{! Left ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#snuggle_right}}#left-ear{{/snuggle_right}} {{/set-fill}}
|
||||
|
||||
{{! Body }}
|
||||
<defs>
|
||||
<clipPath id="body-clip">
|
||||
{{#snuggle_right}}#body{{/snuggle_right}}
|
||||
</clipPath>
|
||||
</defs>
|
||||
{{#set-fill}} {{vars.sheen_color}} | {{#snuggle_right}}#body-sheen{{/snuggle_right}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.body_color}} | {{#snuggle_right}}#body{{/snuggle_right}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.body_color}} | {{#snuggle_right}}#hair{{/snuggle_right}} {{/set-fill}}
|
||||
|
||||
{{! Right ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#snuggle_right}}#right-ear{{/snuggle_right}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.ear_fluff_color}} | {{#snuggle_right}}#right-ear-fluff{{/snuggle_right}} {{/set-fill}}
|
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 8.1 KiB |
@ -1,9 +0,0 @@
|
||||
name = "blobcat"
|
||||
base = "../blobfox/"
|
||||
|
||||
[vars]
|
||||
body_color = "#fcc21b"
|
||||
ear_color = "#e9ae20"
|
||||
ear_fluff_color = "#8a6135"
|
||||
hand_color = "#fcc21b"
|
||||
tail_color = "#fcc21b"
|
@ -1,14 +0,0 @@
|
||||
{{! Pull the defs from the svg for the gradients }}
|
||||
{{#blush}}#blush-defs{{/blush}}
|
||||
|
||||
<g transform="translate(1.9 3.4)">
|
||||
{{#blush}}#left-blush{{/blush}}
|
||||
{{#blush}}#left-blush-line{{/blush}}
|
||||
{{#blush}}#left-blush-line-2{{/blush}}
|
||||
</g>
|
||||
|
||||
<g transform="translate(0.0 0.38)">
|
||||
{{#blush}}#right-blush{{/blush}}
|
||||
{{#blush}}#right-blush-line{{/blush}}
|
||||
{{#blush}}#right-blush-line-2{{/blush}}
|
||||
</g>
|
@ -1,20 +0,0 @@
|
||||
{{! Left ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#base}}#left-ear{{/base}} {{/set-fill}}
|
||||
|
||||
{{! Body }}
|
||||
<defs>
|
||||
<clipPath id="body-clip">
|
||||
{{#base}}#body{{/base}}
|
||||
</clipPath>
|
||||
</defs>
|
||||
{{#set-fill}} {{vars.body_color}} | {{#base}}#body{{/base}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.body_color}} | {{#base}}#hair{{/base}} {{/set-fill}}
|
||||
|
||||
{{! Right ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#base}}#right-ear{{/base}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.ear_fluff_color}} | {{#base}}#right-ear-fluff{{/base}} {{/set-fill}}
|
||||
|
||||
{{! Whiskers }}
|
||||
{{^tags.hands-reach}}
|
||||
{{>whiskers}}
|
||||
{{/tags.hands-reach}}
|
@ -1,3 +0,0 @@
|
||||
{{>blobfox.body-comfy}}
|
||||
|
||||
{{>whiskers}}
|
@ -1,23 +0,0 @@
|
||||
<g id="body-snug">
|
||||
<defs>
|
||||
<clipPath id="body-clip">
|
||||
{{#snug}}#body{{/snug}}
|
||||
</clipPath>
|
||||
</defs>
|
||||
|
||||
<g id="left-ear" transform="translate(0 7.55) rotate(5 25 20.8) translate(0 0.75)">
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#base}}#left-ear{{/base}} {{/set-fill}}
|
||||
</g>
|
||||
|
||||
{{#set-fill}}
|
||||
{{vars.body_color}}
|
||||
| {{#snug}}#body{{/snug}}
|
||||
{{/set-fill}}
|
||||
|
||||
<g id="right-ear" transform="scale(1 0.95) translate(0 7.55) rotate(5 109.6 18.9) translate(-1.89 6.05)">
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#base}}#right-ear{{/base}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.ear_fluff_color}} | {{#base}}#right-ear-fluff{{/base}} {{/set-fill}}
|
||||
</g>
|
||||
|
||||
{{>tail}}
|
||||
</g>
|
@ -1,18 +0,0 @@
|
||||
{{! Left ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#snuggle_right}}#left-ear{{/snuggle_right}} {{/set-fill}}
|
||||
|
||||
{{! Body }}
|
||||
<defs>
|
||||
<clipPath id="body-snuggle-clip">
|
||||
{{#snuggle_right}}#body{{/snuggle_right}}
|
||||
</clipPath>
|
||||
</defs>
|
||||
{{#set-fill}} {{vars.body_color}} | {{#snuggle_right}}#body{{/snuggle_right}} {{/set-fill}}
|
||||
|
||||
{{! Right ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#snuggle_right}}#right-ear{{/snuggle_right}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.ear_fluff_color}} | {{#snuggle_right}}#right-ear-fluff{{/snuggle_right}} {{/set-fill}}
|
||||
|
||||
<g transform="rotate(-12 45 75)">
|
||||
{{>whiskers}}
|
||||
</g>
|
@ -1,3 +0,0 @@
|
||||
<g id="hand-boop" transform="translate(5.7 -3.8)">
|
||||
{{>blobfox.hand-boop}}
|
||||
</g>
|
@ -1,24 +0,0 @@
|
||||
{{^tags.oh-my}}
|
||||
{{#set-fill}}
|
||||
{{vars.hand_color}} | {{>blobfox.hands}}
|
||||
{{/set-fill}}
|
||||
{{/tags.oh-my}}
|
||||
|
||||
{{#tags.oh-my}}
|
||||
{{#tags.left-hand}}
|
||||
<g transform="translate(4 0)">
|
||||
{{#set-stroke}}
|
||||
{{vars.hand_stroke_color}} |
|
||||
{{#set-fill}} {{vars.hand_color}} | {{#oh_my}}#left-hand{{/oh_my}} {{/set-fill}}
|
||||
{{/set-stroke}}
|
||||
</g>
|
||||
{{/tags.left-hand}}
|
||||
{{#tags.right-hand}}
|
||||
<g transform="translate(-6 0)">
|
||||
{{#set-stroke}}
|
||||
{{vars.hand_stroke_color}} |
|
||||
{{#set-fill}} {{vars.hand_color}} | {{#oh_my}}#right-hand{{/oh_my}} {{/set-fill}}
|
||||
{{/set-stroke}}
|
||||
</g>
|
||||
{{/tags.right-hand}}
|
||||
{{/tags.oh-my}}
|
@ -1,13 +0,0 @@
|
||||
{{#tags.boop}}
|
||||
<g transform="translate(-0.75 1.9)">
|
||||
{{/tags.boop}}
|
||||
{{#tags.mouth-hmpf}}
|
||||
<g transform="translate(1.9 0)">
|
||||
{{/tags.mouth-hmpf}}
|
||||
{{>blobfox.mouth}}
|
||||
{{#tags.boop}}
|
||||
</g>
|
||||
{{/tags.boop}}
|
||||
{{#tags.mouth-hmpf}}
|
||||
</g>
|
||||
{{/tags.mouth-hmpf}}
|
@ -1,23 +0,0 @@
|
||||
{{#tags.body-snug}}
|
||||
<g transform="translate(5.7 0)">
|
||||
{{#blobfox.base}}#nose{{/blobfox.base}}
|
||||
</g>
|
||||
{{/tags.body-snug}}
|
||||
|
||||
{{#tags.boop}}
|
||||
<g transform="translate(5.7 -1.9)">
|
||||
{{#blobfox.base}}#nose{{/blobfox.base}}
|
||||
</g>
|
||||
{{/tags.boop}}
|
||||
|
||||
{{#tags.mouth-hmpf}}
|
||||
<g transform="translate(2.64 -0.75)">
|
||||
{{#blobfox.base}}#nose{{/blobfox.base}}
|
||||
</g>
|
||||
{{/tags.mouth-hmpf}}
|
||||
|
||||
{{#tags.oh-my}}
|
||||
<g transform="translate(2.64 -0.75)">
|
||||
{{#blobfox.base}}#nose{{/blobfox.base}}
|
||||
</g>
|
||||
{{/tags.oh-my}}
|
@ -1,4 +0,0 @@
|
||||
{{#set-fill}}
|
||||
{{vars.tail_color}}
|
||||
| {{>blobfox.tail}}
|
||||
{{/set-fill}}
|
@ -1,14 +0,0 @@
|
||||
<g id="whiskers">
|
||||
{{#tags.left-hand}}{{#tags.right-hand}}{{#tags.holding}}
|
||||
<g transform="translate(0 -3.8)">
|
||||
{{/tags.holding}}{{/tags.right-hand}}{{/tags.left-hand}}
|
||||
|
||||
{{#base}}#left-whisker{{/base}}
|
||||
{{#base}}#left-whisker-2{{/base}}
|
||||
{{#base}}#right-whisker{{/base}}
|
||||
{{#base}}#right-whisker-2{{/base}}
|
||||
|
||||
{{#tags.left-hand}}{{#tags.right-hand}}{{#tags.holding}}
|
||||
</g>
|
||||
{{/tags.holding}}{{/tags.right-hand}}{{/tags.left-hand}}
|
||||
</g>
|
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 307 B |
Before Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 275 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 332 B |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 8.7 KiB |
@ -1,68 +0,0 @@
|
||||
# Add options in here as needs be
|
||||
name = "blobfox"
|
||||
|
||||
[vars]
|
||||
body_color = "#ff8702"
|
||||
ear_color = "#313131"
|
||||
ear_fluff_color = "#ebdccc"
|
||||
hand_color = "#ff8702"
|
||||
hand_stroke_color = "#313131"
|
||||
tail_color = "#ff8702"
|
||||
|
||||
[variants]
|
||||
base = ["body-basic", "eyes-basic", "mouth-w"]
|
||||
happy = ["body-basic", "eyes-happy", "mouth-w"]
|
||||
evil = ["body-basic", "eyes-evil", "mouth-w"]
|
||||
owo = ["body-basic", "ear-owo", "eyes-owo", "mouth-w"]
|
||||
aww = ["body-basic", "eyes-aww", "mouth-w"]
|
||||
|
||||
"3c" = ["body-basic", "eyes-basic", "mouth-w", "hand-3c", "left-hand"]
|
||||
"3c_evil" = ["body-basic", "eyes-evil", "mouth-w", "hand-3c", "left-hand"]
|
||||
|
||||
boop = ["body-basic", "boop", "eyes-basic", "mouth-w"]
|
||||
boop_aww = ["body-basic", "boop", "eyes-aww", "mouth-w"]
|
||||
boop_owo = ["body-basic", "ear-owo", "boop", "eyes-owo", "mouth-w"]
|
||||
|
||||
reach = ["body-basic", "eyes-basic", "mouth-w", "hands-reach", "left-hand", "right-hand"]
|
||||
reach_aww = ["body-basic", "eyes-aww", "mouth-w", "hands-reach", "left-hand", "right-hand"]
|
||||
reach_owo = ["body-basic", "ear-owo", "eyes-owo", "mouth-w", "hands-reach", "left-hand", "right-hand"]
|
||||
|
||||
snug = ["body-snug", "eyes-happy", "tail"]
|
||||
snug_aww = ["body-snug", "eyes-aww", "tail"]
|
||||
snug_owo = ["body-snug", "ear-owo", "eyes-owo", "tail"]
|
||||
snug_boop_owo = ["body-snug", "ear-owo", "eyes-owo", "tail", "boop"]
|
||||
snug_sleep = ["body-snug", "eyes-happy", "tail", "zzz"]
|
||||
|
||||
comfy = ["body-comfy", "eyes-basic", "mouth-w"]
|
||||
comfy_blush = ["body-comfy", "eyes-closed", "blush", "mouth-hmpf"]
|
||||
comfy_evil = ["body-comfy", "eyes-evil", "mouth-w"]
|
||||
comfy_happy = ["body-comfy", "eyes-happy", "mouth-w"]
|
||||
comfy_aww = ["body-comfy", "eyes-aww", "mouth-w"]
|
||||
comfy_boop = ["body-comfy", "boop", "eyes-basic", "mouth-w"]
|
||||
|
||||
stabby = ["body-basic", "holding", "eyes-evil", "mouth-w", "hand-3c", "left-hand"]
|
||||
gordon = ["body-basic", "holding", "eyes-basic", "mouth-w", "hand-3c", "left-hand"]
|
||||
|
||||
coffee = ["body-basic", "holding", "eyes-basic", "mouth-w", "hand-cup", "right-hand"]
|
||||
coffee_happy = ["body-basic", "holding", "eyes-happy", "mouth-w", "hand-cup", "right-hand"]
|
||||
|
||||
blush = ["body-basic", "ear-blush", "eyes-closed", "blush", "mouth-hmpf"]
|
||||
|
||||
oh_my = ["body-basic", "eyes-basic", "left-hand", "right-hand", "oh-my"]
|
||||
|
||||
heart = ["body-basic", "eyes-basic", "left-hand", "right-hand", "holding", "big-object"]
|
||||
egg = ["body-basic", "eyes-basic", "left-hand", "right-hand", "holding"]
|
||||
|
||||
# Flags
|
||||
heart_progress = ["body-basic", "eyes-basic", "left-hand", "right-hand", "holding", "big-object"]
|
||||
heart_enby = ["body-basic", "eyes-basic", "left-hand", "right-hand", "holding", "big-object"]
|
||||
heart_ace = ["body-basic", "eyes-basic", "left-hand", "right-hand", "holding", "big-object"]
|
||||
heart_demisexual = ["body-basic", "eyes-basic", "left-hand", "right-hand", "holding", "big-object"]
|
||||
heart_pan = ["body-basic", "eyes-basic", "left-hand", "right-hand", "holding", "big-object"]
|
||||
heart_trans = ["body-basic", "eyes-basic", "left-hand", "right-hand", "holding", "big-object"]
|
||||
heart_agender = ["body-basic", "eyes-basic", "left-hand", "right-hand", "holding", "big-object"]
|
||||
|
||||
# Snuggle
|
||||
snuggle_left = ["body-basic", "eyes-closed", "mouth-w"]
|
||||
snuggle_right = ["body-snuggle", "eyes-snuggle", "mouth-w"]
|
||||
snuggle_right_blush = ["body-snuggle", "eyes-snuggle", "mouth-w", "blush"]
|
@ -1,10 +0,0 @@
|
||||
{{! Pull the defs from the svg for the gradients }}
|
||||
{{#blush}}#blush-defs{{/blush}}
|
||||
|
||||
{{#blush}}#right-blush{{/blush}}
|
||||
{{#blush}}#right-blush-line{{/blush}}
|
||||
{{#blush}}#right-blush-line-2{{/blush}}
|
||||
|
||||
{{#blush}}#left-blush{{/blush}}
|
||||
{{#blush}}#left-blush-line{{/blush}}
|
||||
{{#blush}}#left-blush-line-2{{/blush}}
|
@ -1,21 +0,0 @@
|
||||
{{! Left ear }}
|
||||
{{#tags.ear-owo}}
|
||||
{{#set-fill}} {{vars.ear_fluff_color}} | {{#boop_owo}}#left-ear-fluff{{/boop_owo}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#boop_owo}}#left-ear{{/boop_owo}} {{/set-fill}}
|
||||
{{/tags.ear-owo}}
|
||||
{{^tags.ear-owo}}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#base}}#left-ear{{/base}} {{/set-fill}}
|
||||
{{/tags.ear-owo}}
|
||||
|
||||
{{! Body }}
|
||||
<defs>
|
||||
<clipPath id="body-clip">
|
||||
{{#base}}#body{{/base}}
|
||||
</clipPath>
|
||||
</defs>
|
||||
{{#set-fill}} {{vars.body_color}} | {{#base}}#body{{/base}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.body_color}} | {{#base}}#hair{{/base}} {{/set-fill}}
|
||||
|
||||
{{! Right ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#base}}#right-ear{{/base}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.ear_fluff_color}} | {{#base}}#right-ear-fluff{{/base}} {{/set-fill}}
|
@ -1,18 +0,0 @@
|
||||
{{! Left ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#comfy}}#left-ear{{/comfy}} {{/set-fill}}
|
||||
|
||||
{{! Body }}
|
||||
<defs>
|
||||
<clipPath id="body-clip">
|
||||
{{#comfy}}#body{{/comfy}}
|
||||
</clipPath>
|
||||
</defs>
|
||||
{{#set-fill}} {{vars.body_color}} | {{#comfy}}#body{{/comfy}} {{/set-fill}}
|
||||
|
||||
{{! Blanket }}
|
||||
{{#comfy}}#blanket-line{{/comfy}}
|
||||
{{#comfy}}#blanket{{/comfy}}
|
||||
|
||||
{{! Right ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#comfy}}#right-ear{{/comfy}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.ear_fluff_color}} | {{#comfy}}#right-ear-fluff{{/comfy}} {{/set-fill}}
|
@ -1,34 +0,0 @@
|
||||
<g id="body-snug">
|
||||
<defs>
|
||||
<clipPath id="body-clip">
|
||||
{{#snug}}#body{{/snug}}
|
||||
</clipPath>
|
||||
</defs>
|
||||
|
||||
{{! TODO: owo ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#snug}}#left-ear{{/snug}} {{/set-fill}}
|
||||
|
||||
{{#set-fill}} {{vars.body_color}} | {{#snug}}#body{{/snug}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.body_color}} | {{#snug}}#hair{{/snug}} {{/set-fill}}
|
||||
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#snug}}#right-ear{{/snug}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.ear_fluff_color}} | {{#snug}}#right-ear-fluff{{/snug}} {{/set-fill}}
|
||||
|
||||
{{#tags.tail}}
|
||||
{{>tail}}
|
||||
{{/tags.tail}}
|
||||
</g>
|
||||
|
||||
<!-- Following is a list of transforms to approximate the snug version using the base version
|
||||
<g id="new" transform="scale(1 0.88) translate(0 7.5)">
|
||||
<g id="left-ear" transform="rotate(5 25 20.7) translate(0 0.75) scale(1 1.2)">
|
||||
{{#base}}#left-ear{{/base}}
|
||||
</g>
|
||||
{{#base}}#body{{/base}}
|
||||
{{#base}}#hair{{/base}}
|
||||
<g id="right-ear" transform="rotate(5 109.6 18.9) translate(-1.9 6.05)">
|
||||
{{#base}}#right-ear{{/base}}
|
||||
{{#base}}#right-ear-fluff{{/base}}
|
||||
</g>
|
||||
</g>
|
||||
-->
|
@ -1,15 +0,0 @@
|
||||
{{! Left ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#snuggle_right}}#left-ear{{/snuggle_right}} {{/set-fill}}
|
||||
|
||||
{{! Body }}
|
||||
<defs>
|
||||
<clipPath id="body-snuggle-clip">
|
||||
{{#snuggle_right}}#body{{/snuggle_right}}
|
||||
</clipPath>
|
||||
</defs>
|
||||
{{#set-fill}} {{vars.body_color}} | {{#snuggle_right}}#body{{/snuggle_right}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.body_color}} | {{#snuggle_right}}#hair{{/snuggle_right}} {{/set-fill}}
|
||||
|
||||
{{! Right ear }}
|
||||
{{#set-fill}} {{vars.ear_color}} | {{#snuggle_right}}#right-ear{{/snuggle_right}} {{/set-fill}}
|
||||
{{#set-fill}} {{vars.ear_fluff_color}} | {{#snuggle_right}}#right-ear-fluff{{/snuggle_right}} {{/set-fill}}
|
@ -1,14 +0,0 @@
|
||||
<g id="body">
|
||||
{{#tags.body-basic}}
|
||||
{{>body-basic}}
|
||||
{{/tags.body-basic}}
|
||||
{{#tags.body-snug}}
|
||||
{{>body-snug}}
|
||||
{{/tags.body-snug}}
|
||||
{{#tags.body-comfy}}
|
||||
{{>body-comfy}}
|
||||
{{/tags.body-comfy}}
|
||||
{{#tags.body-snuggle}}
|
||||
{{>body-snuggle}}
|
||||
{{/tags.body-snuggle}}
|
||||
</g>
|
@ -1,6 +0,0 @@
|
||||
<g id="coffee">
|
||||
{{#coffee}}#smoke{{/coffee}}
|
||||
{{#coffee}}#cup{{/coffee}}
|
||||
{{#coffee}}#cup-handle{{/coffee}}
|
||||
{{#coffee}}#liquid{{/coffee}}
|
||||
</g>
|
@ -1,6 +0,0 @@
|
||||
<g id="crowbar">
|
||||
{{#crowbar}}#crowbar-base{{/crowbar}}
|
||||
{{#crowbar}}#crowbar-reflection{{/crowbar}}
|
||||
{{#crowbar}}#crowbar-shadow{{/crowbar}}
|
||||
{{#crowbar}}#crowbar-shadow-2{{/crowbar}}
|
||||
</g>
|
@ -1,30 +0,0 @@
|
||||
<g id="eyes">
|
||||
{{#tags.eyes-basic}}
|
||||
{{#base}}#left-eye{{/base}}
|
||||
{{#base}}#right-eye{{/base}}
|
||||
{{/tags.eyes-basic}}
|
||||
{{#tags.eyes-owo}}
|
||||
{{#boop_owo}}#left-eye{{/boop_owo}}
|
||||
{{#boop_owo}}#right-eye{{/boop_owo}}
|
||||
{{/tags.eyes-owo}}
|
||||
{{#tags.eyes-happy}}
|
||||
{{#snug}}#left-eye{{/snug}}
|
||||
{{#snug}}#right-eye{{/snug}}
|
||||
{{/tags.eyes-happy}}
|
||||
{{#tags.eyes-aww}}
|
||||
{{#reach_aww}}#left-eye{{/reach_aww}}
|
||||
{{#reach_aww}}#right-eye{{/reach_aww}}
|
||||
{{/tags.eyes-aww}}
|
||||
{{#tags.eyes-evil}}
|
||||
{{#3c_evil}}#left-eye{{/3c_evil}}
|
||||
{{#3c_evil}}#right-eye{{/3c_evil}}
|
||||
{{/tags.eyes-evil}}
|
||||
{{#tags.eyes-closed}}
|
||||
{{#blush}}#left-eye{{/blush}}
|
||||
{{#blush}}#right-eye{{/blush}}
|
||||
{{/tags.eyes-closed}}
|
||||
{{#tags.eyes-snuggle}}
|
||||
{{#snuggle_right}}#left-eye{{/snuggle_right}}
|
||||
{{#snuggle_right}}#right-eye{{/snuggle_right}}
|
||||
{{/tags.eyes-snuggle}}
|
||||
</g>
|
@ -1,2 +0,0 @@
|
||||
</g>
|
||||
</svg>
|
@ -1 +0,0 @@
|
||||
{{#boop_owo}}#hand-boop{{/boop_owo}}
|
@ -1,77 +0,0 @@
|
||||
<g id="hands">
|
||||
{{#tags.hands-reach}}
|
||||
{{#set-stroke}}
|
||||
{{vars.hand_stroke_color}} |
|
||||
{{#set-fill}}
|
||||
{{vars.hand_color}}
|
||||
| {{#reach_aww}}#left-hand{{/reach_aww}}
|
||||
{{/set-fill}}
|
||||
{{/set-stroke}}
|
||||
{{#set-stroke}}
|
||||
{{vars.hand_stroke_color}} |
|
||||
{{#set-fill}}
|
||||
{{vars.hand_color}}
|
||||
| {{#reach_aww}}#right-hand{{/reach_aww}}
|
||||
{{/set-fill}}
|
||||
{{/set-stroke}}
|
||||
{{/tags.hands-reach}}
|
||||
|
||||
{{#tags.hand-3c}}
|
||||
{{#tags.holding}}
|
||||
{{#set-stroke}}
|
||||
{{vars.hand_stroke_color}} |
|
||||
{{#set-fill}} {{vars.hand_color}} | {{#knife}}#left-hand{{/knife}} {{/set-fill}}
|
||||
{{/set-stroke}}
|
||||
{{/tags.holding}}
|
||||
{{^tags.holding}}
|
||||
{{! :3c hand }}
|
||||
|
||||
{{#set-stroke}}
|
||||
{{vars.hand_stroke_color}} |
|
||||
{{#set-fill}} {{vars.hand_color}} | {{#3c_evil}}#left-hand{{/3c_evil}} {{/set-fill}}
|
||||
{{/set-stroke}}
|
||||
{{/tags.holding}}
|
||||
{{/tags.hand-3c}}
|
||||
{{^tags.hand-3c}}
|
||||
{{#tags.holding}}
|
||||
{{#tags.left-hand}}
|
||||
{{#set-stroke}}
|
||||
{{vars.hand_stroke_color}} |
|
||||
{{#set-fill}} {{vars.hand_color}} | {{#heart}}#left-hand{{/heart}} {{/set-fill}}
|
||||
{{/set-stroke}}
|
||||
{{/tags.left-hand}}
|
||||
|
||||
{{#tags.right-hand}}
|
||||
{{#tags.hand-cup}}
|
||||
{{#set-stroke}}
|
||||
{{vars.hand_stroke_color}} |
|
||||
{{#set-fill}} {{vars.hand_color}} | {{#coffee}}#right-hand{{/coffee}} {{/set-fill}}
|
||||
{{/set-stroke}}
|
||||
{{/tags.hand-cup}}
|
||||
{{^tags.hand-cup}}
|
||||
{{#set-stroke}}
|
||||
{{vars.hand_stroke_color}} |
|
||||
{{#set-fill}} {{vars.hand_color}} | {{#heart}}#right-hand{{/heart}} {{/set-fill}}
|
||||
{{/set-stroke}}
|
||||
{{/tags.hand-cup}}
|
||||
{{/tags.right-hand}}
|
||||
{{/tags.holding}}
|
||||
{{/tags.hand-3c}}
|
||||
|
||||
{{#tags.oh-my}}
|
||||
{{#tags.left-hand}}
|
||||
{{#set-stroke}}
|
||||
{{vars.hand_stroke_color}} |
|
||||
{{#set-fill}} {{vars.hand_color}} | {{#oh_my}}#left-hand{{/oh_my}} {{/set-fill}}
|
||||
{{/set-stroke}}
|
||||
{{/tags.left-hand}}
|
||||
{{#tags.right-hand}}
|
||||
{{#set-stroke}}
|
||||
{{vars.hand_stroke_color}} |
|
||||
{{#set-fill}} {{vars.hand_color}} | {{#oh_my}}#right-hand{{/oh_my}} {{/set-fill}}
|
||||
{{/set-stroke}}
|
||||
{{/tags.right-hand}}
|
||||
{{/tags.oh-my}}
|
||||
|
||||
|
||||
</g>
|
Before Width: | Height: | Size: 377 B |
@ -1,6 +0,0 @@
|
||||
<g id="knife">
|
||||
{{#knife}}#blade-back{{/knife}}
|
||||
{{#knife}}#blade-front{{/knife}}
|
||||
{{#knife}}#handle{{/knife}}
|
||||
{{#knife}}#handle-screw{{/knife}}
|
||||
</g>
|
@ -1,6 +0,0 @@
|
||||
{{#tags.mouth-w}}
|
||||
{{#base}}#mouth{{/base}}
|
||||
{{/tags.mouth-w}}
|
||||
{{#tags.mouth-hmpf}}
|
||||
{{#blush}}#mouth{{/blush}}
|
||||
{{/tags.mouth-hmpf}}
|
@ -1,25 +0,0 @@
|
||||
<g id="nose">
|
||||
{{#tags.eyes-basic}}
|
||||
{{#base}}#nose-outline{{/base}}
|
||||
{{/tags.eyes-basic}}
|
||||
{{#tags.eyes-owo}}
|
||||
{{#boop_owo}}#nose-outline{{/boop_owo}}
|
||||
{{/tags.eyes-owo}}
|
||||
{{#tags.eyes-aww}}
|
||||
{{#reach_aww}}#nose-outline{{/reach_aww}}
|
||||
{{/tags.eyes-aww}}
|
||||
{{#tags.eyes-happy}}
|
||||
{{#snug}}#nose-outline{{/snug}}
|
||||
{{/tags.eyes-happy}}
|
||||
{{#tags.eyes-evil}}
|
||||
{{#3c_evil}}#nose-outline{{/3c_evil}}
|
||||
{{/tags.eyes-evil}}
|
||||
{{#tags.eyes-closed}}
|
||||
{{#blush}}#nose-outline{{/blush}}
|
||||
{{/tags.eyes-closed}}
|
||||
{{#tags.eyes-snuggle}}
|
||||
{{#snuggle_right}}#nose-outline{{/snuggle_right}}
|
||||
{{/tags.eyes-snuggle}}
|
||||
|
||||
{{#base}}#nose{{/base}}
|
||||
</g>
|
@ -1,3 +0,0 @@
|
||||
<g id="tail">
|
||||
{{#set-fill}} {{vars.tail_color}} | {{#snug}}#tail{{/snug}} {{/set-fill}}
|
||||
</g>
|
@ -1,5 +0,0 @@
|
||||
<g id="zzz">
|
||||
{{#snug_sleep}}#zzz-1{{/snug_sleep}}
|
||||
{{#snug_sleep}}#zzz-2{{/snug_sleep}}
|
||||
{{#snug_sleep}}#zzz-3{{/snug_sleep}}
|
||||
</g>
|
@ -1,9 +0,0 @@
|
||||
{{>header}}
|
||||
{{>body}}
|
||||
|
||||
{{>eyes}}
|
||||
{{>nose}}
|
||||
{{>mouth}}
|
||||
|
||||
{{>hands}}
|
||||
{{>footer}}
|
@ -1,9 +0,0 @@
|
||||
{{>header}}
|
||||
{{>body}}
|
||||
|
||||
{{>eyes}}
|
||||
{{>nose}}
|
||||
{{>mouth}}
|
||||
|
||||
{{>hands}}
|
||||
{{>footer}}
|
@ -1,7 +0,0 @@
|
||||
{{>header}}
|
||||
{{>body}}
|
||||
|
||||
{{>eyes}}
|
||||
{{>nose}}
|
||||
{{>mouth}}
|
||||
{{>footer}}
|
@ -1,7 +0,0 @@
|
||||
{{>header}}
|
||||
{{>body}}
|
||||
|
||||
{{>eyes}}
|
||||
{{>nose}}
|
||||
{{>mouth}}
|
||||
{{>footer}}
|
@ -1,9 +0,0 @@
|
||||
{{>header}}
|
||||
{{>body}}
|
||||
|
||||
{{>eyes}}
|
||||
{{>nose}}
|
||||
{{>mouth}}
|
||||
|
||||
{{>blush}}
|
||||
{{>footer}}
|
@ -1,9 +0,0 @@
|
||||
{{>header}}
|
||||
{{>body}}
|
||||
|
||||
{{>eyes}}
|
||||
{{>nose}}
|
||||
{{>mouth}}
|
||||
|
||||
{{>hand-boop}}
|
||||
{{>footer}}
|
@ -1,9 +0,0 @@
|
||||
{{>header}}
|
||||
{{>body}}
|
||||
|
||||
{{>eyes}}
|
||||
{{>nose}}
|
||||
{{>mouth}}
|
||||
|
||||
{{>hand-boop}}
|
||||
{{>footer}}
|
@ -1,9 +0,0 @@
|
||||
{{>header}}
|
||||
{{>body}}
|
||||
|
||||
{{>eyes}}
|
||||
{{>nose}}
|
||||
{{>mouth}}
|
||||
|
||||
{{>hand-boop}}
|
||||
{{>footer}}
|
@ -1,10 +0,0 @@
|
||||
{{>header}}
|
||||
{{>body}}
|
||||
|
||||
{{>eyes}}
|
||||
{{>nose}}
|
||||
{{>mouth}}
|
||||
|
||||
{{>coffee}}
|
||||
{{>hands}}
|
||||
{{>footer}}
|