Permalink
Browse files

Timing

  • Loading branch information...
1 parent 0283e3f commit 49ffff077a594a97c61a4174ca392066eda95acf @leegee committed Nov 6, 2012
Showing with 10 additions and 7 deletions.
  1. +2 −3 Demo/index.html
  2. +8 −4 Source/PcmImage.js
View
@@ -63,7 +63,6 @@
</head>
<body>
-
<header>
<h1>PcmImage for MooTools / HTML5</h1>
</header>
@@ -117,7 +116,7 @@
with an <code>img</code> element, which results in
the loss of the dynamic overlay.
</p>
-
+
<!--
<figure>
<figcaption>
@@ -130,7 +129,7 @@
></div>
</figure>
-->
-
+
<figure>
<figcaption>
<p>HTML default, style from class:</p>
View
@@ -296,11 +296,15 @@ var PcmImage = new Class({
this.overlay.lastX = this.overlay.inc * -1;
this.overlay.thisX = 0;
- this.overlay.inc /= 1.8; // nearly
+ // Why? What's wrong with my maths?
+ this.overlay.inc /= 1.666666666666; // nearly
- //console.log( this.width );
- //console.log( this.buffer.duration * 1000);
- //console.log( this.overlay.inc * this.overlayInterval);
+ /*
+ console.log( 'width '+this.width );
+ console.log( 'duration '+(this.buffer.duration * 1000));
+ console.log( this.overlay.inc +' * '+ this.overlayInterval +' = ');
+ console.log( this.overlayInterval * this.overlay.inc );
+ */
this.renderTimer = this.overlayImg.periodical(
this.overlayInterval,

0 comments on commit 49ffff0

Please sign in to comment.