Tag Archives: canvas

Prettying Up the 3D Graph Output

Here I’ve prettied the graph up so the lines change color every 100 degrees F, and I’ve added a legend. I suppose I could choose consecutive colors with a bit more contrast.

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

Graphing the Matrix Output

Here I continually run the heating routine for a piece with an initial temperature of 70 degrees in a furnace set to 2300 degrees. The temperature scale, expressed vertically, runs from 0-2500 degrees. The bottom of the piece, which sits … Continue reading

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

Controlling the Animation

One way to pause a running animation is simply to inhibit the action as shown in the first example below, and based on the following code. As you can see, the window.requestAnimationFrame is still called, but setting the value of … Continue reading

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

More Basic Animation

Today I continued experimenting with the techniques I started using yesterday. I tried the exercise with filled circles and also after having placed additional objects on the screen. The only drawing modes that came close to supporting what I was … Continue reading

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

Beginnings of an Animation

I wrote various two- and three-dimensional animations for years and am looking into various aspects of the practice beginning here. I took a course in computer graphics during my senior year in college using Microsoft Pascal on first-generation IBM PCs … Continue reading

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

Adding to the Graphing Capabilities

As you saw yesterday in the figure below, I’ve added the ability to plot individual points on the graph rather than a continuous function. The x- and y- locations are determined independently by transforming a value to a pixel location … Continue reading

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

Steam Table Functions, Curve Fitting, and Yes, the Graph Project

I’m finally detouring back to fixing the handful of errant segments in the steam table functions I created for my simulation work in the early 90s. This graph, originally posted on March 16th, shows a hiccup in the segment from … Continue reading

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

Graph Project: Updated To Do List

At this point I need to change direction and get back to addressing the issues which led me to create the JavaScript graph object in the first place. I’ve got enough solid functionality in place to proceed, and I’ll add … Continue reading

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

Graph Project: Show or Hide Graph and Axis Labels

The figures below show that the graph and axis labels can be hidden or shown independently.

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

Graph Project: Auto-Sizing Works — The Hard Part, Part Two

Today’s work involved getting the plot area to size itself properly when the last major tick on an axis does not fall right at the end of the axis. It turned out to be just a bit complex and it … Continue reading

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