var canvas = document.getElementById(“canvas”); var ctx = canvas.getContext(“2d”); var radius = canvas.height / 2; ctx.translate(radius, radius); radius = radius * 0.90 setInterval(drawClock, 1000); drawClock(); function drawClock(){ drawFace(ctx,radius); drawNumbers(ctx, radius); drawTime(ctx, radius); // drawHand(ctx, pos, length, width) } function drawFace(ctx, radius) { var grad; ctx.beginPath(); ctx.arc(0, 0, radius, 0 , 2*Math.PI); ctx.fillStyle = “white”; ctx.fill(); grad = ctx.createRadialGradient(0, 0 ,radius* 0.95, 0, 0, radius*1.05); grad.addColorStop(0, ‘#333’); grad.addColorStop(0.5, ‘white’); grad.addColorStop(1, ‘#333’); ctx.strokeStyle = grad; ctx.
I haven’t gone fishing, but the bird has.
Sometimes we experiment and play with technology. The clock below is an SVG clock using SVG and Canvas technology to display local time. Doing it with these two technologies was easier than with JavaScript. The code doesn’t require calculating thousandths of a second like another clock I tried. The tutorial to make this clock is here: W3 Canvas Clock.
var canvas = document.getElementById(“canvas”); var ctx = canvas.getContext(“2d”); var radius = canvas.
Other the last week I have been learning about canvas and SVGs. I am not certain that I will use this knowledge immediately but it is good to learn nonetheless.
I struggled with some code when setting up a clock. I went back through the code line by line two or three times before trying to find a version in written form. I did and went through each line yet again.
Last night I was reading and began seeing the pandemic as a journey. The pandemic has been a journey for everyone, but especially for those in solitude. For those of us in solitude, it has required that we completely change how we consume the media and how we interact with the world. We go for weeks without hugs, without kisses, without meals with other people. For weeks, we may exchange a few words at a shop or petrol station but without ever having in person conversations.
Although not discussed as such the pandemic is an interior journey in the same manner as thru hikes as they are called in the US and pilgrimages in Europe. We start with one identity and one life and we have to adapt it to suit the things that can be realised during a pandemic.
We are in solitude with our thoughts so we need to work on our inner character, ready to resume post pandemic life, once that opportunity comes back.
We are currently living through the evergreen pandemic. I give it this name because the more time passes the more we remain trapped in it. Every time progress is made restrictions are loosened and we revert to the way things were.
An almost empty beach
I don’t feel there is anything new to write today. Enjoy the picture.
Roman Fish salting bath
For years I heard about Roman pisciculture baths near the sea in Spain and I thought that this is where they would keep fish for eating, like they did in medieval Europe. That idea is wrong. The pisciculture that you have near Javea, Cadiz, and other parts of the Mediterranean coast were for the production of Garum and other salted fish versions.
The Vault ceiling of a water pipe built by the Romans
Writing one hundred and eighty blog posts in a row is a challenge. I would say that I have learned something but I haven’t. Some days inspiration comes easily and other days I struggle to find something to write.
We are in a pandemic and most days resemble the one before and the day after. Most days are not unique. We are grinding through this pandemic until someone competent takes control of the country’s response.