coolcats 0.1.1 → 1.0.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 +4 -4
- data/README.md +33 -33
- data/Rakefile +4 -4
- data/lib/coolcats/version.rb +7 -4
- data/lib/coolcats.rb +36 -31
- metadata +12 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd556dc732779a6049268108fd0fc8f713a72e8c31d37b4e03e5507652c99a32
|
|
4
|
+
data.tar.gz: a297760d367edcafa342f5805c7c623b5623f2b1d94e578a6105f2f016d3385b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36bc6129aa400d7c341a90b84e81a843c6b518dd5bb0f1b2ed56e1837c71917ff16bda6d12bd7344af15fd8b33c3f5dada16bc50400b1242cd8990de48dbaac7
|
|
7
|
+
data.tar.gz: 1c06bc2be7acfabc6304e0ebc09dc25622cee5e51c173ae162082ee638f43d5df02a5ebcbd1b5a96dd15226b5ff0a4b656d9e9195d7b6b299788a6a54cf43f8c
|
data/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/
|
|
1
|
+
The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/profilepic/originals) Presents
|
|
2
2
|
|
|
3
3
|
# Coolcats (Pixel Cats)
|
|
4
4
|
|
|
5
|
-
Yes, you can! Generate your own 24×24 pixel cat images (off
|
|
5
|
+
Yes, you can! Generate your own 24×24 pixel cat images (off-blockchain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
* home :: [github.com/
|
|
10
|
-
* bugs :: [github.com/
|
|
9
|
+
* home :: [github.com/profilepic/text-to-image](https://github.com/profilepic/text-to-image)
|
|
10
|
+
* bugs :: [github.com/profilepic/text-to-image/issues](https://github.com/profilepic/text-to-image/issues)
|
|
11
11
|
* gem :: [rubygems.org/gems/coolcats](https://rubygems.org/gems/coolcats)
|
|
12
12
|
* rdoc :: [rubydoc.info/gems/coolcats](http://rubydoc.info/gems/coolcats)
|
|
13
13
|
|
|
@@ -38,15 +38,15 @@ coolcat.zoom(4).save( "coolcat3@4x.png" )
|
|
|
38
38
|
|
|
39
39
|
Voila!
|
|
40
40
|
|
|
41
|
-

|
|
42
|
+

|
|
43
|
+

|
|
44
44
|
|
|
45
45
|
In 4x:
|
|
46
46
|
|
|
47
|
-

|
|
48
|
+

|
|
49
|
+

|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
@@ -68,15 +68,15 @@ coolcat.zoom(4).save( "coolcat6@4x.png" )
|
|
|
68
68
|
|
|
69
69
|
Voila!
|
|
70
70
|
|
|
71
|
-

|
|
72
|
+

|
|
73
|
+

|
|
74
74
|
|
|
75
75
|
In 4x:
|
|
76
76
|
|
|
77
|
-

|
|
78
|
+

|
|
79
|
+

|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
@@ -98,15 +98,15 @@ coolcat.zoom(4).save( "coolcat9@4x.png" )
|
|
|
98
98
|
|
|
99
99
|
Voila!
|
|
100
100
|
|
|
101
|
-

|
|
102
|
+

|
|
103
|
+

|
|
104
104
|
|
|
105
105
|
In 4x:
|
|
106
106
|
|
|
107
|
-

|
|
108
|
+

|
|
109
|
+

|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
And so on.
|
|
@@ -135,17 +135,17 @@ overalls_blue.zoom( 4 ).save( "overalls_blue@4x.png" )
|
|
|
135
135
|
|
|
136
136
|
Voila!
|
|
137
137
|
|
|
138
|
-

|
|
139
|
+

|
|
140
|
+

|
|
141
|
+

|
|
142
142
|
|
|
143
143
|
In 4x:
|
|
144
144
|
|
|
145
|
-

|
|
146
|
+

|
|
147
|
+

|
|
148
|
+

|
|
149
149
|
|
|
150
150
|
And so on.
|
|
151
151
|
|
|
@@ -153,11 +153,11 @@ And so on.
|
|
|
153
153
|
|
|
154
154
|
## Appendix - All Built-In Spritesheet Attributes (24x24px)
|
|
155
155
|
|
|
156
|
-
See the [spritesheet.csv](https://github.com/
|
|
156
|
+
See the [spritesheet.csv](https://github.com/profilepic/text-to-image/blob/master/coolcats/config/spritesheet.csv) dataset for all attribute names (w/ categories).
|
|
157
157
|
|
|
158
|
-

|
|
159
159
|
|
|
160
|
-
(Source: [coolcats/spritesheet.png](https://github.com/
|
|
160
|
+
(Source: [coolcats/spritesheet.png](https://github.com/profilepic/text-to-image/blob/master/coolcats/config/spritesheet.png))
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
|
data/Rakefile
CHANGED
|
@@ -11,12 +11,12 @@ end
|
|
|
11
11
|
|
|
12
12
|
Hoe.spec 'coolcats' do
|
|
13
13
|
|
|
14
|
-
self.version = Coolcats::VERSION
|
|
14
|
+
self.version = Pixelart::Module::Coolcats::VERSION
|
|
15
15
|
|
|
16
|
-
self.summary = "coolcats - generate your own 24×24 pixel cat images (off
|
|
16
|
+
self.summary = "coolcats - generate your own 24×24 pixel cat 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/
|
|
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,7 @@ Hoe.spec 'coolcats' do
|
|
|
26
26
|
self.history_file = 'CHANGELOG.md'
|
|
27
27
|
|
|
28
28
|
self.extra_deps = [
|
|
29
|
-
['
|
|
29
|
+
['artfactory', '>= 0.2.0'],
|
|
30
30
|
]
|
|
31
31
|
|
|
32
32
|
self.licenses = ['Public Domain']
|
data/lib/coolcats/version.rb
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
module Pixelart
|
|
3
|
+
module Module
|
|
3
4
|
module Coolcats
|
|
4
|
-
MAJOR =
|
|
5
|
-
MINOR =
|
|
6
|
-
PATCH =
|
|
5
|
+
MAJOR = 1
|
|
6
|
+
MINOR = 0
|
|
7
|
+
PATCH = 0
|
|
7
8
|
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
|
8
9
|
|
|
9
10
|
def self.version
|
|
@@ -18,5 +19,7 @@ module Coolcats
|
|
|
18
19
|
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
|
|
19
20
|
end
|
|
20
21
|
|
|
22
|
+
end # module Pixelart
|
|
23
|
+
end # module Module
|
|
21
24
|
end # module Coolcats
|
|
22
25
|
|
data/lib/coolcats.rb
CHANGED
|
@@ -1,55 +1,60 @@
|
|
|
1
|
-
## 3rd party
|
|
2
|
-
require '
|
|
1
|
+
## our own "3rd" party gems
|
|
2
|
+
require 'artfactory/base'
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## our own code
|
|
7
|
-
|
|
7
|
+
require_relative 'coolcats/version' # note: let version always go first
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
module
|
|
11
|
+
module Coolcat
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Spritesheet
|
|
15
|
+
def self.builtin ### check: use a different name e.g. default,standard,base or such - why? why not?
|
|
16
|
+
@sheet ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Coolcats.root}/config/spritesheet.png",
|
|
17
|
+
"#{Pixelart::Module::Coolcats.root}/config/spritesheet.csv",
|
|
18
|
+
width: 24,
|
|
19
|
+
height: 24 )
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def self.find_by( name: ) ## return archetype/attribute image by name
|
|
23
|
+
builtin.find_by( name: name )
|
|
24
|
+
end
|
|
25
|
+
end # class Spritesheet
|
|
26
|
+
## add convenience (alternate spelling) alias - why? why not?
|
|
27
|
+
SpriteSheet = Spritesheet
|
|
28
|
+
Sheet = Spritesheet
|
|
29
|
+
Sprite = Spritesheet
|
|
12
30
|
|
|
13
|
-
def self.generator
|
|
14
|
-
@generator ||= Pixelart::Generator.new( "#{root}/config/spritesheet.png",
|
|
15
|
-
"#{root}/config/spritesheet.csv",
|
|
16
|
-
width: 24,
|
|
17
|
-
height: 24 )
|
|
18
|
-
end
|
|
19
31
|
|
|
20
32
|
|
|
21
33
|
class Image < Pixelart::Image
|
|
22
34
|
|
|
35
|
+
|
|
36
|
+
def self.generator
|
|
37
|
+
@generator ||= Artfactory.use( Coolcat::Sheet.builtin,
|
|
38
|
+
image_class: Image )
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
|
|
23
42
|
NAMES = ['coolcat', 'coolcats']
|
|
24
43
|
|
|
25
|
-
|
|
44
|
+
DEFAULT_ATTRIBUTES = ['Happy']
|
|
45
|
+
|
|
46
|
+
def self.generate( *names )
|
|
26
47
|
## note: always auto-add base coolcat archetye by default
|
|
27
|
-
|
|
28
|
-
## note: unwrap inner image before passing on to c'tor (requires ChunkyPNG image for now)
|
|
29
|
-
new( 24, 24, img.image )
|
|
48
|
+
generator.generate( 'Base', *names )
|
|
30
49
|
end # method Image.generate
|
|
31
50
|
end # class Image
|
|
32
51
|
|
|
52
|
+
end # module Coolcat
|
|
33
53
|
|
|
34
|
-
class Spritesheet
|
|
35
|
-
## note: for now class used for "namespace" only
|
|
36
|
-
def self.find_by( name: ) ## return archetype/attribute image by name
|
|
37
|
-
# note: pass along name as q (query string)
|
|
38
|
-
Coolcats.generator.find( name )
|
|
39
|
-
end
|
|
40
|
-
end # class Spritesheet
|
|
41
|
-
## add convenience (alternate spelling) alias - why? why not?
|
|
42
|
-
SpriteSheet = Spritesheet
|
|
43
|
-
Sheet = Spritesheet
|
|
44
|
-
Sprite = Spritesheet
|
|
45
|
-
end # module Coolcats
|
|
46
54
|
|
|
47
55
|
|
|
48
56
|
### add some convenience shortcuts
|
|
49
|
-
|
|
50
|
-
## add singular too -why? why not?
|
|
51
|
-
Coolcat = Coolcats
|
|
52
|
-
CoolCat = Coolcats
|
|
57
|
+
CoolCat = Coolcat
|
|
53
58
|
|
|
54
59
|
|
|
55
60
|
|
|
@@ -60,4 +65,4 @@ include Pixelart
|
|
|
60
65
|
|
|
61
66
|
|
|
62
67
|
|
|
63
|
-
puts Coolcats.banner # say hello
|
|
68
|
+
puts Pixelart::Module::Coolcats.banner # say hello
|
metadata
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: coolcats
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 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-
|
|
11
|
+
date: 2022-10-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: artfactory
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 0.2.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:
|
|
26
|
+
version: 0.2.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rdoc
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -58,9 +58,9 @@ dependencies:
|
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
60
|
version: '3.23'
|
|
61
|
-
description: coolcats - generate your own 24×24 pixel cat images (off
|
|
62
|
-
text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger
|
|
63
|
-
and more
|
|
61
|
+
description: coolcats - generate your own 24×24 pixel cat images (off-blockchain)
|
|
62
|
+
from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger
|
|
63
|
+
sizes and more
|
|
64
64
|
email: wwwmake@googlegroups.com
|
|
65
65
|
executables: []
|
|
66
66
|
extensions: []
|
|
@@ -77,7 +77,7 @@ files:
|
|
|
77
77
|
- config/spritesheet.png
|
|
78
78
|
- lib/coolcats.rb
|
|
79
79
|
- lib/coolcats/version.rb
|
|
80
|
-
homepage: https://github.com/
|
|
80
|
+
homepage: https://github.com/profilepic/text-to-image
|
|
81
81
|
licenses:
|
|
82
82
|
- Public Domain
|
|
83
83
|
metadata: {}
|
|
@@ -101,7 +101,7 @@ requirements: []
|
|
|
101
101
|
rubygems_version: 3.3.7
|
|
102
102
|
signing_key:
|
|
103
103
|
specification_version: 4
|
|
104
|
-
summary: coolcats - generate your own 24×24 pixel cat images (off
|
|
105
|
-
attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes
|
|
106
|
-
more
|
|
104
|
+
summary: coolcats - generate your own 24×24 pixel cat images (off-blockchain) from
|
|
105
|
+
text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes
|
|
106
|
+
and more
|
|
107
107
|
test_files: []
|