punks 0.5.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a3b1c10824dd601011e31038a3de76d83d9c1ba5f09ce10d64f2ab4a7a4ab05
4
- data.tar.gz: e3e16d6581f3ca3166112a71af773420c7add912d92ee4bc3eda3b14841abd72
3
+ metadata.gz: e50bed462f0188ba1a5b5694babe2673e9f075c2c2f2c2abe8079c41452c67bc
4
+ data.tar.gz: f9628fe82e78d6e98817785f1eebaa90e831ecfd26a841a3a9c6508eac0616f2
5
5
  SHA512:
6
- metadata.gz: 29775c905590f221f771431642b072221a384621a3eb51e205696e1b6996c97dde23e786b16fab903fa5939bda68bfa15819d21640508256cfc469dc713f2b66
7
- data.tar.gz: 566dc2b951342e064c1b674846192717c2a73bb42c55cf438971e8d7ae59af31f82aa13b3f2450b49f052e369785b1648e356f5fb92c31382c6779f670812c4c
6
+ metadata.gz: 162fe59eae44dabda6dddf2d6c3c0828a41558964db79b9c51122d1d7e6c877e286a1eba7d9b36278a99facda10f80b36c29d5f45a8cfd07486f7c91756a23dd
7
+ data.tar.gz: 8f6f1cd4805f24543dde2d53bce1cbdd1c5d30b43af8149c5a890fc1fdaf1fb7fad645d4c76e6ab3f15dbfb5115ed4029d294217da35ac63581a72b6b62bf521
data/CHANGELOG.md CHANGED
@@ -1,3 +1,4 @@
1
+ ### 1.0.0
1
2
  ### 0.0.1 / 2022-06-10
2
3
 
3
4
  * Everything is new. First release
data/Manifest.txt CHANGED
@@ -5,6 +5,8 @@ Rakefile
5
5
  config/marcs-24x24.csv
6
6
  config/marcs-24x24.png
7
7
  config/philip-24x24.png
8
+ config/punks-12x12.csv
9
+ config/punks-12x12.png
8
10
  config/punks-24x24.csv
9
11
  config/punks-24x24.png
10
12
  config/punks-32x32.csv
@@ -25,6 +27,7 @@ lib/punks/phunks.rb
25
27
  lib/punks/pixelart/generator.rb
26
28
  lib/punks/pixelart/spritesheet.rb
27
29
  lib/punks/punks.rb
30
+ lib/punks/punks_12.rb
28
31
  lib/punks/punks_xl.rb
29
32
  lib/punks/saudis.rb
30
33
  lib/punks/version.rb
data/README.md CHANGED
@@ -2,7 +2,7 @@ The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com
2
2
 
3
3
  # Punks (Incl. Ye Olde Punks V1/V2 Anno 2017), Phunks, Philips, Marilyns, Marcs, 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 (incl. Matt & John's® ye olde punks v1/v2 anno 2017 style), phunk, philip, marilyn, marc, saudi/sheik, man in black, hottie & more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and more
