diff --git a/README.md b/README.md index 07b3c60..7c29c61 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,13 @@ My custom skin for the game [osu!](osu.ppy.sh) (yes, the exclamation mark is par ## Characteristics -- semi-transparent approach circles to make reading high [AR](https://osu.ppy.sh/wiki/en/Beatmapping/Approach_rate) easier - minimalistic - does not even have a health bar - uses the default element in most cases - skins osu!standard only -- centered acc meter -- acc meter positioned on top of the screen +- acc meter positioned on top of the screen instead of the bottom - made specifically for osu!lazer -- [HD images](https://github.com/ppy/osu-wiki/blob/master/wiki/Skinning/FAQ/en.md#hd-images) only +- uses [HD images](https://github.com/ppy/osu-wiki/blob/master/wiki/Skinning/FAQ/en.md#hd-images) only ## Commands @@ -50,7 +48,7 @@ Though no images have a `@2x` postfix, they are all HD images, and the postfix w ### [spinner](https://github.com/ppy/osu-wiki/blob/master/wiki/Skinning/osu!/en.md#spinner) -## TODOs +## TODO - audio diff --git a/src/procedures/hitcircles/__init__.py b/src/procedures/hitcircles/__init__.py index 7f6ee8b..7431702 100644 --- a/src/procedures/hitcircles/__init__.py +++ b/src/procedures/hitcircles/__init__.py @@ -3,18 +3,21 @@ from glob import glob from shutil import copyfile +opacity = 1.0 + def parse_approachcircle(): - opacity = 0.8 - img = Image.open("src/procedures/hitcircles/approachcircle.png") - img = img.convert("RGBA") - data = [] - for (r, g, b, a) in img.getdata(): - data.append((r, g, b, int(a * opacity))) + if opacity >= 1.0: + img = img.convert("RGBA") + + data = [] + for (r, g, b, a) in img.getdata(): + data.append((r, g, b, int(a * opacity))) + + img.putdata(data) - img.putdata(data) img.save("dist/approachcircle@2x.png")