punks 0.3.4 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0acedecd2017d2d23772aa011f67d36b96678c676ed1610f2b6ea797a06b78c4
4
- data.tar.gz: 037afcdbc43730fe6ef8f1246b721bc5630a88e5850ea014cb1f26489d74557f
3
+ metadata.gz: 6a4f21b1aeca45079b5c6772a2a121c3ef971607ce52ac3b6a1efb9ccd45e2ec
4
+ data.tar.gz: d1efc6ca880ed68d1b326a9a39a9981b322abcde92582ad9e1ce6a1d054eff93
5
5
  SHA512:
6
- metadata.gz: a343d4a460ae5f68e44735803b408015c6901def2690df5bbbf3b96d695a7747d8f2918e4467147a68ccf27a0864c713855c1bac316d41dfd5a552c633854ff0
7
- data.tar.gz: 6bde9d681ad8ccf0cd93ba12584782219f8ef0dac4581075b78caefc0466f5f04813b2f5ffb5d08fae9a828bbaa87c4a0e40a9450f511fc543b45055dbe9d99d
6
+ metadata.gz: 925682a58d35c0f2efcf3903025e99d99e885b9e2b8d1ee44c05a1460ce9c68a20e46e09468adcd2c46c596a926e1dd5910b53580cc856056973d54efae16183
7
+ data.tar.gz: b4c6d9db58534d8f9b10f2b23580e6d0d93a7ecdc914dea18d692f7e1d26800838a330522eda73864b92b2895c75a650842952dac40c347ac9aa0ac3d85c3148
data/Manifest.txt CHANGED
@@ -7,6 +7,8 @@ config/punks-24x24.csv
7
7
  config/punks-24x24.png
8
8
  config/punks-32x32.csv
9
9
  config/punks-32x32.png
10
+ config/punks_2017-24x24.csv
11
+ config/punks_2017-24x24.png
10
12
  config/punks_xl-32x32.csv
11
13
  config/punks_xl-32x32.png
12
14
  config/saudis-24x24.csv
@@ -23,3 +25,4 @@ lib/punks/punks.rb
23
25
  lib/punks/punks_xl.rb
24
26
  lib/punks/saudis.rb
25
27
  lib/punks/version.rb
28
+ lib/punks/ye_olde_punks_2017.rb
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/pixelartexchange/originals) Presents
2
2
 
3
- # Punks, Phunks, Philips, Marilyns, Saudis/Sheiks, Men In Black, Hotties & More (Pixel Characters / Avatars)
3
+ # Punks (Incl. Ye Olde Punks V1/V2 Anno 2017), Phunks, Philips, Marilyns, Saudis/Sheiks, Men In Black, Hotties & More (Pixel Characters / Avatars)
4
4
 
