Resources
Search
Archives
Categories
Meta
Author Archives: keith
JavaScript Day 11: Tools Part 2: Minification!
I just like the word “minification”. Anyway, here’s the deal. in ActionScript, and most other languages that go through some sort of compilation process, you write your code in source files and that human readable text gets distilled down into … Continue reading
Posted in JavaScript
6 Comments
JavaScript Day 10: Tools, Part 1
I wanted to cover a few tools for JavaScript coding as we go through this series. Today’s is JSLint. JSLint takes its name from an early program used by C programmers called “lint”. This tool searched through C source code, … Continue reading
Posted in JavaScript
3 Comments
JavaScript Day 9: Wrapping up WireLibJS internals
We’ll just run through the rest of the functions. [php lang=”JavaScript”]function rotateX(radians) { var i, j, p, y1, z1, line, cos = Math.cos(radians), sin = Math.sin(radians); for(i = 0; i < lines.length; i += 1) { line = lines[i]; for(j … Continue reading
Posted in JavaScript
1 Comment
JavaScript Day 8: More WireLibJS Internals
Just going to wrap up more of what’s in the WireLibJS library today. We’ve covered the basic architecture, but let’s look what it all does. First, the vars: [php lang=”JavaScript”]var canvas, context, width, height, lines = [], cx, cy, cz, … Continue reading
Posted in JavaScript
Leave a comment
JavaScript Day 7: Animation
Today, let’s talk about animating in JavaScript. Making things move! In Flash, there is the eternal battle of which is better, enterFrame or timer? In JavaScript, you have a timer. You don’t actually have a Timer class like you do … Continue reading
Posted in JavaScript
3 Comments
JavaScript Day 6: WireLibJS internals
Today I thought it would be interesting to take a look into the architecture of how WireLibJS is built. It may look a bit odd at first, so it’s worth going through it to understand a bit more of the … Continue reading
Posted in JavaScript
2 Comments
JavaScript Day 5: Writing Code
There’s a quote that I can’t quite remember, and that I attribute to one of the Gang of Four, but that may just be in my mind. Anyway, it goes along the lines of “buy cheap desks and expensive chairs.” … Continue reading
Posted in JavaScript
12 Comments
JavaScript Day 4 : Canvas Basics
I really only wanted to use my wirelib library as an example of JavaScript. It’s not my intention two write all month about that alone. So today I figured I’d cover the basics of how to get set up using … Continue reading
Posted in JavaScript
5 Comments
JavaScript Day 3
Today I just want to cover how to change the stroke of lines, both in WireLibJS and in Canvas itself. Really the same thing, since I just pass the values on from the lib to the canvas. The two properties … Continue reading
Posted in JavaScript
2 Comments
JavaScript Day 2
First a quick note. My intention on this series was to investigate something new, learn some new technology, and share it with others. I assumed that others might also be interested as well. I was really surprised to see comments … Continue reading
Posted in JavaScript
13 Comments