5
+ Yes, you can! Generate your own 24×24 (or 32×32 or 12×12) punk (incl. Matt & John's® ye olde punks v1/v2 anno 2017 style), phunk, philip, marilyn, marc, saudi/sheik, man in black, hottie & more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and more
6
6
 
7
7
 
8
8
 
data/Rakefile CHANGED
@@ -13,22 +13,22 @@ 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 (incl. Matt & John's® ye olde punk v1/v2 anno 2017 style), phunk, philip, marilyn, marc, saudi/sheik, man in black, hottie 'n' more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and more"
16
+ self.summary = "punks - generate your own 24×24 (or 32×32 or 12×12) punk (incl. Matt & John's® ye olde punk v1/v2 anno 2017 style), phunk, philip, marilyn, marc, saudi/sheik, man in black, hottie 'n' more (pixel) avatar / character images (off chain) from text attributes (via built-in spritesheets); 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' }
20
20
 
21
21
  self.author = 'Gerald Bauer'
22
- self.email = 'wwwmake@googlegroups.com'
22
+ self.email = 'gerald.bauer@gmail.com'
23
23
 
24
24
  # switch extension to .markdown for gihub formatting
25
25
  self.readme_file = 'README.md'
26
26
  self.history_file = 'CHANGELOG.md'
27
27
 
28
28
  self.extra_deps = [
29
- ['pixelart', '>= 1.3.2'],
30
- ['backgrounds', '>= 0.2.0'],
31
- ['artfactory', '>= 0.2.0'],
29
+ ['pixelart', '>= 1.4.0'],
30
+ ['backgrounds', '>= 0.2.1'],
31
+ ['artfactory', '>= 1.0.0'],
32
32
  ]
33
33
 
34
34
  self.licenses = ['Public Domain']
@@ -0,0 +1,135 @@
1
+ id, category, name, more_names
2
+ 0, base, male1,
3
+ 1, base, male2,
4
+ 2, base, male3,
5
+ 3, base, male4,
6
+ 4, base, female1,
7
+ 5, base, female2,
8
+ 6, base, female3,
9
+ 7, base, female4,
10
+ 8, base, zombie,
11
+ 9, base, ape,
12
+ 10, base, alien,
13
+ 11, base, alien green,
14
+ 12, base, alien gold,
15
+ 13, base, alien purple female,
16
+ 14, base, orc,
17
+ 15, base, orc female,
18
+ 16, base, demon,
19
+ 17, base, bot,
20
+ 18, base, skeleton,
21
+ 19, base, skeleton female,
22
+ 20, base, pink female,
23
+ 21, base, pepe,
24
+ 22, base, gold,
25
+ 23, base, orange,
26
+ 24, base, blue,
27
+ 25, base, blue female,
28
+ 26, base, green,
29
+ 27, base, green female,
30
+ 28, base, red,
31
+ 29, base, red female,
32
+ 30, base, purple,
33
+ 31, base, purple female,
34
+ 32, base, aqua,
35
+ 33, hair, blonde bob,
36
+ 34, hair, crazy hair (f),
37
+ 35, hair, crazy hair (m),
38
+ 36, hair, mohawk dark,
39
+ 37, hair, peak spike,
40
+ 38, hair, purple hair,
41
+ 39, hair, straight hair blonde,
42
+ 40, hair, wild blonde,
43
+ 41, hair, wild hair (m),
44
+ 42, hair, wild hair (f),
45
+ 43, hair, wild white hair,
46
+ 44, hair, half shaved,
47
+ 45, hair, half shaved blonde,
48
+ 46, hair, half shaved purple,
49
+ 47, hair, mohawk thin,
50
+ 48, hair, mohawk,
51
+ 49, hair, red mohawk,
52
+ 50, hair, messy hair (m),
53
+ 51, hair, messy hair (f),
54
+ 52, hair, messy hair green (f),
55
+ 53, hair, messy hair blonde (f),
56
+ 54, hair, dark hair,
57
+ 55, hair, straight hair,
58
+ 56, hair, straight hair dark,
59
+ 57, hair, shaved head,
60
+ 58, hair, blonde short,
61
+ 59, hair, pink short,
62
+ 60, hair, stringy hair,
63
+ 61, hair, frumpy hair (f),
64
+ 62, hair, frumpy hair (m),
65
+ 63, hair, orange side,
66
+ 64, hair, blonde side,
67
+ 65, hair, white side,
68
+ 66, hair, pink with hat,
69
+ 67, hair, clown hair green (f),
70
+ 68, hair, clown hair green (m),
71
+ 69, hair, clown hair blue (m),
72
+ 70, hair, vampire hair,
73
+ 71, hair, pigtails,
74
+ 72, hair, pigtails red,
75
+ 73, hair, pigtails blonde,
76
+ 74, head, bandana,
77
+ 75, head, cap,
78
+ 76, head, cap forward,
79
+ 77, head, cowboy hat,
80
+ 78, head, headband,
81
+ 79, head, knitted cap,
82
+ 80, head, top hat,
83
+ 81, head, beanie,
84
+ 82, head, do-rag,
85
+ 83, head, police cap,
86
+ 84, head, pilot helmet,
87
+ 85, head, tassle hat,
88
+ 86, head, fedora,
89
+ 87, head, tiara,
90
+ 88, eyes, 3d glasses,
91
+ 89, eyes, big shades,
92
+ 90, eyes, classic shades,
93
+ 91, eyes, clown eyes green,
94
+ 92, eyes, clown eyes blue,
95
+ 93, eyes, nerd glasses,
96
+ 94, eyes, regular shades,
97
+ 95, eyes, vr,
98
+ 96, eyes, small shades,
99
+ 97, eyes, laser eyes,
100
+ 98, eyes, laser eyes gold,
101
+ 99, eyes, eye mask,
102
+ 100, eyes, horned rim glasses,
103
+ 101, eyes, eye patch,
104
+ 102, eyes, green eye shadow,
105
+ 103, eyes, purple eye shadow,
106
+ 104, eyes, blue eye shadow,
107
+ 105, beard, chinstrap,
108
+ 106, beard, big beard,
109
+ 107, beard, luxurious beard,
110
+ 108, beard, goat,
111
+ 109, beard, front beard dark,
112
+ 110, beard, front beard,
113
+ 111, beard, normal beard,
114
+ 112, beard, normal beard black,
115
+ 113, beard, muttonchops,
116
+ 114, beard, handlebars,
117
+ 115, beard, shadow beard,
118
+ 116, beard, mustache,
119
+ 117, more, clown nose,
120
+ 118, more, earring,
121
+ 119, more, hoodie,
122
+ 120, more, choker,
123
+ 121, more, pipe,
124
+ 122, more, cigarette,
125
+ 123, more, vape,
126
+ 124, more, gold chain,
127
+ 125, more, silver chain,
128
+ 126, more, spots,
129
+ 127, more, mole,
130
+ 128, more, rosy cheeks,
131
+ 129, more, black lipstick,
132
+ 130, more, purple lipstick,
133
+ 131, more, hot lipstick,
134
+ 132, more, medical mask,
135
+ 133, more, buck teeth,
Binary file
@@ -0,0 +1,52 @@
1
+
2
+
3
+ module Punk12
4
+
5
+ class Spritesheet
6
+ def self.builtin
7
+ @builtin ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Punks.root}/config/punks-12x12.png",
8
+ "#{Pixelart::Module::Punks.root}/config/punks-12x12.csv",
9
+ width: 12,
10
+ height: 12 )
11
+ end
12
+
13
+ ## note: for now class used for "namespace" only
14
+ def self.find_by( name: ) ## return archetype/attribute image by name
15
+ builtin.find_by( name: name )
16
+ end
17
+ end # class Spritesheet
18
+ ## add convenience (alternate spelling) alias - why? why not?
19
+ SpriteSheet = Spritesheet
20
+ Sheet = Spritesheet
21
+ Sprite = Spritesheet
22
+
23
+
24
+
25
+ class Image < Pixelart::Image
26
+
27
+ NAMES = ['punk12', 'punks12',
28
+ 'punkmini', 'punksmini',
29
+ 'punkxs', 'punksxs']
30
+ DEFAULT_ATTRIBUTES = ['Pink Female']
31
+
32
+ def self.generate( *names )
33
+ base = Image.new( 12,12 )
34
+
35
+ ## check for male/female gender
36
+ gender = names[0].downcase.index( 'female' ) ? 'f' : 'm'
37
+
38
+ names.each_with_index do |name,i|
39
+ img = nil
40
+ img = Sheet.find_by( name: "#{name} (#{gender})" ) if i > 0 ## try gender-specific first for accessores (not base e.g. i==0)
41
+ img = Sheet.find_by( name: name ) unless img
42
+ if img.nil?
43
+ puts "!! attribute with key #{key} not found; sorry"
44
+ exit 1
45
+ end
46
+ base.compose!( img )
47
+ end
48
+ base
49
+ end
50
+ end # class Image
51
+ end # module Punk12
52
+
data/lib/punks/version.rb CHANGED
@@ -3,9 +3,9 @@ module Pixelart
3
3
  module Module
