Here is another small JS project that I built quite a few years ago. It was basically just an exploration of the canvas tag, which was somewhat new at the time. I called it "Canvas Paint". It allows you to draw on the canvas. You can change the color and width of the brush by changing the numbers in the boxes and clicking either "Set Color" or "Set Width".
Wednesday, March 18, 2020
Wednesday, March 11, 2020
Life Game
Previously I posted about a game (really a simulation) that I made several years ago. I called it the Fish Game. A few years later I made another very similar simulation that I called "Life Game".
It is similar, but quite a bit more complex, and I think somewhat better written code. In this version there are three life forms; fish, bugs, and plants. The fish eat the bugs. The bugs eat the plants. The plants gain energy each frame as if they are getting energy from the sun. Each life form has a fairly large set of properties. These are copied to the individual life forms as they are created.
It is similar, but quite a bit more complex, and I think somewhat better written code. In this version there are three life forms; fish, bugs, and plants. The fish eat the bugs. The bugs eat the plants. The plants gain energy each frame as if they are getting energy from the sun. Each life form has a fairly large set of properties. These are copied to the individual life forms as they are created.
Tuesday, March 3, 2020
Custom Thumbnails for Magento 2 Products
I recently migrated a site from Magento 1 to Magento 2. The product image thumbnails work differently in Magento 2. In Magento 2 they use a JS library called Fotorama. It has several options that can be modified in the view.xml if you have a custom theme setup. However, none of the thumbnail options match the way that the thumbnails work in Magento 1, and my client wanted them to look more like the old version.
Subscribe to:
Posts (Atom)
Where Will We Go With AI
As AI becomes a more powerful coding tool I could see it taking us in two directions. One would be more and more bad high level code that ...
-
Some Android applications use space on your Google Drive to store data. You can't see this data by browsing drive the normal way. You ...
-
I started a new 3d unity project to play around with terrain creation. You can add a terrain object and then they have tools for raising a...
-
I have several apps published on the Apple Appstore. Four of them are using iAds and that service is going to be discontinued soon. I am g...