Wednesday, January 24, 2018
Monday, January 22, 2018
Fighter Pilot
I decided to try my hand at creating a comic book for my grand-kids. My goal is to have 22 pages printed on my 11 by 17 printer so it folds to a standard 8-1/2 by 11 inch graphic novel.
I want to tell the story of my dad and his adventures during WWII. I hope to convey the challenges and accomplishments of the greatest generation to my grand-kids by telling stories about their family members. I hope they form a personal connection to history.
I have no idea how long this will take. I have a few pages almost done. This one is the first that seems to be coming together. I'm not much of an artist. So choosing colors and layout is a learning process. I'll probably change this page several more times before I am satisfied with it.
One of the planes my dad flew was the P47 fighter made by Republic Aircraft Co, in Long Island NY. But... his dad worked at Douglass Aircraft company in Ohio. My grandpa was not at all happy about his son flying a competitors plane.
I'm struggling with putting this whole story together and giving it a sense of adventure that will keep grand kids interested.
I suppose my own kids will find the story interesting and help the grand-kids learn a little history.
Below is not a page in the book. Just some of the scratch area in Image Composer that shows how I did the drawings and a couple of dads old 35mm slides that served as guides for my drawings.
Tuesday, November 14, 2017
Monday, October 30, 2017
What's a Moiré ?
When the moon hits your eye like a big pizza pie that's a Moiré.
- Dean Martin
Actually, Dean said "That's amore"
Amore is Italian for love.
Moiré is a more recent word that came into use around 1958 after we began using color TVs.

A moiré pattern is the result of drawing fine lines on two transparencies and moving one over the other.
Any time there are two repeating patterns they can interfere with each other.
On a color TV, fine lines can cause color moiré patters by interference with the rows and columns of red, green and blue dots. That is why newscasters wear solid ties, shirts and jackets, never pinstripes.
Fine lined repeating patterns displayed on a computer monitor interfere with the rows and columns of RGB dots.
Printers produce moiré patterns when the image interferes with the pattern the ink jet nozzles make when they pass in straight lines across the paper.
Moiré effects can be a bothersome side effect that ruins photos and video.
I recently decided to explore using patterns to create moiré effects in animated wallpapers.Here is one screen of notes from my experiments.
Simple moiré patterns can simulate waves on a lake, a waterfall, a flickering candle, or a forest fire.
In this case I wanted a hypnotic pattern on a sun.
The usual frame animation approach presents huge problems.
Consider a sun that is 300 pixels in diameter. That's 300 x 300 = 90,000 pixels.
We need three 8-bit bytes for each pixel so that is 24 bits times 90,000, or 2,160,000 bits.
So we need a little more than two megabits per frame.
At 30 frames per second for a pattern that lasts 15 seconds before it repeats, we need a total of 450 frames. Multiply 450 times 2,160,00 bits and get 97,200,000 bits, (12 megabytes)
Obviously, twelve megabytes of images being loaded from disk one frame at a time would kill the hard drive, or use up a lot of cache memory. If I load the entire set of frames into memory then the processor can put them on the screen one frame at a time. But, that uses up a lot of ram and 30 frames per second, the CPU has to move 8 MB per second into the display memory. Testing shows it uses about 9 percent of my CPU on my laptop. It can easily do it, but seems a total waste for a wallpaper.
Moiré to the rescue.
To create the moiré effect, I only need one 300x300 image. I display it twice, one on top of the other. Then 30 times a second., the CPU rotates the bottom image 1 degree. This requires almost no effort on the part of the CPU, The actual task of rendering the pattern is done by the GPUs in the video card.
By comparison, to the 9% CPU usage for the frame method, the task manager shows less than 1% CPU usage and a GPU usage increase to only 2% for the moiré effect.
Since most of the work is done by the video cards GPUs, this is called "Offloading" the work to the GPU to free up processor resources.
.... But is that what is really happening?
Here is the only image I loaded.
It is just straight lines.
There are NO curved lines
or hypnotic patterns.
Where did the pattern get rendered?
It was Offloaded to a neural network.
..... The organic one
..... between your ears.
- Dean Martin
Actually, Dean said "That's amore"
Amore is Italian for love.
Moiré is a more recent word that came into use around 1958 after we began using color TVs.

