Giter VIP home page Giter VIP logo

html5-animation's People

Contributors

lamberta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

html5-animation's Issues

Line of text in the book seems to be wrong on page 63.

Hello,

Your book is excellent, Thank You for writing it.
Books like yours have been my source of education for web development.

I just noticed a small thing on page 63 of the pdf file and thought I would bring it to your attention.

"Breaking that down, you get 36 + 64, or 100 = dist**2.

With some basic algebra, you can reduce that to .100 = dist.
/* I believe this sentence should be omitted */

And from that, you can easily figure out that the distance between the two objects is 10."

Thank You again for your work.

Jim

Advanced coordinate rotation: possible typo?

Hi Billy, great book.

On page 228, there's a couple of equations

x1 = (x-centerX) * cos(rotation) - (y-centerY) * sin(rotation)
y1 = (y-centerY) * cos(rotation) + (x-centerX) * sin(rotation)

I tried coding these up and it certainly rotates the point, but it is offset by (-centerX, -centerY)

Should the equations be these?

x1 = centerX + [(x-centerX) * cos(rotation) - (y-centerY) * sin(rotation)]
y1 = centerY + [(y-centerY) * cos(rotation) + (x-centerX) * sin(rotation)]

Cheers,

Ed

3d

nice works.

Ben Joff, 2006

Ch 8, Ex 11: Balls in front of lines?

[This question was sent to me via email, excerpts reposted here with permission.]

I have been playing with the code below [Chapter 8, Example 11] ... When the canvas renders the lines, they're on top of the balls, but in the example before (where an array is not used) the balls are drawn on top. I was trying to figure out how to draw the line underneath like the first example. Going through the code I am not sure where ballB gets defined. var ballA = balls[i-1]; defines ballA but how is ballB defined? Is it a key from the array? And if so why is ballA defined?
Thank you!
Peter

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.