-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathstarbucks.rb
108 lines (75 loc) · 3.08 KB
/
starbucks.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#####
# to run use:
# $ ruby moonbirds/starbucks.rb
require 'pixelart'
moonbirds = ImageComposite.new( 5, 3, width: 42, height: 42 )
starbucks = Image.read( './fastfoodmoonbirds-iii/attributes/headwear/starbucks.png' )
starbucks_hat = Image.read( './fastfoodmoonbirds/attributes/headwear/starbucks_hat.png')
starbucks_apron1 = Image.read( './fastfoodmoonbirds-iii/attributes/outerwear/starbucks_apron.png')
starbucks_apron2 = Image.read( './fastfoodmoonbirds/attributes/outfit/starbucks_apron.png')
coffee_boy = Image.read( './fastfoodmoonbirds-iii/attributes/headwear/coffee_boy.png')
_3d_glasses = Image.read( './moonbirds/attributes/eyewear/3d_glasses.png' )
sunglasses = Image.read( './moonbirds/attributes/eyewear/sunglasses.png' )
# black_rimmed_glasses = Image.read( './moonbirds/attributes/eyewear/black-rimmed_glasses.png' )
# visor = Image.read( './moonbirds/attributes/eyewear/visor.png' )
# gazelles = Image.read( './moonbirds/attributes/eyewear/gazelles.png' )
# rose_colored_glasses = Image.read( './moonbirds/attributes/eyewear/rose-colored_glasses.png' )
## first row - add "nacked" attributes
moonbirds << starbucks
moonbirds << starbucks_hat
moonbirds << starbucks_apron1
moonbirds << starbucks_apron2
moonbirds << coffee_boy
base = Image.read( './moonbirds/42x42/2404.png' )
base = base.transparent
## second row
moonbird = Image.new( 42, 42, '#046241' )
moonbird.compose!( base )
moonbird.compose!( starbucks )
moonbirds << moonbird
moonbird = Image.new( 42, 42, '#046241' )
moonbird.compose!( base )
moonbird.compose!( starbucks_hat )
moonbirds << moonbird
moonbird = Image.new( 42, 42, '#046241' )
moonbird.compose!( base )
moonbird.compose!( starbucks_apron1 )
moonbirds << moonbird
moonbird = Image.new( 42, 42, '#046241' )
moonbird.compose!( base )
moonbird.compose!( starbucks_apron2 )
moonbirds << moonbird
moonbird = Image.new( 42, 42, '#046241' )
moonbird.compose!( base )
moonbird.compose!( coffee_boy )
moonbirds << moonbird
## third row
moonbird = Image.new( 42, 42, '#1A3C34' )
moonbird.compose!( base )
moonbird.compose!( starbucks )
moonbird.compose!( starbucks_apron1 )
moonbirds << moonbird
moonbird = Image.new( 42, 42, '#046241' )
moonbird.compose!( base )
moonbird.compose!( starbucks_hat )
moonbird.compose!( starbucks_apron2 )
moonbirds << moonbird
moonbird = Image.new( 42, 42, '#00754A' )
moonbird.compose!( base )
moonbird.compose!( starbucks )
moonbird.compose!( starbucks_apron1 )
moonbird.compose!( sunglasses )
moonbirds << moonbird
moonbird = Image.new( 42, 42, '#02A178' )
moonbird.compose!( base )
moonbird.compose!( starbucks_hat )
moonbird.compose!( starbucks_apron2 )
moonbird.compose!( _3d_glasses )
moonbirds << moonbird
moonbird = Image.new( 42, 42, 'red' )
moonbird.compose!( base )
moonbird.compose!( coffee_boy )
moonbird.compose!( starbucks_apron1 )
moonbirds << moonbird.mirror
moonbirds.save( "./tmp/moonbirds-starbucks.png" )
moonbirds.zoom(4).save( "./tmp/[email protected]" )