4
4
  module Punks
5
5
 
6
- MAJOR = 0
7
- MINOR = 5
8
- PATCH = 3
6
+ MAJOR = 1
7
+ MINOR = 0
8
+ PATCH = 0
9
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
10
 
11
11
  def self.version
data/lib/punks.rb CHANGED
@@ -5,27 +5,28 @@ require 'artfactory/base'
5
5
 
6
6
 
7
7
  ## our own code
8
- require 'punks/version' # note: let version always go first
8
+ require_relative 'punks/version' # note: let version always go first
9
9
 
10
10
 
11
- require 'punks/pixelart/spritesheet'
12
- require 'punks/pixelart/generator'
11
+ require_relative 'punks/pixelart/spritesheet'
12
+ require_relative 'punks/pixelart/generator'
13
13
 
14
14
 
15
15
  ## --- 24x24 series
16
- require 'punks/punks'
17
- require 'punks/phunks'
18
- require 'punks/marilyns'
19
- require 'punks/philips'
20
- require 'punks/saudis'
21
- require 'punks/marcs'
22
- require 'punks/ye_olde_punks_2017'
16
+ require_relative 'punks/punks'
17
+ require_relative 'punks/phunks'
18
+ require_relative 'punks/marilyns'
19
+ require_relative 'punks/philips'
20
+ require_relative 'punks/saudis'
21
+ require_relative 'punks/marcs'
22
+ require_relative 'punks/ye_olde_punks_2017'
23
23
  ## --- 32x32 series