A moiré pattern is the result of drawing fine lines on two transparencies and moving one over the other.
Any time there are two repeating patterns they can interfere with each other.
On a color TV, fine lines can cause color moiré patters by interference with the rows and columns of red, green and blue dots. That is why newscasters wear solid ties, shirts and jackets, never pinstripes.
Fine lined repeating patterns displayed on a computer monitor interfere with the rows and columns of RGB dots.
Printers produce moiré patterns when the image interferes with the pattern the ink jet nozzles make when they pass in straight lines across the paper.
Moiré effects can be a bothersome side effect that ruins photos and video.
I recently decided to explore using patterns to create moiré effects in animated wallpapers.Here is one screen of notes from my experiments.
![]() |
| Click to enlarge |
In this case I wanted a hypnotic pattern on a sun.
The usual frame animation approach presents huge problems.
Consider a sun that is 300 pixels in diameter. That's 300 x 300 = 90,000 pixels.
We need three 8-bit bytes for each pixel so that is 24 bits times 90,000, or 2,160,000 bits.
So we need a little more than two megabits per frame.
At 30 frames per second for a pattern that lasts 15 seconds before it repeats, we need a total of 450 frames. Multiply 450 times 2,160,00 bits and get 97,200,000 bits, (12 megabytes)
Obviously, twelve megabytes of images being loaded from disk one frame at a time would kill the hard drive, or use up a lot of cache memory. If I load the entire set of frames into memory then the processor can put them on the screen one frame at a time. But, that uses up a lot of ram and 30 frames per second, the CPU has to move 8 MB per second into the display memory. Testing shows it uses about 9 percent of my CPU on my laptop. It can easily do it, but seems a total waste for a wallpaper.
Moiré to the rescue.
To create the moiré effect, I only need one 300x300 image. I display it twice, one on top of the other. Then 30 times a second., the CPU rotates the bottom image 1 degree. This requires almost no effort on the part of the CPU, The actual task of rendering the pattern is done by the GPUs in the video card.
By comparison, to the 9% CPU usage for the frame method, the task manager shows less than 1% CPU usage and a GPU usage increase to only 2% for the moiré effect.
Since most of the work is done by the video cards GPUs, this is called "Offloading" the work to the GPU to free up processor resources.
.... But is that what is really happening?
Here is the only image I loaded.
It is just straight lines.
There are NO curved lines
or hypnotic patterns.
Where did the pattern get rendered?
It was Offloaded to a neural network.
..... The organic one
..... between your ears.
Tuesday, September 5, 2017
Tuesday, August 29, 2017
Tuesday, June 13, 2017
Teaching an AI to draw "Me".
Here is a gif animation I created from just a few snapshots of an AI as it learns to paint a picture of me. The first picture it outputs is just a grey square 200 by 200 pixels. Each attempt is compared to a picture of me and the AI is told how close it is to looking like me. I let the AI try 500,000 times. It took 3 hours. Considering that the AI only has 123 neurons, it did a pretty good job. It would need to have at least 4,000 neurons to paint an exact copy of the photo, but that is not the point. I just wanted to get a feel for how it learns.
I didn't use a massive super computer with billions of cores. I used my quad core Surface Book.
I didn't write any code. I used a Javas script AI that runs in a browser. The browser page lets you change a few lines of code to increase the depth and size of the neural networks and see how it relates to the speed and quality of the learning process,
If you want to watch AI's learning to play games, recognize characters, draw pictures and more, you can start here, http://cs.stanford.edu/people/karpathy/convnetjs/index.html
Here is a gif animation I created from just a few snapshots of an AI as it learns to paint a picture of me. The first picture it outputs is just a grey square 200 by 200 pixels. Each attempt is compared to a picture of me and the AI is told how close it is to looking like me. I let the AI try 500,000 times. It took 3 hours. Considering that the AI only has 123 neurons, it did a pretty good job. It would need to have at least 4,000 neurons to paint an exact copy of the photo, but that is not the point. I just wanted to get a feel for how it learns.
I didn't use a massive super computer with billions of cores. I used my quad core Surface Book.
I didn't write any code. I used a Javas script AI that runs in a browser. The browser page lets you change a few lines of code to increase the depth and size of the neural networks and see how it relates to the speed and quality of the learning process,
If you want to watch AI's learning to play games, recognize characters, draw pictures and more, you can start here, http://cs.stanford.edu/people/karpathy/convnetjs/index.html
Subscribe to:
Posts (Atom)









