readymades 0.1.3 → 1.0.1

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: db3b90d1d365d4b15221780eaddfc07e9a97911de8f86d022f8b01a39ed0816c
4
- data.tar.gz: '08e2f8d4c9b772dc2210202615964787d5f797e4557df4b87def02a88e3d32ab'
3
+ metadata.gz: 531a2809a86e65875954bb48a0f75209cf7b5658ed19df91f2ba7e11e00039e6
4
+ data.tar.gz: de4bcf3a909179cd02735cff1b56dea7d0a136ead150db4bb661a881492e7171
5
5
  SHA512:
6
- metadata.gz: d7d5cbc45fb646bd1e5764541b28449c5c25e0c337fd40f9cdf07e92394bfb34218ab5b1680dc5f0bec55ebf1c347a8f0c5f07690f75ebcc4baa7b3dc43a07f5
7
- data.tar.gz: c77e67c616cf6ec0d0f5b49aa1b2545ed7c4d7f52c27b64895305154d81ce54e571391843ed5504545908e209c9340106078e3ed351bbd979efa211270fcd9ac
6
+ metadata.gz: af34776eec60554c721316868aaf5eb3a287b08732d5dd27b5f6880cc6fceee9bd07a658943ee9b964a96ce58a20e32c3ae58255d8de590d0f89b7540b1db961
7
+ data.tar.gz: 25f4f765357743f1b4ac7cb0524df29c045197534bbbdbc5575ce69fea459ee40234f7e47e5d0653f0977e59c3a2b0f343f108d60214e956c82a1dd26c8bdc96
data/README.md CHANGED
@@ -1,15 +1,15 @@
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
  # Readymades (1/1 Original Pixel Punks)
4
4
 