5
- Yes, you can! Generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn, saudi/sheik, man in black, hottie & more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
5
+ Yes, you can! Generate your own 24×24 (or 32×32) punk (incl. Matt & John's® ye olde punks v1/v2 anno 2017 style), phunk, philip, marilyn, saudi/sheik, man in black, hottie & more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
6
6
 
7
7
 
8
8
 
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ Hoe.spec 'punks' do
13
13
 
14
14
  self.version = Pixelart::Module::Punks::VERSION
15
15
 
16
- self.summary = "punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn, saudi/sheik, man in black, hottie 'n' more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more"
16
+ self.summary = "punks - generate your own 24×24 (or 32×32) punk (incl. Matt & John's® ye olde punk v1/v2 anno 2017 style), phunk, philip, marilyn, saudi/sheik, man in black, hottie 'n' more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more"
17
17
  self.description = summary
18
18
 
19
19
  self.urls = { home: 'https://github.com/cryptopunksnotdead/cryptopunks' }
Binary file
@@ -0,0 +1,134 @@
1
+ id, name, gender, size, type, more_names
2
+ 0, Male 1, m, l, Archetype,
3
+ 1, Male 2, m, l, Archetype,
4
+ 2, Male 3, m, l, Archetype,
5
+ 3, Male 4, m, l, Archetype,
6
+ 4, Female 1, f, s, Archetype,
7
+ 5, Female 2, f, s, Archetype,
8
+ 6, Female 3, f, s, Archetype,
9
+ 7, Female 4, f, s, Archetype,
10
+ 8, Zombie, m, l, Archetype,
11
+ 9, Ape, m, l, Archetype,
12
+ 10, Alien, m, l, Archetype,
13
+ 11, Rosy Cheeks, m, l, ?,
14
+ 12, Luxurious Beard, m, l, ?,
15
+ 13, Clown Hair Green, m, l, ?,
16
+ 14, Mohawk Dark, m, l, ?,
17
+ 15, Cowboy Hat, m, l, ?,
18
+ 16, Mustache, m, l, ?,
19
+ 17, Clown Nose, m, l, ?,
20
+ 18, Cigarette, m, l, ?,
21
+ 19, Nerd Glasses, m, l, ?,
22
+ 20, Regular Shades, m, l, ?,
23
+ 21, Knitted Cap, m, l, ?,
24
+ 22, Shadow Beard, m, l, ?,
25
+ 23, Frown, m, l, ?,
26
+ 24, Cap Forward, m, l, ?,
27
+ 25, Goat, m, l, ?,
28
+ 26, Mole, m, l, ?,
29
+ 27, Purple Hair, m, l, ?,
30
+ 28, Small Shades, m, l, ?,
31
+ 29, Shaved Head, m, l, ?,
32
+ 30, Classic Shades, m, l, ?,
33
+ 31, Vape, m, l, ?,
34
+ 32, Silver Chain, m, l, ?,
35
+ 33, Smile, m, l, ?,
36
+ 34, Big Shades, m, l, ?,
37
+ 35, Mohawk Thin, m, l, ?,
38
+ 36, Beanie, m, l, ?,
39
+ 37, Cap, m, l, ?,
40
+ 38, Clown Eyes Green, m, l, ?,
41
+ 39, Normal Beard Black, m, l, ?,
42
+ 40, Medical Mask, m, l, ?,
43
+ 41, Normal Beard, m, l, ?,
44
+ 42, VR, m, l, ?,
45
+ 43, Eye Patch, m, l, ?,
46
+ 44, Wild Hair, m, l, ?,
47
+ 45, Top Hat, m, l, ?,
48
+ 46, Bandana, m, l, ?,
49
+ 47, Handlebars, m, l, ?,
50
+ 48, Frumpy Hair, m, l, ?,
51
+ 49, Crazy Hair, m, l, ?,
52
+ 50, Police Cap, m, l, ?,
53
+ 51, Buck Teeth, m, l, ?,
54
+ 52, Do-rag, m, l, ?,
55
+ 53, Front Beard, m, l, ?,
56
+ 54, Spots, m, l, ?,
57
+ 55, Big Beard, m, l, ?,
58
+ 56, Vampire Hair, m, l, ?,
59
+ 57, Peak Spike, m, l, ?,
60
+ 58, Chinstrap, m, l, ?,
61
+ 59, Fedora, m, l, ?,
62
+ 60, Earring, m, l, ?,
63
+ 61, Horned Rim Glasses, m, l, ?,
64
+ 62, Headband, m, l, ?,
65
+ 63, Pipe, m, l, ?,
66
+ 64, Messy Hair, m, l, ?,
67
+ 65, Front Beard Dark, m, l, ?,
68
+ 66, Hoodie, m, l, ?,
69
+ 67, Gold Chain, m, l, ?,
70
+ 68, Muttonchops, m, l, ?,
71
+ 69, Stringy Hair, m, l, ?,
72
+ 70, Eye Mask, m, l, ?,
73
+ 71, 3D Glasses, m, l, ?,
74
+ 72, Clown Eyes Blue, m, l, ?,
75
+ 73, Mohawk, m, l, ?,
76
+ 74, Pilot Helmet, f, s, ?,
77
+ 75, Tassle Hat, f, s, ?,
78
+ 76, Hot Lipstick, f, s, ?,
79
+ 77, Blue Eye Shadow, f, s, ?,
80
+ 78, Straight Hair Dark, f, s, ?,
81
+ 79, Choker, f, s, ?,
82
+ 80, Crazy Hair, f, s, ?,
83
+ 81, Regular Shades, f, s, ?,
84
+ 82, Wild Blonde, f, s, ?,
85
+ 83, 3D Glasses, f, s, ?,
86
+ 84, Mole, f, s, ?,
87
+ 85, Wild White Hair, f, s, ?,
88
+ 86, Spots, f, s, ?,
89
+ 87, Frumpy Hair, f, s, ?,
90
+ 88, Nerd Glasses, f, s, ?,
91
+ 89, Tiara, f, s, ?,
92
+ 90, Orange Side, f, s, ?,
93
+ 91, Red Mohawk, f, s, ?,
94
+ 92, Messy Hair, f, s, ?,
95
+ 93, Clown Eyes Blue, f, s, ?,
96
+ 94, Pipe, f, s, ?,
97
+ 95, Wild Hair, f, s, ?,
98
+ 96, Purple Eye Shadow, f, s, ?,
99
+ 97, Stringy Hair, f, s, ?,
100
+ 98, Dark Hair, f, s, ?,
101
+ 99, Eye Patch, f, s, ?,
102
+ 100, Blonde Short, f, s, ?,
103
+ 101, Classic Shades, f, s, ?,
104
+ 102, Eye Mask, f, s, ?,
105
+ 103, Clown Hair Green, f, s, ?,
106
+ 104, Cap, f, s, ?,
107
+ 105, Medical Mask, f, s, ?,
108
+ 106, Bandana, f, s, ?,
109
+ 107, Purple Lipstick, f, s, ?,
110
+ 108, Clown Nose, f, s, ?,
111
+ 109, Headband, f, s, ?,
112
+ 110, Pigtails, f, s, ?,
113
+ 111, Straight Hair Blonde, f, s, ?,
114
+ 112, Knitted Cap, f, s, ?,
115
+ 113, Clown Eyes Green, f, s, ?,
116
+ 114, Cigarette, f, s, ?,
117
+ 115, Welding Goggles, f, s, ?,
118
+ 116, Mohawk Thin, f, s, ?,
119
+ 117, Gold Chain, f, s, ?,
120
+ 118, VR, f, s, ?,
121
+ 119, Vape, f, s, ?,
122
+ 120, Pink With Hat, f, s, ?,
123
+ 121, Blonde Bob, f, s, ?,
124
+ 122, Mohawk, f, s, ?,
125
+ 123, Big Shades, f, s, ?,
126
+ 124, Earring, f, s, ?,
127
+ 125, Green Eye Shadow, f, s, ?,
128
+ 126, Straight Hair, f, s, ?,
129
+ 127, Rosy Cheeks, f, s, ?,
130
+ 128, Half Shaved, f, s, ?,
131
+ 129, Mohawk Dark, f, s, ?,
132
+ 130, Black Lipstick, f, s, ?,
133
+ 131, Horned Rim Glasses, f, s, ?,
134
+ 132, Silver Chain, f, s, ?,
Binary file
@@ -38,8 +38,8 @@ module Pixelart
38
38
 
39
39
  ## todo/check - find better names for type attribute/archetypes?
40
40
  ## use (alternate name/alias) base or face for archetypes? any others?
41
- def attribute?() @type.downcase.start_with?( 'attribute' ); end
42
- def archetype?() @type.downcase.start_with?( 'archetype' ); end
41
+ def archetype?() @type.downcase.index( 'archetype' ); end
42
+ def attribute?() !archetype?; end
43
43
 
44
44
  def small?() @size == 's'; end
45
45
  def large?() @size == 'l'; end
@@ -263,7 +263,7 @@ def _build_attributes_by_name( recs )
263
263
  key << "_(#{rec.gender}+#{rec.size})" if rec.attribute?
264
264
 
265
265
  if h[ key ]
266
- puts "!!! ERROR - attribute name is not unique:"
266
+ puts "!!! ERROR - attribute with key >#{key}< is not unique:"
267
267
  pp rec
268
268
  puts "duplicate:"
269
269
  pp h[key]
data/lib/punks/version.rb CHANGED
@@ -4,8 +4,8 @@ module Module
4
4
  module Punks
5
5
 
6
6
  MAJOR = 0
7
- MINOR = 3
8
- PATCH = 4
7
+ MINOR = 4
8
+ PATCH = 0
9
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
10
 
11
11
  def self.version
@@ -0,0 +1,41 @@
1
+
2
+ module YeOldePunkAnno2017
3
+
4
+ class Spritesheet
5
+ def self.builtin
6
+ @builtin ||= Pixelart::SpritesheetEx.read( "#{Pixelart::Module::Punks.root}/config/punks_2017-24x24.png",
7
+ "#{Pixelart::Module::Punks.root}/config/punks_2017-24x24.csv",
8
+ width: 24,
9
+ height: 24 )
10
+ end
11
+
12
+ ## note: for now class used for "namespace" only
13
+ def self.find_by( name:, gender: nil, size: nil, warn: true ) ## return archetype/attribute image by name
14
+ # note: pass along name as q (query string)
15
+ builtin.find_by( name: name,
16
+ gender: gender,
17
+ size: size,
18
+ warn: warn )
19
+ end
20
+ end # class Spritesheet
21
+
22
+
23
+ ## add convenience (alternate spelling) alias - why? why not?
24
+ SpriteSheet = Spritesheet
25
+ Sheet = Spritesheet
26
+ Sprite = Spritesheet
27
+
28
+
29
+
30
+ class Image < Pixelart::Image
31
+
32
+ def self.generator
33
+ @generator ||= GeneratorEx.use( Sheet.builtin, image_class: Image )
34
+ end
35
+
36
+ def self.generate( *values )
37
+ generator.generate( *values )
38
+ end # method Image.generate
39
+ end # class Image
40
+ end # module YeOldePunkAnno2017
41
+
data/lib/punks.rb CHANGED
@@ -18,6 +18,7 @@ require 'punks/phunks'
18
18
  require 'punks/marilyns'
19
19
  require 'punks/philips'
20
20
  require 'punks/saudis'
21
+ require 'punks/ye_olde_punks_2017'
21
22
  ## --- 32x32 series
22
23
  require 'punks/punks_xl'
23
24
  require 'punks/bodies_32'
@@ -55,6 +56,18 @@ Sheiks = Saudi
55
56
  Sheik = Saudi
56
57
 
57
58
 
59
+ ## add some convience shortcuts / alternate spelling variants
60
+ YeOldePunk2017 = YeOldePunkAnno2017
61
+ Yeoldepunk2017 = YeOldePunkAnno2017
62
+ YeOldePunk = YeOldePunkAnno2017
63
+ Yeoldepunk = YeOldePunkAnno2017
64
+ Punk2017 = YeOldePunkAnno2017
65
+ PunkV1 = YeOldePunkAnno2017
66
+ Punkv1 = YeOldePunkAnno2017
67
+ PunkV2 = YeOldePunkAnno2017
68
+ Punkv2 = YeOldePunkAnno2017
69
+
70
+
58
71
  ###
59
72
  # note: for convenience auto include Pixelart namespace!!! - why? why not?
60
73
  include Pixelart
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: punks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-25 00:00:00.000000000 Z
11
+ date: 2022-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pixelart
@@ -86,10 +86,10 @@ dependencies:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: '3.23'
89
- description: punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn,
90
- saudi/sheik, man in black, hottie 'n' more (pixel) avatar / character images (off
91
- chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for
92
- bigger sizes and more
89
+ description: punks - generate your own 24×24 (or 32×32) punk (incl. Matt & John's®
90
+ ye olde punk v1/v2 anno 2017 style), phunk, philip, marilyn, saudi/sheik, man in
91
+ black, hottie 'n' more (pixel) avatar / character images (off chain) from text attributes
92
+ (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
93
93
  email: wwwmake@googlegroups.com
94
94
  executables: []
95
95
  extensions: []
@@ -107,6 +107,8 @@ files:
107
107
  - config/punks-24x24.png
108
108
  - config/punks-32x32.csv
109
109
  - config/punks-32x32.png
110
+ - config/punks_2017-24x24.csv
111
+ - config/punks_2017-24x24.png
110
112
  - config/punks_xl-32x32.csv
111
113
  - config/punks_xl-32x32.png
112
114
  - config/saudis-24x24.csv
@@ -123,6 +125,7 @@ files:
123
125
  - lib/punks/punks_xl.rb
124
126
  - lib/punks/saudis.rb
125
127
  - lib/punks/version.rb
128
+ - lib/punks/ye_olde_punks_2017.rb
126
129
  homepage: https://github.com/cryptopunksnotdead/cryptopunks
127
130
  licenses:
128
131
  - Public Domain
@@ -147,8 +150,8 @@ requirements: []
147
150
  rubygems_version: 3.3.7
148
151
  signing_key:
149
152
  specification_version: 4
150
- summary: punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn,
151
- saudi/sheik, man in black, hottie 'n' more (pixel) avatar / character images (off
152
- chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for
153
- bigger sizes and more
153
+ summary: punks - generate your own 24×24 (or 32×32) punk (incl. Matt & John's® ye
154
+ olde punk v1/v2 anno 2017 style), phunk, philip, marilyn, saudi/sheik, man in black,
155
+ hottie 'n' more (pixel) avatar / character images (off chain) from text attributes
156
+ (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
154
157
  test_files: []