animation-studio 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA512:
3
- metadata.gz: 0fafbf2bdde6328a36404e7c7ca59881ab250e08a24568d0de26e0eaf7a73495818abe63910373e79b5fb0878390933f3841da1ac27852b32508bcc4191732b1
4
- data.tar.gz: 44f9a996e42e58214e43a5136a999ab7ea894d337f9f2248c3bcc3d0050c6ee61d6e2a90bbd3f56cd640c22cdfab0c248cd6e7878b8675472272f065880c2ea9
3
+ metadata.gz: 8ce6bb0ff3e0bbe64b9d04698643dca16ae41f2e12602e0856c005b20436627e6b96516bc781e6725ecbf7b50f7af150d4bb1770ad676d3527fe507603d791b8
4
+ data.tar.gz: 644b6a95cdcf8bf5f28f950e544c8c88f1e0b5cf85ee36f075bd5b50aedb58677f40599612c00270977d885ce9d3438b058b9b088166e6bd1825b3dafbf9a4f7
5
5
  SHA1:
6
- metadata.gz: 06dac712b5a4c85863837de786540c1b4a800b54
7
- data.tar.gz: 7be852a08a8bec58c9edbe12eea36fecba9c9e1e
6
+ metadata.gz: 15c080d3cfb4a396f965f48f7a91e5ef1503137f
7
+ data.tar.gz: 93b0df8764e13c77c5117d5a5169e13d1b4afed2
@@ -20,8 +20,8 @@ Compass::Frameworks.register('animation-studio', :stylesheets_directory => style
20
20
  # a prerelease version
21
21
  # Date is in the form of YYYY-MM-DD
22
22
  module AnimationStudio
23
- VERSION = "0.1.4"
24
- DATE = "2013-11-30"
23
+ VERSION = "0.1.5"
24
+ DATE = "2013-12-01"
25
25
  end
26
26
 
27
27
  # This is where any custom SassScript should be placed. The functions will be
@@ -68,9 +68,13 @@ $animation-sequence-extend: true !default;
68
68
  $sprite-path: sprite-path($sprite-map);
69
69
  $height: image-height($sprite-path);
70
70
  $frames: length(sprite-names($sprite-map));
71
- $frame-height: $height/$frames;
72
- $frame-position: percentage((($frame * ($frame-height)) - $frame-height + ($frame-height/$frame)) / $height);
73
71
 
72
+ // Find what the unit of increment is for each frame: 3 = 50%, 4 = 33%, 5 = 25% etc.
73
+ $frame-unit: percentage(1/($frames - 1));
74
+
75
+ // Then for the starting position, multiply that by the frame. For instance... 1 = 0%, 2 = 50%, 3 = 100%
76
+ $frame-position: $frame * $frame-unit;
77
+
74
78
  background: $sprite-map 0 $frame-position no-repeat;
75
79
 
76
80
  @if $generate-dimensions {
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
  gem 'sass', '>=3.2.3'
4
4
  gem 'compass', '>=0.13.alpha.4'
5
5
 
6
- gem 'Animation Studio', '~>0.1.4'
6
+ gem 'Animation Studio', '~>0.1.5'
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: animation-studio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Richard, Rachel Nabors
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2013-11-30 00:00:00 Z
12
+ date: 2013-12-01 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  type: :runtime
@@ -47,7 +47,11 @@ files:
47
47
  - templates/project/alice/alice-frightened_1.png
48
48
  - templates/project/alice/alice-frightened_2.png
49
49
  - templates/project/alice/awake.png
50
+ - templates/project/alice/curious.png
51
+ - templates/project/alice/sleeping.png
52
+ - templates/project/alice/sleepy.png
50
53
  - templates/project/alice-s70adcc6818.png
54
+ - templates/project/alice-sc050641834.png
51
55
  - templates/project/Gemfile.txt
52
56
  - templates/project/tuna-walk/tuna-walk_01.png
53
57
  - templates/project/tuna-walk/tuna-walk_02.png