moonbirds 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Manifest.txt +4 -2
- data/README.md +108 -7
- data/Rakefile +2 -2
- data/config/spritesheet-24x24.csv +222 -0
- data/config/spritesheet-24x24.png +0 -0
- data/config/{spritesheet.csv → spritesheet-42x42.csv} +0 -0
- data/config/{spritesheet.png → spritesheet-42x42.png} +0 -0
- data/lib/moonbirds/version.rb +7 -3
- data/lib/moonbirds.rb +52 -12
- metadata +12 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c2c2b1f9c4ee81c57ba43313e1df853ee8c9c66835a9fbc28ffad39fd913819
|
4
|
+
data.tar.gz: b2801ac9e9224532869c7b5af98a03ddb9d6dc024678200489d987aec0fdd9fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c38e70344182efc24235e0bbe1d0af1f9d166c36377997c42817a022b7ecf2d748b0968b1add798eebaae9eb3c8be05308e3a7d10b398586a2e270a521ca6aee
|
7
|
+
data.tar.gz: 88ab0b89711ad811dacc169dedbce78d4bba68c542fab6a6c68a97e5506482de4628c5951054f6539e752fc395278494308088de9c90a7a58e6cf47e05283ef4
|
data/Manifest.txt
CHANGED
@@ -2,7 +2,9 @@ CHANGELOG.md
|
|
2
2
|
Manifest.txt
|
3
3
|
README.md
|
4
4
|
Rakefile
|
5
|
-
config/spritesheet.csv
|
6
|
-
config/spritesheet.png
|
5
|
+
config/spritesheet-24x24.csv
|
6
|
+
config/spritesheet-24x24.png
|
7
|
+
config/spritesheet-42x42.csv
|
8
|
+
config/spritesheet-42x42.png
|
7
9
|
lib/moonbirds.rb
|
8
10
|
lib/moonbirds/version.rb
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/pixelartexchange/originals) Presents
|
2
2
|
|
3
|
-
# Moonbirds (Pixel Owls 'n' Friends)
|
3
|
+
# Moonbirds & Lil' Moonbirdies (Pixel Owls 'n' Friends)
|
4
4
|
|
5
|
-
Yes, you can! Generate your own 42×42 pixel owl images (off chain) from text attributes (via built-in
|
5
|
+
Yes, you can! Generate your own 42×42 (or lil' 24×24) pixel owl images (off chain) from text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and more
|
6
6
|
|
7
7
|
|
8
8
|
|
@@ -16,6 +16,8 @@ Yes, you can! Generate your own 42×42 pixel owl images (off chain) from text at
|
|
16
16
|
|
17
17
|
## Usage
|
18
18
|
|
19
|
+
**42×42px**
|
20
|
+
|
19
21
|
Let's generate some super-rare never-before-seen
|
20
22
|
moonbirds (pixel owls):
|
21
23
|
|
@@ -134,9 +136,98 @@ In 4x:
|
|
134
136
|
|
135
137
|
And so on.
|
136
138
|
|
137
|
-
|
139
|
+
|
140
|
+
**24×24px**
|
141
|
+
|
142
|
+
Let's generate some super-rare never-before-seen
|
143
|
+
lil' moonbirdies (pixel owls):
|
144
|
+
|
145
|
+
```ruby
|
146
|
+
########
|
147
|
+
# Moonbirdie No. 1
|
148
|
+
birdie = Moonbirdie::Image.generate( "Tabby Brown",
|
149
|
+
"Small Orange",
|
150
|
+
"Open White" )
|
151
|
+
birdie.save( "moonbirdie1.png" )
|
152
|
+
birdie.zoom( 4 ).save( "moonbirdie1@4x.png" )
|
153
|
+
|
154
|
+
# let's add 3D Glasses
|
155
|
+
birdie = Moonbirdie::Image.generate( "Tabby Brown",
|
156
|
+
"Small Orange",
|
157
|
+
"Open White",
|
158
|
+
"3D Glasses" )
|
159
|
+
birdie.save( "moonbirdie1b.png" )
|
160
|
+
birdie.zoom( 4 ).save( "moonbirdie1b@4x.png" )
|
161
|
+
```
|
162
|
+
|
163
|
+
Voila!
|
164
|
+
|
165
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie1.png)
|
166
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie1b.png)
|
167
|
+
|
168
|
+
In 4x:
|
169
|
+
|
170
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie1@4x.png)
|
171
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie1b@4x.png)
|
172
|
+
|
173
|
+
|
174
|
+
```ruby
|
175
|
+
###
|
176
|
+
# Moonbirdie No. 2
|
177
|
+
birdie = Moonbirdie::Image.generate( "Professor Golden",
|
178
|
+
"Small Golden",
|
179
|
+
"Open Golden" )
|
180
|
+
birdie.zoom( 4 ).save( "moonbirdie2@4x.png" )
|
181
|
+
|
182
|
+
# let's add Beanie
|
183
|
+
birdie = Moonbirdie::Image.generate( "Crescent Golden",
|
184
|
+
"Small Golden",
|
185
|
+
"Open Golden",
|
186
|
+
"Beanie" )
|
187
|
+
birdie.zoom( 4 ).save( "moonbirdie2b@4x.png" )
|
188
|
+
```
|
189
|
+
|
190
|
+
Voila!
|
191
|
+
|
192
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie2.png)
|
193
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie2b.png)
|
194
|
+
|
195
|
+
In 4x:
|
196
|
+
|
197
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie2@4x.png)
|
198
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie2b@4x.png)
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
```ruby
|
203
|
+
###
|
204
|
+
# Moonbirdie No. 3
|
205
|
+
birdie = Moonbirdie::Image.generate( "Ruby Skeleton", "Small Ruby", "Moon", "Lincoln" )
|
206
|
+
birdie.zoom( 4 ).save( "moonbirdie@4x.png" )
|
207
|
+
|
208
|
+
# let's add a red background
|
209
|
+
birdie = birdie.background( 'ukraine' )
|
210
|
+
birdie.zoom( 4 ).save( "moonbirdie3b@4x.png" )
|
211
|
+
```
|
212
|
+
|
213
|
+
Voila!
|
214
|
+
|
215
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie3.png)
|
216
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie3b.png)
|
217
|
+
|
218
|
+
In 4x:
|
219
|
+
|
220
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie3@4x.png)
|
221
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie3b@4x.png)
|
222
|
+
|
223
|
+
|
224
|
+
And so on.
|
225
|
+
|
226
|
+
|
138
227
|
|
139
228
|
|
229
|
+
### Bonus - Look-Up Attributes (Via Built-In Spritesheet)
|
230
|
+
|
140
231
|
Let's look-up some attributes:
|
141
232
|
|
142
233
|
```ruby
|
@@ -175,15 +266,25 @@ And so on.
|
|
175
266
|
|
176
267
|
|
177
268
|
|
178
|
-
## Appendix - All Built-In Spritesheet Attributes
|
269
|
+
## Appendix - All Built-In Spritesheet Attributes
|
270
|
+
|
271
|
+
**42×42px**
|
272
|
+
|
273
|
+
See the [spritesheet-42x42.csv](https://github.com/pixelartexchange/pixelart/blob/master/moonbirds/config/spritesheet-42x42.csv) dataset for all attribute names (w/ categories).
|
274
|
+
|
275
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/config/spritesheet-42x42.png)
|
276
|
+
|
277
|
+
(Source: [moonbirds/spritesheet-42x42.png](https://github.com/pixelartexchange/pixelart/blob/master/moonbirds/config/spritesheet-42x42.png))
|
278
|
+
|
179
279
|
|
180
|
-
See the [spritesheet.csv](https://github.com/pixelartexchange/pixelart/blob/master/moonbirds/config/spritesheet.csv) dataset for all attribute names (w/ categories).
|
181
280
|
|
182
|
-
|
281
|
+
**Lil' 24×24px**
|
183
282
|
|
184
|
-
|
283
|
+
See the [spritesheet-24x24.csv](https://github.com/pixelartexchange/pixelart/blob/master/moonbirds/config/spritesheet-24x24.csv) dataset for all attribute names (w/ categories).
|
185
284
|
|
285
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/config/spritesheet-24x24.png)
|
186
286
|
|
287
|
+
(Source: [moonbirds/spritesheet-24x24.png](https://github.com/pixelartexchange/pixelart/blob/master/moonbirds/config/spritesheet-24x24.png))
|
187
288
|
|
188
289
|
|
189
290
|
|
data/Rakefile
CHANGED
@@ -11,9 +11,9 @@ end
|
|
11
11
|
|
12
12
|
Hoe.spec 'moonbirds' do
|
13
13
|
|
14
|
-
self.version = Moonbirds::VERSION
|
14
|
+
self.version = Pixelart::Module::Moonbirds::VERSION
|
15
15
|
|
16
|
-
self.summary = "moonbirds - generate your own 42×42 pixel owl images (off chain) from text attributes (via built-in
|
16
|
+
self.summary = "moonbirds - generate your own 42×42 (or lil' 24×24) pixel owl images (off chain) from text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and more"
|
17
17
|
self.description = summary
|
18
18
|
|
19
19
|
self.urls = { home: 'https://github.com/pixelartexchange/pixelart' }
|
@@ -0,0 +1,222 @@
|
|
1
|
+
id, name, type, more_names
|
2
|
+
0, brave-black, ?,
|
3
|
+
1, brave-blue, ?,
|
4
|
+
2, brave-brown, ?,
|
5
|
+
3, brave-gray, ?,
|
6
|
+
4, brave-green, ?,
|
7
|
+
5, brave-pink, ?,
|
8
|
+
6, brave-purple, ?,
|
9
|
+
7, brave-red, ?,
|
10
|
+
8, brave-white, ?,
|
11
|
+
9, crescent-black, ?,
|
12
|
+
10, crescent-blue, ?,
|
13
|
+
11, crescent-brown, ?,
|
14
|
+
12, crescent-gray, ?,
|
15
|
+
13, crescent-green, ?,
|
16
|
+
14, crescent-pink, ?,
|
17
|
+
15, crescent-purple, ?,
|
18
|
+
16, crescent-red, ?,
|
19
|
+
17, crescent-white, ?,
|
20
|
+
18, emperor-black, ?,
|
21
|
+
19, emperor-blue, ?,
|
22
|
+
20, emperor-brown, ?,
|
23
|
+
21, emperor-gray, ?,
|
24
|
+
22, emperor-green, ?,
|
25
|
+
23, emperor-pink, ?,
|
26
|
+
24, emperor-purple, ?,
|
27
|
+
25, emperor-red, ?,
|
28
|
+
26, emperor-white, ?,
|
29
|
+
27, guardian-black, ?,
|
30
|
+
28, guardian-blue, ?,
|
31
|
+
29, guardian-brown, ?,
|
32
|
+
30, guardian-gray, ?,
|
33
|
+
31, guardian-green, ?,
|
34
|
+
32, guardian-pink, ?,
|
35
|
+
33, guardian-purple, ?,
|
36
|
+
34, guardian-red, ?,
|
37
|
+
35, guardian-white, ?,
|
38
|
+
36, professor-black, ?,
|
39
|
+
37, professor-blue, ?,
|
40
|
+
38, professor-brown, ?,
|
41
|
+
39, professor-gray, ?,
|
42
|
+
40, professor-green, ?,
|
43
|
+
41, professor-pink, ?,
|
44
|
+
42, professor-purple, ?,
|
45
|
+
43, professor-red, ?,
|
46
|
+
44, professor-white, ?,
|
47
|
+
45, sage-black, ?,
|
48
|
+
46, sage-blue, ?,
|
49
|
+
47, sage-brown, ?,
|
50
|
+
48, sage-gray, ?,
|
51
|
+
49, sage-green, ?,
|
52
|
+
50, sage-pink, ?,
|
53
|
+
51, sage-purple, ?,
|
54
|
+
52, sage-red, ?,
|
55
|
+
53, sage-white, ?,
|
56
|
+
54, stark-black, ?,
|
57
|
+
55, stark-blue, ?,
|
58
|
+
56, stark-brown, ?,
|
59
|
+
57, stark-gray, ?,
|
60
|
+
58, stark-green, ?,
|
61
|
+
59, stark-pink, ?,
|
62
|
+
60, stark-purple, ?,
|
63
|
+
61, stark-red, ?,
|
64
|
+
62, stark-white, ?,
|
65
|
+
63, tabby-black, ?,
|
66
|
+
64, tabby-blue, ?,
|
67
|
+
65, tabby-brown, ?,
|
68
|
+
66, tabby-gray, ?,
|
69
|
+
67, tabby-green, ?,
|
70
|
+
68, tabby-pink, ?,
|
71
|
+
69, tabby-purple, ?,
|
72
|
+
70, tabby-red, ?,
|
73
|
+
71, tabby-white, ?,
|
74
|
+
72, tranquil-black, ?,
|
75
|
+
73, tranquil-blue, ?,
|
76
|
+
74, tranquil-brown, ?,
|
77
|
+
75, tranquil-gray, ?,
|
78
|
+
76, tranquil-green, ?,
|
79
|
+
77, tranquil-pink, ?,
|
80
|
+
78, tranquil-purple, ?,
|
81
|
+
79, tranquil-red, ?,
|
82
|
+
80, tranquil-white, ?,
|
83
|
+
81, brave-golden, ?,
|
84
|
+
82, crescent-golden, ?,
|
85
|
+
83, emperor-golden, ?,
|
86
|
+
84, guardian-golden, ?,
|
87
|
+
85, professor-golden, ?,
|
88
|
+
86, sage-golden, ?,
|
89
|
+
87, stark-golden, ?,
|
90
|
+
88, tabby-golden, ?,
|
91
|
+
89, tranquil-golden, ?,
|
92
|
+
90, ruby_skeleton, ?,
|
93
|
+
91, skeleton, ?,
|
94
|
+
92, robot, ?,
|
95
|
+
93, long orange, ?,
|
96
|
+
94, short orange, ?,
|
97
|
+
95, small orange, ?,
|
98
|
+
96, long golden, ?,
|
99
|
+
97, short golden, ?,
|
100
|
+
98, small golden, ?,
|
101
|
+
99, long ruby, ?,
|
102
|
+
100, short ruby, ?,
|
103
|
+
101, small ruby, ?,
|
104
|
+
102, long skeleton, ?,
|
105
|
+
103, short skeleton, ?,
|
106
|
+
104, small skeleton, ?,
|
107
|
+
105, long robot, ?,
|
108
|
+
106, short robot, ?,
|
109
|
+
107, small robot, ?,
|
110
|
+
108, angry-blue, ?,
|
111
|
+
109, angry-gray, ?,
|
112
|
+
110, angry-green, ?,
|
113
|
+
111, angry-purple, ?,
|
114
|
+
112, angry-red, ?,
|
115
|
+
113, angry-white, ?,
|
116
|
+
114, angry-yellow, ?,
|
117
|
+
115, discerning-blue, ?,
|
118
|
+
116, discerning-gray, ?,
|
119
|
+
117, discerning-green, ?,
|
120
|
+
118, discerning-purple, ?,
|
121
|
+
119, discerning-red, ?,
|
122
|
+
120, discerning-white, ?,
|
123
|
+
121, discerning-yellow, ?,
|
124
|
+
122, open-blue, ?,
|
125
|
+
123, open-gray, ?,
|
126
|
+
124, open-green, ?,
|
127
|
+
125, open-purple, ?,
|
128
|
+
126, open-red, ?,
|
129
|
+
127, open-white, ?,
|
130
|
+
128, open-yellow, ?,
|
131
|
+
129, relaxed-blue, ?,
|
132
|
+
130, relaxed-gray, ?,
|
133
|
+
131, relaxed-green, ?,
|
134
|
+
132, relaxed-purple, ?,
|
135
|
+
133, relaxed-red, ?,
|
136
|
+
134, relaxed-white, ?,
|
137
|
+
135, relaxed-yellow, ?,
|
138
|
+
136, side_eye-blue, ?,
|
139
|
+
137, side_eye-gray, ?,
|
140
|
+
138, side_eye-green, ?,
|
141
|
+
139, side_eye-purple, ?,
|
142
|
+
140, side_eye-red, ?,
|
143
|
+
141, side_eye-white, ?,
|
144
|
+
142, side_eye-yellow, ?,
|
145
|
+
143, adorable, ?,
|
146
|
+
144, diamonds, ?,
|
147
|
+
145, moon, ?,
|
148
|
+
146, rainbow, ?,
|
149
|
+
147, angry-golden, ?,
|
150
|
+
148, discerning-golden, ?,
|
151
|
+
149, open-golden, ?,
|
152
|
+
150, relaxed-golden, ?,
|
153
|
+
151, side_eye-golden, ?,
|
154
|
+
152, angry-ruby, ?,
|
155
|
+
153, angry-skeleton, ?,
|
156
|
+
154, discerning-ruby, ?,
|
157
|
+
155, discerning-skeleton, ?,
|
158
|
+
156, open-ruby, ?,
|
159
|
+
157, open-skeleton, ?,
|
160
|
+
158, relaxed-ruby, ?,
|
161
|
+
159, relaxed-skeleton, ?,
|
162
|
+
160, side_eye-ruby, ?,
|
163
|
+
161, side_eye-skeleton, ?,
|
164
|
+
162, angry-robot, ?,
|
165
|
+
163, discerning-robot, ?,
|
166
|
+
164, open-robot, ?,
|
167
|
+
165, relaxed-robot, ?,
|
168
|
+
166, side_eye-robot, ?,
|
169
|
+
167, 3d_glasses, ?,
|
170
|
+
168, aviators, ?,
|
171
|
+
169, big_tech, ?,
|
172
|
+
170, black_rimed_glasses, ?,
|
173
|
+
171, eye_patch, ?,
|
174
|
+
172, gazelles, ?,
|
175
|
+
173, jobs_glasses, ?,
|
176
|
+
174, monocle, ?,
|
177
|
+
175, rose_colored_glasses, ?,
|
178
|
+
176, sunglasses, ?,
|
179
|
+
177, visor, ?,
|
180
|
+
178, aviators_cap, ?,
|
181
|
+
179, backwards_hat, ?,
|
182
|
+
180, bandana, ?,
|
183
|
+
181, beanie, ?,
|
184
|
+
182, bow, ?,
|
185
|
+
183, bucket_hat, ?,
|
186
|
+
184, captains_cap, ?,
|
187
|
+
185, chromie, ?,
|
188
|
+
186, cowboy_hat, ?,
|
189
|
+
187, crescent, ?,
|
190
|
+
188, dancing_flame, ?,
|
191
|
+
189, diamond, ?,
|
192
|
+
190, duck, ?,
|
193
|
+
191, durag, ?,
|
194
|
+
192, fire, ?,
|
195
|
+
193, flower, ?,
|
196
|
+
194, forest_ranger, ?,
|
197
|
+
195, grail, ?,
|
198
|
+
196, green_mohawk, ?,
|
199
|
+
197, gremplin, ?,
|
200
|
+
198, halo, ?,
|
201
|
+
199, headband, ?,
|
202
|
+
200, heros_cap, ?,
|
203
|
+
201, karate_band, ?,
|
204
|
+
202, lincoln, ?,
|
205
|
+
203, moon_hat, ?,
|
206
|
+
204, pink_mohawk, ?,
|
207
|
+
205, pirates_hat, ?,
|
208
|
+
206, queens_crown, ?,
|
209
|
+
207, rain, ?,
|
210
|
+
208, skully, ?,
|
211
|
+
209, space_helmet, ?,
|
212
|
+
210, tiara, ?,
|
213
|
+
211, tiny_crown, ?,
|
214
|
+
212, witchs_hat, ?,
|
215
|
+
213, wizards_hat, ?,
|
216
|
+
214, bomber_jacket, ?,
|
217
|
+
215, diamond_necklace, ?,
|
218
|
+
216, gold_chain, ?,
|
219
|
+
217, heros_tunic, ?,
|
220
|
+
218, hoodie_down, ?,
|
221
|
+
219, jean_jacket, ?,
|
222
|
+
220, punk_jacket, ?,
|
Binary file
|
File without changes
|
File without changes
|
data/lib/moonbirds/version.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
|
2
|
-
|
2
|
+
module Pixelart
|
3
|
+
module Module
|
3
4
|
module Moonbirds
|
4
5
|
|
5
6
|
MAJOR = 1
|
6
|
-
MINOR =
|
7
|
-
PATCH =
|
7
|
+
MINOR = 1
|
8
|
+
PATCH = 0
|
8
9
|
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
9
10
|
|
10
11
|
def self.version
|
@@ -19,5 +20,8 @@ module Moonbirds
|
|
19
20
|
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
|
20
21
|
end
|
21
22
|
|
23
|
+
|
22
24
|
end # module Moonbirds
|
25
|
+
end # module Module
|
26
|
+
end # module Pixelart
|
23
27
|
|
data/lib/moonbirds.rb
CHANGED
@@ -9,12 +9,12 @@ require 'moonbirds/version' # note: let version always go first
|
|
9
9
|
|
10
10
|
|
11
11
|
|
12
|
-
module
|
12
|
+
module Moonbird
|
13
13
|
|
14
14
|
class Spritesheet ## note: for now class used for "namespace" only
|
15
15
|
def self.builtin ### check: use a different name e.g. default,standard,base or such - why? why not?
|
16
|
-
@sheet ||= Pixelart::Spritesheet.read( "#{Moonbirds.root}/config/spritesheet.png",
|
17
|
-
"#{Moonbirds.root}/config/spritesheet.csv",
|
16
|
+
@sheet ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Moonbirds.root}/config/spritesheet-42x42.png",
|
17
|
+
"#{Pixelart::Module::Moonbirds.root}/config/spritesheet-42x42.csv",
|
18
18
|
width: 42,
|
19
19
|
height: 42 )
|
20
20
|
end
|
@@ -31,7 +31,7 @@ module Moonbirds
|
|
31
31
|
|
32
32
|
class Image < Pixelart::Image
|
33
33
|
def self.generator
|
34
|
-
@generator ||= Artfactory.use(
|
34
|
+
@generator ||= Artfactory.use( Moonbird::Sheet.builtin,
|
35
35
|
image_class: Image )
|
36
36
|
end
|
37
37
|
|
@@ -39,18 +39,58 @@ module Moonbirds
|
|
39
39
|
generator.generate( *names )
|
40
40
|
end
|
41
41
|
end # class Image
|
42
|
-
end # module
|
42
|
+
end # module Moonbird
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
module Moonbirdie
|
47
|
+
|
48
|
+
class Spritesheet ## note: for now class used for "namespace" only
|
49
|
+
def self.builtin ### check: use a different name e.g. default,standard,base or such - why? why not?
|
50
|
+
@sheet ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Moonbirds.root}/config/spritesheet-24x24.png",
|
51
|
+
"#{Pixelart::Module::Moonbirds.root}/config/spritesheet-24x24.csv",
|
52
|
+
width: 24,
|
53
|
+
height: 24 )
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.find_by( name: ) ## return archetype/attribute image by name
|
57
|
+
builtin.find_by( name: name )
|
58
|
+
end
|
59
|
+
end # class Spritesheet
|
60
|
+
## add convenience (alternate spelling) alias - why? why not?
|
61
|
+
SpriteSheet = Spritesheet
|
62
|
+
Sheet = Spritesheet
|
63
|
+
Sprite = Spritesheet
|
64
|
+
|
65
|
+
|
66
|
+
class Image < Pixelart::Image
|
67
|
+
def self.generator
|
68
|
+
@generator ||= Artfactory.use( Moonbirdie::Sheet.builtin,
|
69
|
+
image_class: Image )
|
70
|
+
end
|
71
|
+
|
72
|
+
def self.generate( *names )
|
73
|
+
generator.generate( *names )
|
74
|
+
end
|
75
|
+
end # class Image
|
76
|
+
end # module Moonbirdie
|
43
77
|
|
44
78
|
|
45
79
|
|
46
80
|
### add some convenience shortcuts
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
Moonbird = Moonbirds
|
51
|
-
MoonBird = Moonbirds
|
52
|
-
Bird = Moonbirds
|
81
|
+
MoonBird = Moonbird
|
82
|
+
Bird = Moonbird
|
83
|
+
|
53
84
|
|
85
|
+
## add singular too -why? why not?
|
86
|
+
LilMoonBirdie = Moonbirdie
|
87
|
+
LilMoonbirdie = Moonbirdie
|
88
|
+
Lilmoonbirdie = Moonbirdie
|
89
|
+
MoonBirdie = Moonbirdie
|
90
|
+
Birdie = Moonbirdie
|
91
|
+
LilBirdie = Moonbirdie
|
92
|
+
Lilbirdie = Moonbirdie
|
93
|
+
Burd = Moonbirdie
|
54
94
|
|
55
95
|
|
56
96
|
|
@@ -60,4 +100,4 @@ include Pixelart
|
|
60
100
|
|
61
101
|
|
62
102
|
|
63
|
-
puts Moonbirds.banner # say hello
|
103
|
+
puts Pixelart::Module::Moonbirds.banner # say hello
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moonbirds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.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-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pixelart
|
@@ -86,9 +86,9 @@ dependencies:
|
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '3.23'
|
89
|
-
description: moonbirds - generate your own 42×42 pixel owl images
|
90
|
-
text attributes (via built-in
|
91
|
-
and more
|
89
|
+
description: moonbirds - generate your own 42×42 (or lil' 24×24) pixel owl images
|
90
|
+
(off chain) from text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom
|
91
|
+
for bigger sizes and more
|
92
92
|
email: wwwmake@googlegroups.com
|
93
93
|
executables: []
|
94
94
|
extensions: []
|
@@ -101,8 +101,10 @@ files:
|
|
101
101
|
- Manifest.txt
|
102
102
|
- README.md
|
103
103
|
- Rakefile
|
104
|
-
- config/spritesheet.csv
|
105
|
-
- config/spritesheet.png
|
104
|
+
- config/spritesheet-24x24.csv
|
105
|
+
- config/spritesheet-24x24.png
|
106
|
+
- config/spritesheet-42x42.csv
|
107
|
+
- config/spritesheet-42x42.png
|
106
108
|
- lib/moonbirds.rb
|
107
109
|
- lib/moonbirds/version.rb
|
108
110
|
homepage: https://github.com/pixelartexchange/pixelart
|
@@ -129,7 +131,7 @@ requirements: []
|
|
129
131
|
rubygems_version: 3.3.7
|
130
132
|
signing_key:
|
131
133
|
specification_version: 4
|
132
|
-
summary: moonbirds - generate your own 42×42 pixel owl images (off
|
133
|
-
attributes (via built-in
|
134
|
-
more
|
134
|
+
summary: moonbirds - generate your own 42×42 (or lil' 24×24) pixel owl images (off
|
135
|
+
chain) from text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for
|
136
|
+
bigger sizes and more
|
135
137
|
test_files: []
|