oha
55
.config/retroarch/assets/xmb/NPMApng2PMApng.py
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
# Copyright (C) 2011, Maxime Biais <http://twitter.com/maximeb>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
# $Id$
|
||||
|
||||
from PIL import Image
|
||||
import numpy
|
||||
|
||||
def is_pma(matrix):
|
||||
for line in matrix:
|
||||
for e in line:
|
||||
if e[3] != 255:
|
||||
if e[0] > e[3] or e[1] > e[3] or e[2] > e[3]:
|
||||
return False
|
||||
return True
|
||||
|
||||
def main(finput, foutput):
|
||||
# load
|
||||
#print "load image"
|
||||
im = Image.open(finput)
|
||||
matrix = numpy.array(im)
|
||||
# premultiply alpha
|
||||
print "checking PMA"
|
||||
if is_pma(matrix):
|
||||
print "Skipped %s: already Premultiplied Alpha image" % (finput, )
|
||||
return
|
||||
print "premultiplying matrix..."
|
||||
for line in matrix:
|
||||
for v in line:
|
||||
v[0] = v[0] * (v[3] / 255.)
|
||||
v[1] = v[1] * (v[3] / 255.)
|
||||
v[2] = v[2] * (v[3] / 255.)
|
||||
# save
|
||||
#print "matrix to image"
|
||||
res = Image.fromarray(matrix)
|
||||
#print "export to png"
|
||||
res.save(foutput)
|
||||
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
main(sys.argv[1], sys.argv[2])
|
||||
|
||||
20
.config/retroarch/assets/xmb/convert.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
# MonoChrome SVG to PNG Converter
|
||||
#
|
||||
# Will update the given icon from its SVG to its PNG.
|
||||
#
|
||||
# Requires Inkscape to be installed.
|
||||
#
|
||||
# ./convert.sh THEME ICON
|
||||
#
|
||||
# Parameters
|
||||
# - THEME Which theme to act on.
|
||||
# - ICON Which icon to conver from an SVG to a PNG.
|
||||
#
|
||||
# Example
|
||||
#
|
||||
# ./convert.sh monochrome battery-full
|
||||
# ./convert.sh flatui DOS
|
||||
|
||||
inkscape -z -e "$1/png/$2.png" -w 256 -h 256 "$1/src/$2.svg"
|
||||
15
.config/retroarch/assets/xmb/dot-art/README.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
XMB Dot-art Theme
|
||||
====================
|
||||
|
||||
|
||||
Most icons are made by "Yoshi-kun", a Japanese author, from his website:
|
||||
http://yspixel.jpn.org/icon/index.html
|
||||
|
||||
You can find his collection in the src folder, resized to 256x256 to avoid any kind of filtering happenning in the menu.
|
||||
|
||||
The other ones are made by Tatsuya79, some are just slightly altered version of Yoshi-kun ones or
|
||||
from various sources.
|
||||
|
||||
Ideally they should be drawn in 32x32 pixels then resized to 256x256.
|
||||
|
||||
Icons not covered yet are taken from the Monochrome theme.
|
||||
BIN
.config/retroarch/assets/xmb/dot-art/font.ttf
Normal file
BIN
.config/retroarch/assets/xmb/dot-art/png/2048-content.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/2048.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Atari - 2600.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 3 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Atari - 5200.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Atari - 7800.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Atari - Jaguar Cd.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Atari - Jaguar.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Atari - Lynx.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Atari - ST-content.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Atari - ST.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Bandai - WonderSwan.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Cave Story-content.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Cave Story.png
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Commodore Amiga.png
Normal file
|
After Width: | Height: | Size: 9.4 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/DOOM-content.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/DOOM.png
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/DOS-content.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/DOS.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Dinothawr-content.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Dinothawr.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/FFmpeg-content.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/FFmpeg.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/GCE - Vectrex.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Game Park - GP32.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Game-content.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Game.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 2 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Lutro-content.png
Normal file
|
After Width: | Height: | Size: 7 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Lutro.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/MAME-content.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/MAME.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/MAME2003-content.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/MAME2003.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/MAME2010-content.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/MAME2010.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/MAME2016-content.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/MAME2016.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Magnavox - Odyssey2.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 3 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Microsoft - MSX.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 3 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Microsoft - MSX2.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Microsoft - Xbox.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Microsoft - Xbox360.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/NEC - PC-FX-content.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/NEC - PC-FX.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Nintendo - Game Boy.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
BIN
.config/retroarch/assets/xmb/dot-art/png/Nintendo - GameCube.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.4 KiB |