cyberpunks 0.2.0 → 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: 701469825008016798f021f40c8284692e474878bbff0b2be5d6ea623c432f74
4
- data.tar.gz: 8d42469b4c6593b882fcd6a69174b84739d1474767bd19a5ec6d67b1e0e10556
3
+ metadata.gz: ba92eec2dbab0d80025b3bcb75694e6b579bb2e8dcabdecbde8cbb381c9c6798
4
+ data.tar.gz: 87e29f284278983d70b36ae8943d0cce72cd85ff0dbd17da6c0fae67e5f3f86b
5
5
  SHA512:
6
- metadata.gz: 20ddcb4228aec7b5189476d4506523cc2593069d13b7c1101b0228f961723cf9def38d6bf7c51d665cb4de57396a25b8c7bac600346dd25132bb59cff90bcb1b
7
- data.tar.gz: d47f914b87bfee2bad453c8ef747520d702d46eeaa410098704bb353e6a27729b61d515439b69bc564feab9d7adabed9ddbfb9c0145e49e7dc9df1b2cd90d009
6
+ metadata.gz: c4e06693565b2b6b2f5f19f53976b6ca49f7374ada52dd505c64da017606a4de7f143a778c61b8948198eb6900f8857d9c73aab943596add655291264e42887c
7
+ data.tar.gz: af8a2fdbc56d889c0a1660a254f0baea8059d0ffaba6ce50cdc02d4ab48cdd11cecf6e262a2470fffbe77a9790809340ba803b6b0a843dfe626eea7f31c3c8fe
data/README.md CHANGED
@@ -1,14 +1,14 @@
1
- The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/pixelartexchange/originals) Presents
1
+ The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/profilepic/originals) Presents
2
2
 
3
3
  # Cyberpunks (Pixel Avatars)
4
4
 
5
5
 
6
- Yes, you can! Generate your own cyberpunk (blade runner) sci-fi 32×32 pixel avatar images (off chain) from 100+ text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
6
+ Yes, you can! Generate your own cyberpunk (blade runner) sci-fi 32×32 pixel avatar images (off-blockchain) from 100+ text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
7
7
 
8
8
 
9
9
 
10
- * home :: [github.com/pixelartexchange/pixelart](https://github.com/pixelartexchange/pixelart)
11
- * bugs :: [github.com/pixelartexchange/pixelart/issues](https://github.com/pixelartexchange/pixelart/issues)
10
+ * home :: [github.com/profilepic/text-to-image](https://github.com/profilepic/text-to-image)
11
+ * bugs :: [github.com/profilepic/text-to-image/issues](https://github.com/profilepic/text-to-image/issues)
12
12
  * gem :: [rubygems.org/gems/cyberpunks](https://rubygems.org/gems/cyberpunks)
13
13
  * rdoc :: [rubydoc.info/gems/cyberpunks](http://rubydoc.info/gems/cyberpunks)
14
14
 
@@ -49,15 +49,15 @@ punk.zoom(4).save( "punk1c@4x.png" )
49
49
 
50
50
  Voila!
51
51
 
52
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk1.png)
53
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk1b.png)
54
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk1c.png)
52
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk1.png)
53
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk1b.png)
54
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk1c.png)
55
55
 
56
56
  In 4x:
57
57
 
58
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk1@4x.png)
59
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk1b@4x.png)
60
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk1c@4x.png)
58
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk1@4x.png)
59
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk1b@4x.png)
60
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk1c@4x.png)
61
61
 
62
62
 
63
63
 
@@ -87,15 +87,15 @@ punk.zoom(4).save( "punk2c@4x.png" )
87
87
 
88
88
  Voila!
89
89
 
90
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk2.png)
91
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk2b.png)
92
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk2c.png)
90
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk2.png)
91
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk2b.png)
92
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk2c.png)
93
93
 
94
94
  In 4x:
95
95
 
96
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk2@4x.png)
97
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk2b@4x.png)
98
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk2c@4x.png)
96
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk2@4x.png)
97
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk2b@4x.png)
98
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk2c@4x.png)
99
99
 
100
100
 
