Tag Archives: JavaScript

A Simple Discrete-Event Simulation: Part 1

Some months ago I discussed some internal features of a discrete-event simulation. My next series of exercises and ruminations will proceed toward building one in JavaScript, using the simple pseudo-construct I outlined in the linked post. I’ll start with the … Continue reading

Posted in Software | Tagged , | Leave a comment

Hello, Fort Nelson, BC

Couple of things to report. One, the simulations of maintenance logistics I worked on with RTR Technologies, while working on and with the Aircraft Maintenance Model, incorporated a number of concepts. Many of these were defined in the NAMP (Naval … Continue reading

Posted in Tools and methods | Tagged , , , | Leave a comment

Hello, Fort St. John, BC

I’m getting to spend some quality time in Fort St. John, BC, only three hours from today’s starting point in Manning, AB. It wasn’t unexpected, having spent a lot of time simulating scheduled and unscheduled maintenance procedures. The stuff that … Continue reading

Posted in Software | Tagged , , , | Leave a comment

Reproducing A Clever Animation Product, Part 26

I got the basics of the fountain effect working. I defined forty elements, gave them random characteristics in a loop, set a delay of 1.5 seconds from the end of the previous animation element, then set the forty elements to … Continue reading

Posted in Tools and methods | Tagged , , | Leave a comment

Reproducing A Clever Animation Product, Part 25

I sat down to add in the mods that would allow me to reproduce the fountain effect I’ve described, building on yesterday’s work, and immediately identified some issues. Those will have to be sorted out before proceeding. The animation capability … Continue reading

Posted in Tools and methods | Tagged , , | Leave a comment

Reproducing A Clever Animation Product, Part 24

Today I added a new effect and applied it to a top tween that makes up the latest addition to the animation. The effect is based on this equation from the first class you take in physics: x = xo … Continue reading

Posted in Tools and methods | Tagged , , | Leave a comment

Reproducing A Clever Animation Product, Part 23

Today I changed the form of specifying a tween effect. It was originally specified as a string (e.g., “linear” or “vibrate_right”) but now it is defined as an object literal. The first member field of the object has to be … Continue reading

Posted in Tools and methods | Tagged , , | Leave a comment

Reproducing A Clever Animation Product, Part 22

I want to make the handling of the mMethod parameter in the bcDefineWhateverTween function more flexible and modular. As you can see in the code below, the parsing of the different types of methods or applied effects has to be … Continue reading

Posted in Tools and methods | Tagged , , | Leave a comment

Reproducing A Clever Animation Product, Part 21

The last subject I wanted to explore was animation effects, which is to say defining tweens that proceed from beginning to end in a fashion that is other than linear, which is the default I’ve been using to this point. … Continue reading

Posted in Tools and methods | Tagged , , | Leave a comment

Reproducing A Clever Animation Product, Part 20

Today I added the capability of adding a rotation tween, which I applied to a fourth element at the end of the previous animation. The tween definition is here:

Here’s the code added to handle rotations in the addTransformToList … Continue reading

Posted in Tools and methods | Tagged , , | Leave a comment