Posts

Showing posts from February, 2026

La Isla Bonita

Image
La Isla Bonita Another drawing made using P5JS based on an image I've found online. This one was a bit more difficult as the original has lots of shadows. I decided to forgo some of the shadows to make my image more simple. I think it turned out quite well. I called the sketch "La Isla Bonita" as it reminded me of the Madonna song from my childhood. Here's the original. I think this is an AI pic. It doesn't really matter. And here is my version: And here is the code: function setup() { createCanvas(400, 600); angleMode(DEGREES); } function draw() { background(255); stroke(0); strokeWeight(3); push(); translate(-30,0); // centre whole image /* hat */ push(); noFill(); //brim strokeWeight(6); translate(200,100); rotate(30); ellipse(0,0,60,80); //top strokeWeight(5); arc(-10,-10,40,40,20,320); arc(-10,-5,40,40,10,180); pop(); strokeWeight(3) //crease line(180...

Coffee for Two

Image
Coffee for Two I like taking drawings I find online and seeing if I can recreate them in code. Here's my latest: Coffee for Two. Here's the original from @gregcatarino1 : And here is the code: /* after:https://x.com/gregcatarino1/status/2024795951710236868/photo/1 */ function setup() { createCanvas(450, 500); // 450, 500 angleMode(DEGREES); noLoop(); } function draw() { background(220); //line(300,0, 300,600); strokeWeight(1); stroke(0); push() translate(0,-20); man(); push(); translate(-30,0); woman(); pop(); pop(); push(); scale(0.5); drawCursiveM(765, 940, 45); // x, y, size pop(); } function man(){ /* head */ //neck line(150,50, 130, 120); //hair noFill(); curve(145, 50, 145,50, 190,55, 145, 15); curve(145, 48, 145,48, 190,55, 145, 15); line(160,54, 205,54); line(160,53, 210,53); //face beginShape(); vertex(180,56); bezierVertex(185,75,171,100,171,...

にゃー、にゃー。(Meow, meow)

にゃー、にゃー。 Today my wife was playing Stray on the PS5. It seems an interesting game where you play the role of a stray cat in the far future that finds itself lost in a city full of robots. Whilst scrolling through Twitter, I came across a wonderful p5js sketch by Senbaku , which inspired me to create this animation. And here is the code: /* After にゃー、にゃー。 (Meow meow) by @Senbaku https://x.com/senbaku/status/2024819224028541210 */ function setup() { createCanvas(400, 400); rectMode(CENTER); angleMode(DEGREES); noStroke(); } function draw() { background(220); drawCat(width / 4, height / 2, false); drawCat(width / 4, height / 4, false); drawCat(width / 4, height / 2+100, false); //mirrored cats drawCat((width / 4) * 3, height / 2, true); drawCat((width / 4) * 3, height/4, true); drawCat((width / 4) * 3, height/2+100, true); textSize(30); text('After センバク', 100,360); } ...

All You Need is Kill by Hiroshi Sakurazaka - review

Image
All You Need is Kill by Hiroshi Sakurazaka  If you've watched Edge of Tomorrow starring Emily Blunt and Tom Cruise then you'll probably already know that All You Need is Kill is the story that the movie was based on. Mimics, alien terra-forming beasts, have been sent to Earth with the intention of changing the planet into something their masters can live on. The only thing that stands in their way are the pesky humans who seem hell bent in not giving up the keys to their planet without a fight. The story begins with  Keiji Kiriya, a new recruit for the United Defence Force, waking up to the day that he knows will be his last day of peace for, in the morning, the UDF will strike the Mimics hard and fast with all they've got hoping to turn the tide of war. The day goes by as Keiji prepares himself. The next day he's thrust into battle. He survives the next few minutes and comes face to face with a Mimic. The creature strikes a killing blow, knocking Keiji to the ground. J...

Blurry, orbital spheres in p5js

Blurry, orbital spheres in p5js This is a tiny p5js sketch to make a bunch of spheres orbit a single, large sphere. It is user controlled so please click anywhere in the canvas to send a planet on its way! And here is the code: let place = []; let x = 0; let y = 0; let s = 50; let t = 0; function setup() { createCanvas(400, 400); // add the Sun place.push ({ x:x, y:y, s:100, col:'yellow' }); } function draw() { background(0,50); noStroke(); translate(width/2, height/2); rotate(t); for (let p of place){ fill(p.col); circle(p.x, p.y, p.s); } t+=0.02; filter(BLUR, 2); } function mousePressed() { // move mouse into centre-based space let mx = mouseX - width / 2; let my = mouseY - height / 2; // undo the current rotation let cosT = cos(-t); let sinT = sin(-t); let rx = mx * cosT - my * sinT; let ry = mx * sinT + my * cosT; place.push({ x: rx,...

A Trip to Glastonbury

Image
  The Chalice Well. Our second favourite place in the whole world is Glastonbury, Somerset. Since the late 90s, we try to get there at least once a year (although this past few years visits have been slightly longer apart). We spent a couple of days in the town this week and, whilst it rained quite a lot, it was still enjoyable. Glastonbury is known for its other-worldly presence. Many people believe that there is a deeper, spiritual connection to the place rather than just an old, medieval town steeped in legend. To me it's very peaceful and full of a diverse range of people, which makes it interesting to someone who has always held more than a passing interest in Sociology (if I have regrets one of them would have been not studying Sociology at A-Level/degree). The smell of incense and spices flood the streets. As well as grass!!! I did stop and warn a young lady toking away on a rather pungent smelling spliff in a doorway that there were two police officers literally coming roun...

Kill Them With Kindness by Will Carver

Image
  Imagine if COVID was actually a much more deadly virus created in a Chinese laboratory by a shadowy cabal of World Leaders, the ringleader of which bares a strong resemblance to one Boris Johnson. Imagine again if the lead scientist of the project decides not to go through with the deadly virus but to destroy it and replace it with a much less lethal virus that changes a person into a thoughtful, compassionate human being...until the deadly gas is released. That's the premise of Kill Them With Kindness - the latest book from Will Carver. It's quite the page turner, especially with the memories of the pandemic still fresh in people's minds, but it's also incredibly dark. The humour is very, very black. Not at all laugh out loud. Each chapter seems to drip with cynicism and you turn each page with a feeling of dread and anticipation but also strangely feeling like you're reading a cosy murder book or another "Before The Coffee Goes Cold". Like Sam Holland ...
Image
The Harrier Hide This week is World Wetlands Week and the WWT were giving away free entry to their sites. We decided to travel up to Martin Mere in Burscough, Lancashire. A great day was had (with lovely humus and carrot sandwiches!). We saw a Ring Necked Duck that had been blown in from America (probably escaping the madness over there!), Whooper Swans, Ruff, Pintails, Pochards and a lovely Kestrel flying near the Harrier hide (above).