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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86246698ce26e02b56b6b9474adc3323ccb78359e1f63547b30e9476d9dde693
4
- data.tar.gz: 147d11723068844d4d907e12ae86cc9bdc97a25eb6859be404bb4d9c4f6a3b5d
3
+ metadata.gz: d69a0231f2d8385147e03bd23dd9d09093043566b70f52f617d204c1517198ff
4
+ data.tar.gz: 431fccb50629b30b10180fc3d98f85bf202fc6f9c9b35fadc3fbf777520e1d04
5
5
  SHA512:
6
- metadata.gz: 80ef11ec6ed05e6e357b313748a739fc90293443d038c13338ca81d14263d12b01bfc18ab629178af18d4c2198d94942685766a27aaf82e1bf49efb0d40a1a7a
7
- data.tar.gz: 7a35931c14f37da591267b5d93f8177476d6f9d6181ada6db4dbac5ceff176ebff427a56ffea671e72d9e0b10af936c219cf55c89c79805c3267004d0ebc42f0
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
- coolcats - 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
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 [CryptoPunksDev reddit](https://old.reddit.com/r/CryptoPunksDev). Thanks.
168
+ Post them on the [D.I.Y. Punk (Pixel) Art reddit](https://old.reddit.com/r/DIYPunkArt). Thanks.
@@ -1,10 +1,9 @@
1
1
 
2
2
 
3
3
  module Coolcats
4
-
5
4
  MAJOR = 0
6
5
  MINOR = 1
7
- PATCH = 0
6
+ PATCH = 1
8
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
8
 
10
9
  def self.version
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
- def self.generate( *values, background: nil )
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, background: background )
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.0
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-05-19 00:00:00.000000000 Z
11
+ date: 2022-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pixelart