24
- require 'punks/punks_xl'
25
- require 'punks/bodies_32'
24
+ require_relative 'punks/punks_xl'
25
+ require_relative 'punks/bodies_32'
26
26
  ## --- 40x40 series
27
- require 'punks/bodies_40'
28
-
27
+ require_relative 'punks/bodies_40'
28
+ ## --- 12x12 series
29
+ require_relative 'punks/punks_12'
29
30
 
30
31
 
31
32
 
@@ -37,6 +38,14 @@ Punks = Punk
37
38
  Cryptopunk = Punk
38
39
  CryptoPunk = Punk
39
40
 
41
+ ### add some convenience shortcuts / alternate spelling variants
42
+ PunkXS = Punk12
43
+ PunkXs = Punk12
44
+ PunkMini = Punk12
45
+ Punkmini = Punk12
46
+ MiniPunk = Punk12
47
+ Minipunk = Punk12
48
+
40
49
 
41
50
  ### add some convenience shortcuts / alternate spelling variants
42
51
  PunkXL = Punkxl
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.5.3
4
+ version: 1.0.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-08-13 00:00:00.000000000 Z
11
+ date: 2024-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pixelart
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3.2
19
+ version: 1.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.3.2
26
+ version: 1.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: backgrounds
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.0
33
+ version: 0.2.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.2.0
40
+ version: 0.2.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: artfactory
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 0.2.0
47
+ version: 1.0.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.2.0
54
+ version: 1.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rdoc
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -78,20 +78,20 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '3.23'
81
+ version: '4.1'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '3.23'
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, marc, saudi/sheik,
88
+ version: '4.1'
89
+ description: punks - generate your own 24×24 (or 32×32 or 12×12) punk (incl. Matt
90
+ & John's® ye olde punk v1/v2 anno 2017 style), phunk, philip, marilyn, marc, saudi/sheik,
91
91
  man in black, hottie 'n' more (pixel) avatar / character images (off chain) from
92
92
  text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes
93
93
  and more
94
- email: wwwmake@googlegroups.com
94
+ email: gerald.bauer@gmail.com
95
95
  executables: []
96
96
  extensions: []
97
97
  extra_rdoc_files:
@@ -106,6 +106,8 @@ files:
106
106
  - config/marcs-24x24.csv
107
107
  - config/marcs-24x24.png
108
108
  - config/philip-24x24.png
109
+ - config/punks-12x12.csv
110
+ - config/punks-12x12.png
109
111
  - config/punks-24x24.csv
110
112
  - config/punks-24x24.png
111
113
  - config/punks-32x32.csv
@@ -126,6 +128,7 @@ files:
126
128
  - lib/punks/pixelart/generator.rb
127
129
  - lib/punks/pixelart/spritesheet.rb
128
130
  - lib/punks/punks.rb
131
+ - lib/punks/punks_12.rb
129
132
  - lib/punks/punks_xl.rb
130
133
  - lib/punks/saudis.rb
131
134
  - lib/punks/version.rb
@@ -151,12 +154,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
154
  - !ruby/object:Gem::Version
152
155
  version: '0'
153
156
  requirements: []
154
- rubygems_version: 3.3.7
157
+ rubygems_version: 3.4.10
155
158
  signing_key:
156
159
  specification_version: 4
157
- summary: punks - generate your own 24×24 (or 32×32) punk (incl. Matt & John's® ye
158
- olde punk v1/v2 anno 2017 style), phunk, philip, marilyn, marc, saudi/sheik, man
159
- in black, hottie 'n' more (pixel) avatar / character images (off chain) from text
160
- attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and
161
- more
160
+ summary: punks - generate your own 24×24 (or 32×32 or 12×12) punk (incl. Matt & John's®
161
+ ye olde punk v1/v2 anno 2017 style), phunk, philip, marilyn, marc, saudi/sheik,
162
+ man in black, hottie 'n' more (pixel) avatar / character images (off chain) from
163
+ text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes
164
+ and more
162
165
  test_files: []