punks 0.2.2 → 0.3.2

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: 4e699bed9f9f800c1c7dc6cd5fb12b81259de21945a327b54265392b0ab3866a
4
- data.tar.gz: b7978ab9e53e0bcf82ca8725b9e11d12c4f8f4eab66c1c76215cc2e1acd36f78
3
+ metadata.gz: 3d18059850928a3dffb6b5b1ace2cbc9112e67b3b2a9d424d14d7b944e1cf673
4
+ data.tar.gz: 9fee0039136a7c8d782edd80102dc9bb48ec514e4a604c10889de7a77093ab7b
5
5
  SHA512:
6
- metadata.gz: 1f108d7d4be9014f68b4493fb2b763e560c4b3c5b28937087b74d1d6cd827ee301d6a458daf8ab3f3241d64da1a05f04f7dd00c1f1ba5d5644c77308fdb4f021
7
- data.tar.gz: 29dd585a4c1e2fc8b90aa355e0620cf967a586db5d25e828f68c698afccc998f44651c518a80d44a0d1b41ba73a040c3869e103100d0e1f6f094c9d3fc959b7d
6
+ metadata.gz: 6da1fb8523f725ab573731f58d76f29576d6b97d8a614a5f8c272cdf2d79a5c1e8b07dd80415f3d7cbf1e10c034c63df405adc09a9c05bb4d645790f75585a8a
7
+ data.tar.gz: 38740afbd79d253b320fa66aa6103c5ab2f08a8bf089f96838bbbfd53398d759255d45a5edfba40002072da30d1112eb3b695ecd22505ce1784d4831588694ba
data/Manifest.txt CHANGED
@@ -7,6 +7,8 @@ config/punks-24x24.csv
7
7
  config/punks-24x24.png
8
8
  config/punks_xl-32x32.csv
9
9
  config/punks_xl-32x32.png
10
+ config/saudis-24x24.csv
11
+ config/saudis-24x24.png
10
12
  lib/punks.rb
11
13
  lib/punks/generator.rb
12
14
  lib/punks/marilyns.rb
@@ -14,4 +16,5 @@ lib/punks/philips.rb
14
16
  lib/punks/phunks.rb
15
17
  lib/punks/punks.rb
16
18
  lib/punks/punks_xl.rb
19
+ lib/punks/saudis.rb
17
20
  lib/punks/version.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 & More (Pixel Characters / Avatars)
3
+ # Punks, Phunks, Philips, Marilyns, Saudis/Sheiks & More (Pixel Characters / Avatars)
4
4
 
5
- Yes, you can! Generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn & 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, phunk, philip, marilyn, saudi/sheik & 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 '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, phunk, philip, marilyn, saudi/sheik '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' }
@@ -0,0 +1,77 @@
1
+ id, category, name, more_names
2
+ 0, , male 01,
3
+ 1, , male 02,
4
+ 2, , male 03,
5
+ 3, , male 04,
6
+ 4, , male 05,
7
+ 5, , male 06,
8
+ 6, , male 07,
9
+ 7, , male 08,
10
+ 8, , male 09,
11
+ 9, , male 10,
12
+ 10, , light 1,
13
+ 11, , light 2,
14
+ 12, , medium 1,
15
+ 13, , medium 2,
16
+ 14, , dark 1,
17
+ 15, , dark 2,
18
+ 16, , white shemagh,
19
+ 17, , white shemagh agal,
20
+ 18, , white shemagh gold agal,
21
+ 19, , white shemagh stylish gold agal,
22
+ 20, , white shemagh crown,
23
+ 21, , brown shemagh agal,
24
+ 22, , brown shemagh crown,
25
+ 23, , red shemagh,
26
+ 24, , red shemagh agal,
27
+ 25, , red shemagh crown,
28
+ 26, , messy white beard,
29
+ 27, , short white beard,
30
+ 28, , normal white beard,
31
+ 29, , luxurious white beard,
32
+ 30, , short grey beard,
33
+ 31, , messy brown beard,
34
+ 32, , normal brown beard,
35
+ 33, , luxurious brown beard,
36
+ 34, , shadow beard,
37
+ 35, , shadow beard mustache,
38
+ 36, , light beard,
39
+ 37, , mustache,
40
+ 38, , stylish mustache,
41
+ 39, , sideburns,
42
+ 40, , sideburns mustache,
43
+ 41, , normal beard,
44
+ 42, , normal brown beard mustache,
45
+ 43, , luxurious beard,
46
+ 44, , horn rimmed glasses,
47
+ 45, , rimless glasses,
48
+ 46, , nerd glasses,
49
+ 47, , stylish nerd glasses,
50
+ 48, , classic shades,
51
+ 49, , classic green shades,
52
+ 50, , classic gold shades,
53
+ 51, , regular pixel shades,
54
+ 52, , regular reflective shades,
55
+ 53, , big green shades,
56
+ 54, , big pixel shades,
57
+ 55, , big purple shades,
58
+ 56, , big shades,
59
+ 57, , small shades,
60
+ 58, , regular shades,
61
+ 59, , round shades,
62
+ 60, , big round shades,
63
+ 61, , square reflective shades,
64
+ 62, , square shades,
65
+ 63, , 3d glasses,
66
+ 64, , vr,
67
+ 65, , laser eyes,
68
+ 66, , max bidding,
69
+ 67, , cigarette,
70
+ 68, , shadowless cigarette,
71
+ 69, , miswak,
72
+ 70, , vape,
73
+ 71, , shadowless vape,
74
+ 72, , cigar,
75
+ 73, , pearwood pipe,
76
+ 74, , rosewood pipe,
77
+ 75, , bubble gum,
Binary file
@@ -266,11 +266,18 @@ module Punk
266
266
 
267
267
  ## note: attribute lookup requires gender from archetype!!!!