5
- Yes, you can! Generate your own 24×24 pixel punk images (off chain) from 1/1 originals incl. William Shakespare, Galileo Galilei, Mao Zedong, The Mask, The Joker, Bard Simpson, and many other readymade public world figures or cinema (fictional or cartoon) characters and add attributes / accessories with text (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
5
+ Yes, you can! Generate your own 24×24 pixel punk images (off-blockchain) from 1/1 originals incl. William Shakespare, Galileo Galilei, Mao Zedong, The Mask, The Joker, Bard Simpson, and many other readymade public world figures or cinema (fictional or cartoon) characters and add attributes / accessories with text (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
6
6
 
7
7
 
8
8
 
9
9
 
10
10
 
11
- * home :: [github.com/pixelartexchange/pixelart](https://github.com/pixelartexchange/pixelart)
12
- * bugs :: [github.com/pixelartexchange/pixelart/issues](https://github.com/pixelartexchange/pixelart/issues)
11
+ * home :: [github.com/profilepic/text-to-image](https://github.com/profilepic/text-to-image)
12
+ * bugs :: [github.com/profilepic/text-to-image/issues](https://github.com/profilepic/text-to-image/issues)
13
13
  * gem :: [rubygems.org/gems/readymades](https://rubygems.org/gems/readymades)
14
14
  * rdoc :: [rubydoc.info/gems/readymades](http://rubydoc.info/gems/readymades)
15
15
 
@@ -21,10 +21,85 @@ Yes, you can! Generate your own 24×24 pixel punk images (off chain) from 1/1 or
21
21
  Let's generate some super-rare never-before-seen
22
22
  readymade 1/1 pixel punks:
23
23
 
24
- ...
24
+ ```ruby
25
+ require 'smileys'
25
26
 
27
+ punk = Will::Image.generate
28
+ punk.save( "will.png")
26
29
 
30
+ punk = Will::Image.generate( '3D Glasses' )
31
+ punk.save( "will2.png")
27
32
 
33
+ punk = Will::Image.generate( 'VR' )
34
+ punk.save( "will3.png")
35
+ ```
36
+
37
+ Voila!
38
+
39
+ ![](https://github.com/profilepic/text-to-image/raw/master/readymades/i/will.png)
40
+ ![](https://github.com/profilepic/text-to-image/raw/master/readymades/i/will2.png)
41
+ ![](https://github.com/profilepic/text-to-image/raw/master/readymades/i/will3.png)
42
+
43
+
44
+ ```ruby
45
+ punk = Mao::Image.generate
46
+ punk.save( "mao.png")
47
+
48
+ punk = Mao::Image.generate( '3D Glasses')
49
+ punk.save( "mao2.png")
50
+
51
+ punk = Mao::Image.generate( 'VR')
52
+ punk.save( "mao3.png")
53
+ ```
54
+
55
+ Voila!
56
+
57
+ ![](https://github.com/profilepic/text-to-image/raw/master/readymades/i/mao.png)
58
+ ![](https://github.com/profilepic/text-to-image/raw/master/readymades/i/mao2.png)
59
+ ![](https://github.com/profilepic/text-to-image/raw/master/readymades/i/mao3.png)
60
+
61
+
62
+
63
+ ```ruby
64
+ punk = Bart::Image.generate
65
+ punk.save( "bart.png")
66
+
67
+ punk = Bart::Image.generate( '3D Glasses')
68
+ punk.save( "bart2.png")
69
+
70
+ punk = Bart::Image.generate( 'VR')
71
+ punk.save( "bart3.png")
72
+ ```
73
+
74
+ Voila!
75
+
76
+ ![](https://github.com/profilepic/text-to-image/raw/master/readymades/i/bart.png)
77
+ ![](https://github.com/profilepic/text-to-image/raw/master/readymades/i/bart2.png)
78
+ ![](https://github.com/profilepic/text-to-image/raw/master/readymades/i/bart3.png)
79
+
80
+
81
+
82
+
83
+ ```ruby
84
+ punk = Snoop::Image.generate
85
+ punk.save( "snoop.png")
86
+
87
+ punk = Snoop::Image.generate( '3D Glasses' )
88
+ punk.save( "snoop2.png")
89
+
90
+ punk = Snoop::Image.generate( 'VR' )
91
+ punk.save( "snoop3.png")
92
+ ```
93
+
94
+ Voila!
95
+
96
+ ![](https://github.com/profilepic/text-to-image/raw/master/readymades/i/snoop.png)
97
+ ![](https://github.com/profilepic/text-to-image/raw/master/readymades/i/snoop2.png)
98
+ ![](https://github.com/profilepic/text-to-image/raw/master/readymades/i/snoop3.png)
99
+
100
+
101
+
102
+ And so on.
28
103
 
29
104
 
30
105
  ## Questions? Comments?
data/Rakefile CHANGED
@@ -11,12 +11,12 @@ end
11
11
 
12
12
  Hoe.spec 'readymades' do
13
13
 
14
- self.version = Readymades::VERSION
14
+ self.version = Pixelart::Module::Readymades::VERSION
15
15
 
16
- self.summary = "readymades - generate your own 24×24 pixel punk images (off chain) from 1/1 originals incl. William Shakespare, Galileo Galilei, Mao Zedong and many other readymade public world figures and add attributes / accessories with text (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more"
16
+ self.summary = "readymades - generate your own 24×24 pixel punk images (off-blockchain) from 1/1 originals incl. William Shakespare, Galileo Galilei, Mao Zedong and many other readymade public world figures and add attributes / accessories with text (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,8 +26,7 @@ Hoe.spec 'readymades' do
26
26
  self.history_file = 'CHANGELOG.md'
27
27
 
28
28
  self.extra_deps = [
29
- ['cryptopunks'],
30
- ['backgrounds', '>= 0.2.0'],
29
+ ['punks', '>= 0.5.3'],
31
30
  ]
32
31
 
33
32
  self.licenses = ['Public Domain']
@@ -1,10 +1,12 @@
1
1
 
2
2
 
3
+ module Pixelart
4
+ module Module
3
5
  module Readymades
4
6
 
5
- MAJOR = 0
6
- MINOR = 1
7
- PATCH = 3
7
+ MAJOR = 1
8
+ MINOR = 0
9
+ PATCH = 1
8
10
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
11
 
10
12
  def self.version
@@ -19,5 +21,7 @@ module Readymades
19
21
  File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
20
22
  end
21
23
 
24
+ end # module Pixelart
25
+ end # module Module
22
26
  end # module Readymades
23
27
 
data/lib/readymades.rb CHANGED
@@ -1,24 +1,19 @@
1
- ## 3rd party
2
- require 'cryptopunks' ### todo - add/change to cryptopunks/base !!!
3
- require 'backgrounds/base' ## note: incl. backgrounds for now
4
- ## (may get pulled in by cryptopunks later with update)
1
+ ## our own "3rd" party gems
2
+ require 'punks' ### todo - add/change to punks/base !!!
5
3
 
6
4
 
7
5
  ## our own code
8
- require 'readymades/version' # note: let version always go first
6
+ require_relative 'readymades/version' # note: let version always go first
9
7
 
10
8
 
11
9
 
12
10
 
13
- ###
14
- ## add convenience pre-configurated generatored with build-in spritesheet (see config)
15
-
16
- module Readymades
11
+ module Readymade
17
12
 
18
13
  class Spritesheet ## note: for now class used for "namespace" only
19
14
  def self.builtin ### check: use a different name e.g. default,standard,base or such - why? why not?
20
- @sheet ||= Pixelart::Spritesheet.read( "#{Readymades.root}/config/spritesheet.png",
21
- "#{Readymades.root}/config/spritesheet.csv",
15
+ @sheet ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Readymades.root}/config/spritesheet.png",
16
+ "#{Pixelart::Module::Readymades.root}/config/spritesheet.csv",
22
17
  width: 24,
23
18
  height: 24 )
24
19
  end
@@ -36,6 +31,9 @@ module Readymades
36
31
 
37
32
  class Image < Pixelart::Image
38
33
 
34
+ NAMES = ['readymade', 'readymades']
35
+ DEFAULT_ATTRIBUTES = ['Will']
36
+
39
37
  def self.generate( *names )
40
38
  name = names[0]
41
39
  more_names = names[1..-1]
@@ -73,10 +71,63 @@ end # module Readymades
73
71
 
74
72
 
75
73
  ### add some convenience shortcuts
76
- ReadyMades = Readymades
77
- ## add singular too -why? why not?
78
- Readymade = Readymades
79
- ReadyMade = Readymades
74
+ ReadyMade = Readymade
75
+
76
+
77
+
78
+
79
+
80
+ #### add pre-configured readymade shortcuts
81
+ module Will
82
+ class Image < Pixelart::Image
83
+
84
+ NAMES = ['will', 'shakespeare',
85
+ 'willshakespeare',
86
+ 'williamshakespeare']
87
+ def self.generate( *more_names )
88
+ Readymade::Image.generate( 'William Shakespeare', *more_names )
89
+ end # method Image.generate
90
+ end # class Image
91
+ end # module Will
92
+ Shakespeare = Will
93
+
94
+
95
+ module Snoop
96
+ class Image < Pixelart::Image
97
+
98
+ NAMES = ['snoop', 'snoopdogg']
99
+ def self.generate( *more_names )
100
+ Readymade::Image.generate( 'Snoop Dogg', *more_names )
101
+ end # method Image.generate
102
+ end # class Image
103
+ end # module Snoop
104
+ Snoopdogg = Snoop
105
+ SnoopDogg = Snoop
106
+
107
+ module Bart
108
+ class Image < Pixelart::Image
109
+
110
+ NAMES = ['bart', 'simpson', 'bartsimpson']
111
+ def self.generate( *more_names )
112
+ Readymade::Image.generate( 'Bart ', *more_names )
113
+ end # method Image.generate
114
+ end # class Image
115
+ end # module Bart
116
+ Simpson = Bart
117
+
118
+ module Mao
119
+ class Image < Pixelart::Image
120
+
121
+ NAMES = ['mao', 'maozedong']
122
+ def self.generate( *more_names )
123
+ Readymade::Image.generate( 'Mao Zedong', *more_names )
124
+ end # method Image.generate
125
+ end # class Image
126
+ end # module Mao
127
+ Maozedong = Mao
128
+ MaoZedong = Mao
129
+
130
+
80
131
 
81
132
 
82
133
 
@@ -87,4 +138,4 @@ include Pixelart
87
138
 
88
139
 
89
140
 
90
- puts Readymades.banner # say hello
141
+ puts Pixelart::Module::Readymades.banner # say hello
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: readymades
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 1.0.1
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-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: cryptopunks
14
+ name: punks
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.5.3
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: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: backgrounds
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 0.2.0
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 0.2.0
26
+ version: 0.5.3
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rdoc
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,10 +58,10 @@ dependencies:
72
58
  - - "~>"
73
59
  - !ruby/object:Gem::Version
74
60
  version: '3.23'
75
- description: readymades - generate your own 24×24 pixel punk images (off chain) from
76
- 1/1 originals incl. William Shakespare, Galileo Galilei, Mao Zedong and many other
77
- readymade public world figures and add attributes / accessories with text (via built-in
78
- spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
61
+ description: readymades - generate your own 24×24 pixel punk images (off-blockchain)
62
+ from 1/1 originals incl. William Shakespare, Galileo Galilei, Mao Zedong and many
63
+ other readymade public world figures and add attributes / accessories with text
64
+ (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
79
65
  email: wwwmake@googlegroups.com
80
66
  executables: []
81
67
  extensions: []
@@ -92,7 +78,7 @@ files:
92
78
  - config/spritesheet.png
93
79
  - lib/readymades.rb
94
80
  - lib/readymades/version.rb
95
- homepage: https://github.com/pixelartexchange/pixelart
81
+ homepage: https://github.com/profilepic/text-to-image
96
82
  licenses:
97
83
  - Public Domain
98
84
  metadata: {}
@@ -116,8 +102,8 @@ requirements: []
116
102
  rubygems_version: 3.3.7
117
103
  signing_key:
118
104
  specification_version: 4
119
- summary: readymades - generate your own 24×24 pixel punk images (off chain) from 1/1
120
- originals incl. William Shakespare, Galileo Galilei, Mao Zedong and many other readymade
121
- public world figures and add attributes / accessories with text (via built-in spritesheet);
122
- incl. 2x/4x/8x zoom for bigger sizes and more
105
+ summary: readymades - generate your own 24×24 pixel punk images (off-blockchain) from
106
+ 1/1 originals incl. William Shakespare, Galileo Galilei, Mao Zedong and many other
107
+ readymade public world figures and add attributes / accessories with text (via built-in
108
+ spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
123
109
  test_files: []