-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmint.rb
57 lines (37 loc) · 1.47 KB
/
mint.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
###
# to run use:
# ruby ./mint.rb
require 'mooncats'
meta = Mooncats::Metadata.new( '0x00000800fa' )
pp meta.genesis?
pp meta.design.to_i
pp meta.design.pose
pp meta.design.facing
pp meta.design.face
pp meta.design.fur
pp meta.invert?
pp meta.rgb
meta = Mooncats::Metadata.new( '0x0077c8278d' )
pp meta.genesis?
pp meta.design.to_i
pp meta.design.pose
pp meta.design.facing
pp meta.design.face
pp meta.design.fur
pp meta.invert?
pp meta.rgb
Mooncats::Image.mint( '0x00000800fa' ).save( 'i/mooncat-00000800fa.png' )
Mooncats::Image.mint( '0x0077c8278d' ).save( 'i/mooncat-0077c8278d.png' )
Mooncats::Image.mint( '0xff5f000ca7' ).save( 'i/mooncat-ff5f000ca7.png' )
# use x2:
Mooncats::Image.mint( '0x00000800fa' ).zoom( 2 ).save( 'i/mooncat-00000800fa_x2.png' )
Mooncats::Image.mint( '0x0077c8278d' ).zoom( 2 ).save( 'i/mooncat-0077c8278d_x2.png' )
Mooncats::Image.mint( '0xff5f000ca7' ).zoom( 2 ).save( 'i/mooncat-ff5f000ca7_x2.png' )
# And x4:
Mooncats::Image.mint( '0x00000800fa' ).zoom( 4 ).save( 'i/mooncat-00000800fa_x4.png' )
Mooncats::Image.mint( '0x0077c8278d' ).zoom( 4 ).save( 'i/mooncat-0077c8278d_x4.png' )
Mooncats::Image.mint( '0xff5f000ca7' ).zoom( 4 ).save( 'i/mooncat-ff5f000ca7_x4.png' )
# And x8:
Mooncats::Image.mint( '0x00000800fa' ).zoom( 8 ).save( 'i/mooncat-00000800fa_x8.png' )
Mooncats::Image.mint( '0x0077c8278d' ).zoom( 8 ).save( 'i/mooncat-0077c8278d_x8.png' )
Mooncats::Image.mint( '0xff5f000ca7' ).zoom( 8 ).save( 'i/mooncat-ff5f000ca7_x8.png' )