268
268
  if archetype.is_a?( Pixelart::Image )
269
- ### for now assume (support only)
270
- ## large & male (l/m) for "inline/patch" archetypes - why? why not?
271
- ## change male to unisex - why? why not? (note: for now unisex is not doing a backup lookup using male/female)
272
- attribute_gender = 'm'
273
- attribute_size = 'l'
269
+ if archetype_name.is_a?( String ) && archetype_name.downcase.index( 'female' )
270
+ ## quick & dirty hack for now
271
+ ## if name incl. female (automagically) switch to f(emale)/s(mall)
272
+ attribute_gender = 'f'
273
+ attribute_size = 's'
274
+ else
275
+ ### for now assume (support only)
276
+ ## large & male (l/m) for "inline/patch" archetypes - why? why not?
277
+ ## change male to unisex - why? why not? (note: for now unisex is not doing a backup lookup using male/female)
278
+ attribute_gender = 'm'
279
+ attribute_size = 'l'
280
+ end
274
281
  else
275
282
  attribute_gender = archetype.gender
276
283
  attribute_size = archetype.size
@@ -0,0 +1,48 @@
1
+ module Saudi
2
+
3
+ class Spritesheet
4
+ def self.builtin
5
+ @builtin ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Punks.root}/config/saudis-24x24.png",
6
+ "#{Pixelart::Module::Punks.root}/config/saudis-24x24.csv",
7
+ width: 24,
8
+ height: 24 )
9
+ end
10
+
11
+ ## note: for now class used for "namespace" only
12
+ def self.find_by( name: ) ## return archetype/attribute image by name
13
+ builtin.find_by( name: name )
14
+ end
15
+ end # class Spritesheet
16
+ ## add convenience (alternate spelling) alias - why? why not?
17
+ SpriteSheet = Spritesheet
18
+ Sheet = Spritesheet
19
+ Sprite = Spritesheet
20
+
21
+
22
+ class Image < Pixelart::Image
23
+ def self.generator
24
+ @generator ||= Artfactory.use( Saudi::Sheet.builtin,
25
+ image_class: Image )
26
+ end
27
+
28
+
29
+ # note: remove/delete empyty attributes (n/a - not applicables)
30
+ ## (e.g. "None" in Eyewear/Mouse Prop and
31
+ ## "Clean Shaven" in Beard )
32
+ ## future: make n/a values configurable that you can pass in
33
+ ## e.g. nas: [] or such - why? why not?
34
+ NA = [
35
+ 'cleanshaven',
36
+ 'none'
37
+ ]
38
+
39
+ def self.generate( *names )
40
+ names = names.filter { |name| !NA.include?( Pixelart::Spritesheet.normalize_key( name )) }
41
+
42
+ generator.generate( *names )
43
+ end
44
+ end # class Image
45
+
46
+
47
+ end # module Saudi
48
+
data/lib/punks/version.rb CHANGED
@@ -4,7 +4,7 @@ module Module
4
4
  module Punks
5
5
 
6
6
  MAJOR = 0
7
- MINOR = 2
7
+ MINOR = 3
8
8
  PATCH = 2
9
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
10
 
data/lib/punks.rb CHANGED
@@ -15,6 +15,7 @@ require 'punks/punks'
15
15
  require 'punks/phunks'
16
16
  require 'punks/marilyns'
17
17
  require 'punks/philips'
18
+ require 'punks/saudis'
18
19
  ## --- 32x32 series
19
20
  require 'punks/punks_xl'
20
21
 
@@ -44,6 +45,10 @@ Philips = Philip
44
45
  ### add some convenience shortcuts / alternate spelling variants
45
46
  Marilyns = Marilyn
46
47
 
48
+ ### add some convenience shortcuts / alternate spelling variants
49
+ Saudis = Saudi
50
+ Sheiks = Saudi
51
+ Sheik = Saudi
47
52
 
48
53
 
49
54
  ###
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.2.2
4
+ version: 0.3.2
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-05 00:00:00.000000000 Z
11
+ date: 2022-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pixelart
@@ -86,9 +86,9 @@ 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
- 'n' more (pixel) avatar / character images (off chain) from text attributes (via
91
- built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
89
+ description: punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn,
90
+ saudi/sheik 'n' more (pixel) avatar / character images (off chain) from text attributes
91
+ (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
92
92
  email: wwwmake@googlegroups.com
93
93
  executables: []
94
94
  extensions: []
@@ -106,6 +106,8 @@ files:
106
106
  - config/punks-24x24.png
107
107
  - config/punks_xl-32x32.csv
108
108
  - config/punks_xl-32x32.png
109
+ - config/saudis-24x24.csv
110
+ - config/saudis-24x24.png
109
111
  - lib/punks.rb
110
112
  - lib/punks/generator.rb
111
113
  - lib/punks/marilyns.rb
@@ -113,6 +115,7 @@ files:
113
115
  - lib/punks/phunks.rb
114
116
  - lib/punks/punks.rb
115
117
  - lib/punks/punks_xl.rb
118
+ - lib/punks/saudis.rb
116
119
  - lib/punks/version.rb
117
120
  homepage: https://github.com/cryptopunksnotdead/cryptopunks
118
121
  licenses:
@@ -138,7 +141,7 @@ requirements: []
138
141
  rubygems_version: 3.3.7
139
142
  signing_key:
140
143
  specification_version: 4
141
- summary: punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn 'n'
142
- more (pixel) avatar / character images (off chain) from text attributes (via built-in
143
- spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
144
+ summary: punks - generate your own 24×24 (or 32×32) punk, phunk, philip, marilyn,
145
+ saudi/sheik 'n' more (pixel) avatar / character images (off chain) from text attributes
146
+ (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
144
147
  test_files: []