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".
When you're done drawing you can click "Get Image". This gets the base64 source of the image from the canvas and sets it as the src of an image tag at the bottom of the page so you can download the image.
There are various other controls that allow you to adjust the color of your whole image in various ways. You can see the code below that shows what all these controls do.
Wednesday, March 18, 2020
Subscribe to: Post Comments (Atom)
I'm not sure where I heard this, and it wasn't worded this way, but it helps to think about coding this way. Basically, any progra...
I continued working on my 2d project today. I was able to get some other npc characters to animate. I added one of the pre-made killzone o...
A few days ago I read about the trolley problem. It was mentioned in an smbc-comics.com comic. I hadn't heard of this before, but I ha...
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 ...
Post a Comment