101
101
  ```ruby
@@ -122,15 +122,15 @@ punk.zoom(4).save( "punk3c@4x.png" )
122
122
 
123
123
  Voila!
124
124
 
125
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk3.png)
126
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk3b.png)
127
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk3c.png)
125
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk3.png)
126
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk3b.png)
127
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk3c.png)
128
128
 
129
129
  In 4x:
130
130
 
131
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk3@4x.png)
132
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk3b@4x.png)
133
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk3c@4x.png)
131
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk3@4x.png)
132
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk3b@4x.png)
133
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk3c@4x.png)
134
134
 
135
135
 
136
136
 
@@ -156,15 +156,15 @@ punk.zoom(4).save( "punk4c@4x.png" )
156
156
 
157
157
  Voila!
158
158
 
159
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk4.png)
160
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk4b.png)
161
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk4c.png)
159
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk4.png)
160
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk4b.png)
161
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk4c.png)
162
162
 
163
163
  In 4x:
164
164
 
165
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk4@4x.png)
166
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk4b@4x.png)
167
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk4c@4x.png)
165
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk4@4x.png)
166
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk4b@4x.png)
167
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/punk4c@4x.png)
168
168
 
169
169
 
170
170
  And so on.
@@ -195,18 +195,18 @@ jack_o_lantern.zoom( 4 ).save( "jack_o_lantern@4x.png" )
195
195
 
196
196
  Voila!
197
197
 
198
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/skull_gold.png)
199
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/egirl_hair.png)
200
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/sun_glasses.png)
201
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/jack_o_lantern.png)
198
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/skull_gold.png)
199
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/egirl_hair.png)
200
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/sun_glasses.png)
201
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/jack_o_lantern.png)
202
202
 
203
203
  In 4x:
204
204
 
205
205
 
206
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/skull_gold@4x.png)
207
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/egirl_hair@4x.png)
208
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/sun_glasses@4x.png)
209
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/jack_o_lantern@4x.png)
206
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/skull_gold@4x.png)
207
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/egirl_hair@4x.png)
208
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/sun_glasses@4x.png)
209
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/i/jack_o_lantern@4x.png)
210
210
 
211
211
  And so on.
212
212
 
@@ -215,11 +215,11 @@ And so on.
215
215
 
216
216
  ## Appendix - All Built-In Spritesheet Attributes (32x32px)
217
217
 
218
- See the [spritesheet.csv](https://github.com/pixelartexchange/pixelart/blob/master/cyberpunks/config/spritesheet.csv) dataset for all attribute names (w/ categories).
218
+ See the [spritesheet.csv](https://github.com/profilepic/text-to-image/blob/master/cyberpunks/config/spritesheet.csv) dataset for all attribute names (w/ categories).
219
219
 
220
- ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/config/spritesheet.png)
220
+ ![](https://github.com/profilepic/text-to-image/raw/master/cyberpunks/config/spritesheet.png)
221
221
 
222
- (Source: [cyperpunks/spritesheet.png](https://github.com/pixelartexchange/pixelart/blob/master/cyberpunks/config/spritesheet.png))
222
+ (Source: [cyperpunks/spritesheet.png](https://github.com/profilepic/text-to-image/blob/master/cyberpunks/config/spritesheet.png))
223
223
 
224
224
 
225
225
 
data/Rakefile CHANGED
@@ -11,12 +11,12 @@ end
11
11
 
12
12
  Hoe.spec 'cyberpunks' do
13
13
 
14
- self.version = Cyberpunks::VERSION
14
+ self.version = Pixelart::Module::Cyberpunks::VERSION
15
15
 
16
- self.summary = "cyberpunks - generate your own cyberpunk (blade runner) sci-fi 32×32 pixel avatar images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more"
16
+ self.summary = "cyberpunks - generate your own cyberpunk (blade runner) sci-fi 32×32 pixel avatar images (off-blockchain) 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
- self.urls = { home: 'https://github.com/pixelartexchange/pixelart' }
19
+ self.urls = { home: 'https://github.com/profilepic/text-to-image' }
20
20
 
21
21
  self.author = 'Gerald Bauer'
22
22
  self.email = 'wwwmake@googlegroups.com'
@@ -26,7 +26,6 @@ Hoe.spec 'cyberpunks' do
26
26
  self.history_file = 'CHANGELOG.md'
27
27
 
28
28
  self.extra_deps = [
29
- ['pixelart', '>= 1.3.2'],
30
29
  ['artfactory', '>= 0.2.0'],
31
30
  ]
32
31
 
@@ -1,9 +1,10 @@
1
1
 
2
-
2
+ module Pixelart
3
+ module Module
3
4
  module Cyberpunks
4
5
 
5
- MAJOR = 0
6
- MINOR = 2
6
+ MAJOR = 1
7
+ MINOR = 0
7
8
  PATCH = 0
8
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
10
 
@@ -19,5 +20,7 @@ module Cyberpunks
19
20
  File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
20
21
  end
21
22
 
23
+ end # module Pixelart
24
+ end # module Module
22
25
  end # module Cyberpunks
23
26
 
data/lib/cyberpunks.rb CHANGED
@@ -1,28 +1,25 @@
1
- ## 3rd party
2
- require 'pixelart/base'
3
- require 'backgrounds/base'
1
+ ## our own "3rd" party gems
4
2
  require 'artfactory/base'
5
3
 
6
4
 
7
5
 
8
6
  ## our own code
9
- require 'cyberpunks/version' # note: let version always go first
7
+ require_relative 'cyberpunks/version' # note: let version always go first
10
8
 
11
9
 
12
10
 
13
11
  ###
14
12
  ## add convenience pre-configurated generatored with build-in spritesheet (see config)
15
- module Cyberpunks
13
+ module Cyberpunk
16
14
  class Spritesheet
17
15
  def self.builtin
18
- @builtin ||= Pixelart::Spritesheet.read( "#{Cyberpunks.root}/config/spritesheet.png",
19
- "#{Cyberpunks.root}/config/spritesheet.csv",
16
+ @builtin ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Cyberpunks.root}/config/spritesheet.png",
17
+ "#{Pixelart::Module::Cyberpunks.root}/config/spritesheet.csv",
20
18
  width: 32,
21
19
  height: 32 )
22
20
  end
23
21
  ## note: for now class used for "namespace" only
24
22
  def self.find_by( name: ) ## return archetype/attribute image by name
25
- # note: pass along name as q (query string)
26
23
  builtin.find_by( name: name )
27
24
  end
28
25
  end # class Spritesheet
@@ -34,22 +31,29 @@ module Cyberpunks
34
31
 
35
32
  class Image < Pixelart::Image
36
33
  def self.generator
37
- @generator ||= Artfactory.use( Cyberpunks::Sheet.builtin,
34
+ @generator ||= Artfactory.use( Cyberpunk::Sheet.builtin,
38
35
  image_class: Image )
39
36
  end
40
37
 
38
+
39
+ NAMES = ['cyberpunk', 'cyberpunks']
40
+
41
+ DEFAULT_ATTRIBUTES = ['Human 9',
42
+ 'Smile',
43
+ 'Delicate',
44
+ 'Femme Wide',
45
+ 'Large Hoop Earrings',
46
+ 'Messy Bun']
47
+
41
48
  def self.generate( *names )
42
49
  generator.generate( *names )
43
50
  end
44
51
  end # class Image
45
- end # module Cyberpunks
52
+ end # module Cyberpunk
46
53
 
47
54
 
48
55
  ### add some convenience shortcuts
49
- CyberPunks = Cyberpunks
50
- ## add singular too -why? why not?
51
- Cyberpunk = Cyberpunks
52
- CyberPunk = Cyberpunks
56
+ CyberPunk = Cyberpunk
53
57
 
54
58
 
55
59
 
@@ -60,6 +64,4 @@ include Pixelart
60
64
 
61
65
 
62
66
 
63
-
64
-
65
- puts Cyberpunks.banner # say hello
67
+ puts Pixelart::Module::Cyberpunks.banner # say hello
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyberpunks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
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-06-10 00:00:00.000000000 Z
11
+ date: 2022-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: pixelart
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 1.3.2
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: 1.3.2
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: artfactory
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +59,7 @@ dependencies:
73
59
  - !ruby/object:Gem::Version
74
60
  version: '3.23'
75
61
  description: cyberpunks - generate your own cyberpunk (blade runner) sci-fi 32×32
76
- pixel avatar images (off chain) from text attributes (via built-in spritesheet);
62
+ pixel avatar images (off-blockchain) from text attributes (via built-in spritesheet);
77
63
  incl. 2x/4x/8x zoom for bigger sizes and more
78
64
  email: wwwmake@googlegroups.com
79
65
  executables: []
@@ -91,7 +77,7 @@ files:
91
77
  - config/spritesheet.png
92
78
  - lib/cyberpunks.rb
93
79
  - lib/cyberpunks/version.rb
94
- homepage: https://github.com/pixelartexchange/pixelart
80
+ homepage: https://github.com/profilepic/text-to-image
95
81
  licenses:
96
82
  - Public Domain
97
83
  metadata: {}
@@ -116,6 +102,6 @@ rubygems_version: 3.3.7
116
102
  signing_key:
117
103
  specification_version: 4
118
104
  summary: cyberpunks - generate your own cyberpunk (blade runner) sci-fi 32×32 pixel
119
- avatar images (off chain) from text attributes (via built-in spritesheet); incl.
120
- 2x/4x/8x zoom for bigger sizes and more
105
+ avatar images (off-blockchain) from text attributes (via built-in spritesheet);
106
+ incl. 2x/4x/8x zoom for bigger sizes and more
121
107
  test_files: []