The logo competition for the 2025 4chan Winter Cup is now taking submissions. | ||
The deadline is January 7th, 23:59 UTC. Logos will be placed in this gallery to facilitate discussion. This will be followed by a polling period to determine which logo will be used. Please send all submissions to Potatotron. You must supply a high-res PNG file (5000x5000 limit) and the original multi-layer source file. | ||
Cloverleaf logo: .png .svg |
|
Cloverball logo: .ai .png .svg |
Difference between revisions of "User:Koala/Sandbox"
Jump to navigation
Jump to search
m |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
|} | |} | ||
== | == More Shit == | ||
{| width="100%" style="background: # | {| width="100%" style="background: transparent;" | ||
|- | |||
| align="center" | | |||
{| width="60%" style="background: #EEE; border: 1px solid #CCC; {{radius|3px}};" cellspacing="0" cellpadding="0" | |||
|- | |||
! width="15%" style="background: #2C72C7; {{radiusleft|3px}}; padding: 3px;" rowspan="4" | [[File:Poll.svg|128px]] | |||
|- | |||
! style="background: #2C72C7; color: white; padding: 3px; {{radiustr|3px}};" | {{{1|Information}}} | |||
|- | |||
| style="padding: 3px;" | {{{2|Text}}} | |||
|- | |||
| style="font-size: 10px; padding-left: 3px;" | Added on ''{{{3|date}}}'' | |||
|} | |||
|} | |||
{| width="100%" style="background: transparent;" | |||
|- | |||
| align="center" | | |||
{| width="60%" style="background: #EEE; border: 1px solid #CCC; {{radius|3px}};" cellspacing="0" cellpadding="0" | |||
|- | |||
! width="15%" style="background: #E85752; {{radiusleft|3px}}; padding: 3px;" rowspan="4" | [[File:Out_of_date.svg|128px]] | |||
|- | |||
! style="background: #E85752; color: white; padding: 3px; {{radiustr|3px}};" | {{{1|Warning}}} | |||
|- | |||
| style="padding: 3px;" | {{{2|Text}}} | |||
|- | |||
| style="font-size: 10px; padding-left: 3px;" | Added on ''{{{3|date}}}'' | |||
|} | |||
|} | |||
=== One of the problems is that the size of the title bar changes with image size === | |||
{| width="100%" style="background: transparent;" | |||
|- | |||
| align="center" | | |||
{| width="60%" style="background: #EEE; border: 1px solid #CCC; {{radius|3px}};" cellspacing="0" cellpadding="0" | |||
|- | |||
! width="15%" style="background: #E85752; {{radiusleft|3px}}; padding: 3px;" rowspan="4" | [[File:Out_of_date.svg|64px]] | |||
|- | |||
! style="background: #E85752; color: white; padding: 3px; {{radiustr|3px}};" | {{{1|Warning}}} | |||
|- | |- | ||
| | | style="padding: 3px;" | {{{2|Text}}} | ||
|- | |||
| style="font-size: 10px; padding-left: 3px;" | Added on ''{{{3|date}}}'' | |||
|} | |||
|} | |||
=== Alternative === | |||
{| width="100%" style="background: transparent;" | |||
|- | |||
| align="center" | | |||
{| width="60%" style="background: #EEE; border: 1px solid #CCC; border-top: none; {{radiusbottom|3px}};" cellspacing="0" cellpadding="0" | |||
|+ style="font-weight: bold; background: #E85752; color: white; padding: 3px; {{radiustop|3px}};" | {{{1|Warning}}} | |||
! width="15%" style="background: #EEE; padding: 8px;" rowspan="4" | [[File:Out_of_date.svg|128px]] | |||
! | |||
|- | |||
| style="padding: 3px;" | {{{2|Text}}} | |||
|- | |||
| style="font-size: 10px; padding-left: 3px;" | Added on ''{{{3|date}}}'' | |||
|} | |||
|} | |||
{| width="100%" style="background: transparent;" | {| width="100%" style="background: transparent;" | ||
|- | |- | ||
| align="center" | | |||
{| width="60%" style="background: #EEE; border: 1px solid #CCC; border-top: none; {{radiusbottom|3px}};" cellspacing="0" cellpadding="0" | |||
|+ style="font-weight: bold; background: #E85752; color: white; padding: 3px; {{radiustop|3px}};" | {{{1|Warning}}} | |||
! width="15%" style="background: #EEE; padding: 8px;" rowspan="4" | [[File:Out_of_date.svg|96px]] | |||
! | |||
|- | |||
| style="padding: 3px;" | {{{2|Text}}} | |||
|- | |- | ||
| | | style="font-size: 10px; padding-left: 3px;" | Added on ''{{{3|date}}}'' | ||
|} | |} | ||
|} | |} | ||
== Oxygen Colour Palette == | |||
{| class="wikitable" | |||
|+ Oxygen | |||
! Colour | |||
! Hex | |||
! Name | |||
|- | |||
| style="background-color:#382509" | | |||
| #382509 | |||
| wood brown6 | |||
|- | |||
| style="background-color:#57401e" | | |||
| #57401e | |||
| wood brown5 | |||
|- | |||
| style="background-color:#75511a" | | |||
| #75511a | |||
| wood brown4 | |||
|- | |||
| style="background-color:#8f6b32" | | |||
| #8f6b32 | |||
| wood brown3 | |||
|- | |||
| style="background-color:#b3925d" | | |||
| #b3925d | |||
| wood brown2 | |||
|- | |||
| style="background-color:#debc85" | | |||
| #debc85 | |||
| wood brown1 | |||
|- | |||
| style="background-color:#9c0f0f" | | |||
| #9c0f0f | |||
| brick red6 | |||
|- | |||
| style="background-color:#bf0303" | | |||
| #bf0303 | |||
| brick red5 | |||
|- | |||
| style="background-color:#e20800" | | |||
| #e20800 | |||
| brick red4 | |||
|- | |||
| style="background-color:#e85752" | | |||
| #e85752 | |||
| brick red3 | |||
|- | |||
| style="background-color:#f08682" | | |||
| #f08682 | |||
| brick red2 | |||
|- | |||
| style="background-color:#f9ccca" | | |||
| #f9ccca | |||
| brick red1 | |||
|- | |||
| style="background-color:#9c0f56" | | |||
| #9c0f56 | |||
| raspberry pink6 | |||
|- | |||
| style="background-color:#bf0361" | | |||
| #bf0361 | |||
| raspberry pink5 | |||
|- | |||
| style="background-color:#e20071" | | |||
| #e20071 | |||
| raspberry pink4 | |||
|- | |||
| style="background-color:#e85290" | | |||
| #e85290 | |||
| raspberry pink3 | |||
|- | |||
| style="background-color:#f082b0" | | |||
| #f082b0 | |||
| raspberry pink2 | |||
|- | |||
| style="background-color:#f9cade" | | |||
| #f9cade | |||
| raspberry pink1 | |||
|- | |||
| style="background-color:#6a0056" | | |||
| #6a0056 | |||
| burgundy purple6 | |||
|- | |||
| style="background-color:#85026c" | | |||
| #85026c | |||
| burgundy purple5 | |||
|- | |||
| style="background-color:#a02786" | | |||
| #a02786 | |||
| burgundy purple4 | |||
|- | |||
| style="background-color:#b14f9a" | | |||
| #b14f9a | |||
| burgundy purple3 | |||
|- | |||
| style="background-color:#c173b0" | | |||
| #c173b0 | |||
| burgundy purple2 | |||
|- | |||
| style="background-color:#e8b7d7" | | |||
| #e8b7d7 | |||
| burgundy purple1 | |||
|- | |||
| style="background-color:#1d0a55" | | |||
| #1d0a55 | |||
| grape violet6 | |||
|- | |||
| style="background-color:#34176e" | | |||
| #34176e | |||
| grape violet5 | |||
|- | |||
| style="background-color:#462886" | | |||
| #462886 | |||
| grape violet4 | |||
|- | |||
| style="background-color:#644a9b" | | |||
| #644a9b | |||
| grape violet3 | |||
|- | |||
| style="background-color:#8e79a5" | | |||
| #8e79a5 | |||
| grape violet2 | |||
|- | |||
| style="background-color:#c3b4da" | | |||
| #c3b4da | |||
| grape violet1 | |||
|- | |||
| style="background-color:#00316e" | | |||
| #00316e | |||
| skyblue6 | |||
|- | |||
| style="background-color:#00438a" | | |||
| #00438a | |||
| skyblue5 | |||
|- | |||
| style="background-color:#0057ae" | | |||
| #0057ae | |||
| skyblue4 | |||
|- | |||
| style="background-color:#2c72c7" | | |||
| #2c72c7 | |||
| skyblue3 | |||
|- | |||
| style="background-color:#6193cf" | | |||
| #6193cf | |||
| skyblue2 | |||
|- | |||
| style="background-color:#a4c0e4" | | |||
| #a4c0e4 | |||
| skyblue1 | |||
|- | |||
| style="background-color:#00484d" | | |||
| #00484d | |||
| sea blue6 | |||
|- | |||
| style="background-color:#006066" | | |||
| #006066 | |||
| sea blue5 | |||
|- | |||
| style="background-color:#007880" | | |||
| #007880 | |||
| sea blue4 | |||
|- | |||
| style="background-color:#00a7b3" | | |||
| #00a7b3 | |||
| sea blue3 | |||
|- | |||
| style="background-color:#00c4cc" | | |||
| #00c4cc | |||
| sea blue2 | |||
|- | |||
| style="background-color:#a8dde0" | | |||
| #a8dde0 | |||
| sea blue1 | |||
|- | |||
| style="background-color:#00583f" | | |||
| #00583f | |||
| emerald green6 | |||
|- | |||
| style="background-color:#00734d" | | |||
| #00734d | |||
| emerald green5 | |||
|- | |||
| style="background-color:#009966" | | |||
| #009966 | |||
| emerald green4 | |||
|- | |||
| style="background-color:#00b377" | | |||
| #00b377 | |||
| emerald green3 | |||
|- | |||
| style="background-color:#00cc88" | | |||
| #00cc88 | |||
| emerald green2 | |||
|- | |||
| style="background-color:#99dcc6" | | |||
| #99dcc6 | |||
| emerald green1 | |||
|- | |||
| style="background-color:#006e29" | | |||
| #006e29 | |||
| forest green6 | |||
|- | |||
| style="background-color:#00892c" | | |||
| #00892c | |||
| forest green5 | |||
|- | |||
| style="background-color:#37a42c" | | |||
| #37a42c | |||
| forest green4 | |||
|- | |||
| style="background-color:#77b753" | | |||
| #77b753 | |||
| forest green3 | |||
|- | |||
| style="background-color:#b1d28f" | | |||
| #b1d28f | |||
| forest green2 | |||
|- | |||
| style="background-color:#d8e8c2" | | |||
| #d8e8c2 | |||
| forest green1 | |||
|- | |||
| style="background-color:#e3ad00" | | |||
| #e3ad00 | |||
| sun yellow6 | |||
|- | |||
| style="background-color:#f3c300" | | |||
| #f3c300 | |||
| sun yellow5 | |||
|- | |||
| style="background-color:#ffdd00" | | |||
| #ffdd00 | |||
| sun yellow4 | |||
|- | |||
| style="background-color:#ffeb55" | | |||
| #ffeb55 | |||
| sun yellow3 | |||
|- | |||
| style="background-color:#fff299" | | |||
| #fff299 | |||
| sun yellow2 | |||
|- | |||
| style="background-color:#fff6c8" | | |||
| #fff6c8 | |||
| sun yellow1 | |||
|- | |||
| style="background-color:#ac4311" | | |||
| #ac4311 | |||
| hot orange6 | |||
|- | |||
| style="background-color:#cf4913" | | |||
| #cf4913 | |||
| hot orange5 | |||
|- | |||
| style="background-color:#eb7331" | | |||
| #eb7331 | |||
| hot orange4 | |||
|- | |||
| style="background-color:#f29b68" | | |||
| #f29b68 | |||
| hot orange3 | |||
|- | |||
| style="background-color:#f2bb88" | | |||
| #f2bb88 | |||
| hot orange2 | |||
|- | |||
| style="background-color:#ffd9b0" | | |||
| #ffd9b0 | |||
| hot orange1 | |||
|- | |||
| style="background-color:#2e3436" | | |||
| #2e3436 | |||
| aluminum gray6 | |||
|- | |||
| style="background-color:#555753" | | |||
| #555753 | |||
| aluminum gray5 | |||
|- | |||
| style="background-color:#888a85" | | |||
| #888a85 | |||
| aluminum gray4 | |||
|- | |||
| style="background-color:#babdb6" | | |||
| #babdb6 | |||
| aluminum gray3 | |||
|- | |||
| style="background-color:#d3d7cf" | | |||
| #d3d7cf | |||
| aluminum gray2 | |||
|- | |||
| style="background-color:#eeeeec" | | |||
| #eeeeec | |||
| aluminum gray1 | |||
|- | |||
| style="background-color:#4d2600" | | |||
| #4d2600 | |||
| brown orange6 | |||
|- | |||
| style="background-color:#803f00" | | |||
| #803f00 | |||
| brown orange5 | |||
|- | |||
| style="background-color:#bf5e00" | | |||
| #bf5e00 | |||
| brown orange4 | |||
|- | |||
| style="background-color:#ff7e00" | | |||
| #ff7e00 | |||
| brown orange3 | |||
|- | |||
| style="background-color:#ffbf80" | | |||
| #ffbf80 | |||
| brown orange2 | |||
|- | |||
| style="background-color:#ffdfbf" | | |||
| #ffdfbf | |||
| brown orange1 | |||
|- | |||
| style="background-color:#590000" | | |||
| #590000 | |||
| red6 | |||
|- | |||
| style="background-color:#8c0000" | | |||
| #8c0000 | |||
| red5 | |||
|- | |||
| style="background-color:#bf0000" | | |||
| #bf0000 | |||
| red4 | |||
|- | |||
| style="background-color:#ff0000" | | |||
| #ff0000 | |||
| red3 | |||
|- | |||
| style="background-color:#ff8080" | | |||
| #ff8080 | |||
| red2 | |||
|- | |||
| style="background-color:#ffbfbf" | | |||
| #ffbfbf | |||
| red1 | |||
|- | |||
| style="background-color:#730055" | | |||
| #730055 | |||
| pink6 | |||
|- | |||
| style="background-color:#a3007b" | | |||
| #a3007b | |||
| pink5 | |||
|- | |||
| style="background-color:#cc009a" | | |||
| #cc009a | |||
| pink4 | |||
|- | |||
| style="background-color:#ff00bf" | | |||
| #ff00bf | |||
| pink3 | |||
|- | |||
| style="background-color:#ff80df" | | |||
| #ff80df | |||
| pink2 | |||
|- | |||
| style="background-color:#ffbff0" | | |||
| #ffbff0 | |||
| pink1 | |||
|- | |||
| style="background-color:#2c0059" | | |||
| #2c0059 | |||
| purple6 | |||
|- | |||
| style="background-color:#400080" | | |||
| #400080 | |||
| purple5 | |||
|- | |||
| style="background-color:#5a00b3" | | |||
| #5a00b3 | |||
| purple4 | |||
|- | |||
| style="background-color:#8000ff" | | |||
| #8000ff | |||
| purple3 | |||
|- | |||
| style="background-color:#c080ff" | | |||
| #c080ff | |||
| purple2 | |||
|- | |||
| style="background-color:#dfbfff" | | |||
| #dfbfff | |||
| purple1 | |||
|- | |||
| style="background-color:#000080" | | |||
| #000080 | |||
| blue6 | |||
|- | |||
| style="background-color:#0000bf" | | |||
| #0000bf | |||
| blue5 | |||
|- | |||
| style="background-color:#0000ff" | | |||
| #0000ff | |||
| blue4 | |||
|- | |||
| style="background-color:#0066ff" | | |||
| #0066ff | |||
| blue3 | |||
|- | |||
| style="background-color:#80b3ff" | | |||
| #80b3ff | |||
| blue2 | |||
|- | |||
| style="background-color:#bfd9ff" | | |||
| #bfd9ff | |||
| blue1 | |||
|- | |||
| style="background-color:#004d00" | | |||
| #004d00 | |||
| green6 | |||
|- | |||
| style="background-color:#008c00" | | |||
| #008c00 | |||
| green5 | |||
|- | |||
| style="background-color:#00bf00" | | |||
| #00bf00 | |||
| green4 | |||
|- | |||
| style="background-color:#00ff00" | | |||
| #00ff00 | |||
| green3 | |||
|- | |||
| style="background-color:#80ff80" | | |||
| #80ff80 | |||
| green2 | |||
|- | |||
| style="background-color:#bfffbf" | | |||
| #bfffbf | |||
| green1 | |||
|- | |||
| style="background-color:#638000" | | |||
| #638000 | |||
| lime6 | |||
|- | |||
| style="background-color:#8bb300" | | |||
| #8bb300 | |||
| lime5 | |||
|- | |||
| style="background-color:#bff500" | | |||
| #bff500 | |||
| lime4 | |||
|- | |||
| style="background-color:#e5ff00" | | |||
| #e5ff00 | |||
| lime3 | |||
|- | |||
| style="background-color:#f0ff80" | | |||
| #f0ff80 | |||
| lime2 | |||
|- | |||
| style="background-color:#f8ffbf" | | |||
| #f8ffbf | |||
| lime1 | |||
|- | |||
| style="background-color:#ffaa00" | | |||
| #ffaa00 | |||
| yellow6 | |||
|- | |||
| style="background-color:#ffbf00" | | |||
| #ffbf00 | |||
| yellow5 | |||
|- | |||
| style="background-color:#ffd500" | | |||
| #ffd500 | |||
| yellow4 | |||
|- | |||
| style="background-color:#ffff00" | | |||
| #ffff00 | |||
| yellow3 | |||
|- | |||
| style="background-color:#ffff99" | | |||
| #ffff99 | |||
| yellow2 | |||
|- | |||
| style="background-color:#ffffbf" | | |||
| #ffffbf | |||
| yellow1 | |||
|- | |||
| style="background-color:#323232" | | |||
| #323232 | |||
| gray6 | |||
|- | |||
| style="background-color:#555555" | | |||
| #555555 | |||
| gray5 | |||
|- | |||
| style="background-color:#888888" | | |||
| #888888 | |||
| gray4 | |||
|- | |||
| style="background-color:#bbbbbb" | | |||
| #bbbbbb | |||
| gray3 | |||
|- | |||
| style="background-color:#dddddd" | | |||
| #dddddd | |||
| gray2 | |||
|- | |||
| style="background-color:#eeeeee" | | |||
| #eeeeee | |||
| gray1 | |||
|} | |||
=== .gpl to MediaWiki Table Script === | |||
<syntaxhighlight lang="python"> | |||
#!/usr/bin/python3 | |||
import sys | |||
def rgbtohex(rgb): | |||
return '#%02x%02x%02x' % rgb | |||
def out_row(colour, name): | |||
rowstr = ( "|-\n" | |||
"| style=\"background-color:{0}\" |\n" | |||
"| {0}\n" | |||
"| {1}\n") | |||
sys.stdout.write(rowstr.format(colour, name)) | |||
def main(): | |||
if len(sys.argv) != 2: | |||
print("Usage: " + sys.argv[0] + " file.gpl", file=sys.stderr) | |||
sys.exit(1) | |||
with open(sys.argv[1], "r") as f: | |||
lines = [ln.rstrip('\n') for ln in f] | |||
if lines[0] != "GIMP Palette": | |||
print("Not a GIMP palette file", file=sys.stderr) | |||
sys.exit(2) | |||
palette_name = lines[1].split()[1] | |||
print("{| class=\"wikitable\"") | |||
print("|+ " + palette_name) | |||
print("! Colour") | |||
print("! Hex") | |||
print("! Name") | |||
for line in lines[3:]: | |||
l = line.split() | |||
name = " ".join(l[3:]) | |||
colour = rgbtohex(tuple([int(x) for x in l[:3]])) | |||
out_row(colour, name) | |||
print("|}") | |||
if __name__ == "__main__": | |||
main() | |||
</syntaxhighlight> |
Latest revision as of 15:26, 24 July 2015
Some text Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Team | Pld | W | D | L | GF | GA | GD | Pts |
---|---|---|---|---|---|---|---|---|
>implying rigged |
More Shit
|
|
One of the problems is that the size of the title bar changes with image size
|
Alternative
|
|
Oxygen Colour Palette
Colour | Hex | Name |
---|---|---|
#382509 | wood brown6 | |
#57401e | wood brown5 | |
#75511a | wood brown4 | |
#8f6b32 | wood brown3 | |
#b3925d | wood brown2 | |
#debc85 | wood brown1 | |
#9c0f0f | brick red6 | |
#bf0303 | brick red5 | |
#e20800 | brick red4 | |
#e85752 | brick red3 | |
#f08682 | brick red2 | |
#f9ccca | brick red1 | |
#9c0f56 | raspberry pink6 | |
#bf0361 | raspberry pink5 | |
#e20071 | raspberry pink4 | |
#e85290 | raspberry pink3 | |
#f082b0 | raspberry pink2 | |
#f9cade | raspberry pink1 | |
#6a0056 | burgundy purple6 | |
#85026c | burgundy purple5 | |
#a02786 | burgundy purple4 | |
#b14f9a | burgundy purple3 | |
#c173b0 | burgundy purple2 | |
#e8b7d7 | burgundy purple1 | |
#1d0a55 | grape violet6 | |
#34176e | grape violet5 | |
#462886 | grape violet4 | |
#644a9b | grape violet3 | |
#8e79a5 | grape violet2 | |
#c3b4da | grape violet1 | |
#00316e | skyblue6 | |
#00438a | skyblue5 | |
#0057ae | skyblue4 | |
#2c72c7 | skyblue3 | |
#6193cf | skyblue2 | |
#a4c0e4 | skyblue1 | |
#00484d | sea blue6 | |
#006066 | sea blue5 | |
#007880 | sea blue4 | |
#00a7b3 | sea blue3 | |
#00c4cc | sea blue2 | |
#a8dde0 | sea blue1 | |
#00583f | emerald green6 | |
#00734d | emerald green5 | |
#009966 | emerald green4 | |
#00b377 | emerald green3 | |
#00cc88 | emerald green2 | |
#99dcc6 | emerald green1 | |
#006e29 | forest green6 | |
#00892c | forest green5 | |
#37a42c | forest green4 | |
#77b753 | forest green3 | |
#b1d28f | forest green2 | |
#d8e8c2 | forest green1 | |
#e3ad00 | sun yellow6 | |
#f3c300 | sun yellow5 | |
#ffdd00 | sun yellow4 | |
#ffeb55 | sun yellow3 | |
#fff299 | sun yellow2 | |
#fff6c8 | sun yellow1 | |
#ac4311 | hot orange6 | |
#cf4913 | hot orange5 | |
#eb7331 | hot orange4 | |
#f29b68 | hot orange3 | |
#f2bb88 | hot orange2 | |
#ffd9b0 | hot orange1 | |
#2e3436 | aluminum gray6 | |
#555753 | aluminum gray5 | |
#888a85 | aluminum gray4 | |
#babdb6 | aluminum gray3 | |
#d3d7cf | aluminum gray2 | |
#eeeeec | aluminum gray1 | |
#4d2600 | brown orange6 | |
#803f00 | brown orange5 | |
#bf5e00 | brown orange4 | |
#ff7e00 | brown orange3 | |
#ffbf80 | brown orange2 | |
#ffdfbf | brown orange1 | |
#590000 | red6 | |
#8c0000 | red5 | |
#bf0000 | red4 | |
#ff0000 | red3 | |
#ff8080 | red2 | |
#ffbfbf | red1 | |
#730055 | pink6 | |
#a3007b | pink5 | |
#cc009a | pink4 | |
#ff00bf | pink3 | |
#ff80df | pink2 | |
#ffbff0 | pink1 | |
#2c0059 | purple6 | |
#400080 | purple5 | |
#5a00b3 | purple4 | |
#8000ff | purple3 | |
#c080ff | purple2 | |
#dfbfff | purple1 | |
#000080 | blue6 | |
#0000bf | blue5 | |
#0000ff | blue4 | |
#0066ff | blue3 | |
#80b3ff | blue2 | |
#bfd9ff | blue1 | |
#004d00 | green6 | |
#008c00 | green5 | |
#00bf00 | green4 | |
#00ff00 | green3 | |
#80ff80 | green2 | |
#bfffbf | green1 | |
#638000 | lime6 | |
#8bb300 | lime5 | |
#bff500 | lime4 | |
#e5ff00 | lime3 | |
#f0ff80 | lime2 | |
#f8ffbf | lime1 | |
#ffaa00 | yellow6 | |
#ffbf00 | yellow5 | |
#ffd500 | yellow4 | |
#ffff00 | yellow3 | |
#ffff99 | yellow2 | |
#ffffbf | yellow1 | |
#323232 | gray6 | |
#555555 | gray5 | |
#888888 | gray4 | |
#bbbbbb | gray3 | |
#dddddd | gray2 | |
#eeeeee | gray1 |
.gpl to MediaWiki Table Script
#!/usr/bin/python3
import sys
def rgbtohex(rgb):
return '#%02x%02x%02x' % rgb
def out_row(colour, name):
rowstr = ( "|-\n"
"| style=\"background-color:{0}\" |\n"
"| {0}\n"
"| {1}\n")
sys.stdout.write(rowstr.format(colour, name))
def main():
if len(sys.argv) != 2:
print("Usage: " + sys.argv[0] + " file.gpl", file=sys.stderr)
sys.exit(1)
with open(sys.argv[1], "r") as f:
lines = [ln.rstrip('\n') for ln in f]
if lines[0] != "GIMP Palette":
print("Not a GIMP palette file", file=sys.stderr)
sys.exit(2)
palette_name = lines[1].split()[1]
print("{| class=\"wikitable\"")
print("|+ " + palette_name)
print("! Colour")
print("! Hex")
print("! Name")
for line in lines[3:]:
l = line.split()
name = " ".join(l[3:])
colour = rgbtohex(tuple([int(x) for x in l[:3]]))
out_row(colour, name)
print("|}")
if __name__ == "__main__":
main()