coolcats 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -2
- data/lib/coolcats/version.rb +1 -2
- data/lib/coolcats.rb +6 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d69a0231f2d8385147e03bd23dd9d09093043566b70f52f617d204c1517198ff
|
4
|
+
data.tar.gz: 431fccb50629b30b10180fc3d98f85bf202fc6f9c9b35fadc3fbf777520e1d04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 846139e1356df7b73401ea30e4562d528c2560f1bfcf1d4a2d782a827e6a5b753a67a4da91311c856ac8a1ef94e0325a41abfd1faab5553f8d31e8661679f6bb
|
7
|
+
data.tar.gz: fe5197294810b7e6aa9020ab8fd963380760cd3082ba9ffc3d3324930f25e00cf455862d60dd2842348cde704dc21fd904487c63124443fac9cbd2d186214068
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/pixelartexchange/originals) Presents
|
2
|
+
|
1
3
|
# Coolcats (Pixel Cats)
|
2
4
|
|
3
|
-
|
5
|
+
Yes, you can! Generate your own 24×24 pixel cat images (off chain) from text attributes (via built-in spritesheet); incl. 2x/4x/8x zoom for bigger sizes and more
|
4
6
|
|
5
7
|
|
6
8
|
|
@@ -149,7 +151,18 @@ And so on.
|
|
149
151
|
|
150
152
|
|
151
153
|
|
154
|
+
## Appendix - All Built-In Spritesheet Attributes (24x24px)
|
155
|
+
|
156
|
+
See the [spritesheet.csv](https://github.com/pixelartexchange/pixelart/blob/master/coolcats/config/spritesheet.csv) dataset for all attribute names (w/ categories).
|
157
|
+
|
158
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/coolcats/config/spritesheet.png)
|
159
|
+
|
160
|
+
(Source: [coolcats/spritesheet.png](https://github.com/pixelartexchange/pixelart/blob/master/coolcats/config/spritesheet.png))
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
152
165
|
|
153
166
|
## Questions? Comments?
|
154
167
|
|
155
|
-
Post them on the [
|
168
|
+
Post them on the [D.I.Y. Punk (Pixel) Art reddit](https://old.reddit.com/r/DIYPunkArt). Thanks.
|
data/lib/coolcats/version.rb
CHANGED
data/lib/coolcats.rb
CHANGED
@@ -7,13 +7,6 @@ require 'pixelart/base'
|
|
7
7
|
require 'coolcats/version' # note: let version always go first
|
8
8
|
|
9
9
|
|
10
|
-
## forward define superclass for image
|
11
|
-
module Coolcats
|
12
|
-
class Image < Pixelart::Image; end
|
13
|
-
end
|
14
|
-
|
15
|
-
###
|
16
|
-
## add convenience pre-configurated generatored with build-in spritesheet (see config)
|
17
10
|
|
18
11
|
module Coolcats
|
19
12
|
|
@@ -25,10 +18,13 @@ module Coolcats
|
|
25
18
|
end
|
26
19
|
|
27
20
|
|
28
|
-
class Image
|
29
|
-
|
21
|
+
class Image < Pixelart::Image
|
22
|
+
|
23
|
+
NAMES = ['coolcat', 'coolcats']
|
24
|
+
|
25
|
+
def self.generate( *values )
|
30
26
|
## note: always auto-add base coolcat archetye by default
|
31
|
-
img = Coolcats.generator.generate( 'Base', *values
|
27
|
+
img = Coolcats.generator.generate( 'Base', *values )
|
32
28
|
## note: unwrap inner image before passing on to c'tor (requires ChunkyPNG image for now)
|
33
29
|
new( 24, 24, img.image )
|
34
30
|
end # method Image.generate
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coolcats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.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-
|
11
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pixelart
|