Wednesday, January 29, 2025

This morning's prompt is 'pea pod'.


(I don't know why I'm captioning the sketch, now... 8-P)

So I'm thinking about my clunky million square kilometer blobs for no good reason and the edges of the quads are really curves so my approximation just got even more complicated; adjacent rows of 13 and 18 blobs have 13*18  or 234 segments, each preceding area having 18 segments on the bottom, each, and each next row area having 13 segments on top. Each area is actually a polygon which we can imagine subdividing into a triangle fan around the center, doing a drunkards walk to find land or sea areas, then randomize the border vertices based on the centers' height above or below sea level.

We can cut down on edge segments by only considering any shared quad corners in the top and bottom edges; we may consider many possible points but only keep track of corners.

Tuesday, January 28, 2025

Galaxy

28 January 2025- Starmap

Picking points within the canvas to generate xy and z coordinates.
The white thing would be a galaxy. Each white bit is a rectangle one pixel wide and tall. I need to draw some arms...

Oops!

This morning's prompt is 'baby calf'.


Mission accomplished!
Making another run at my starmapper.

Monday, January 27, 2025

Point

28 January 2025- Starmap

Picking points within the canvas to generate xy and z coordinates.
I should be drilling down from 73 billion light years across...
I should randomly place Sol, the Milky Way and the local group! 8-P

Oops!

This morning's prompt is 'pork chop'.


(with crossed fork and knife, let's eat! 8-P)

const canvas = document.getElementById('myCanvas');const ctx = canvas.getContext('2d');canvas.addEventListener('click', function(event) { const rect = canvas.getBoundingClientRect(); const x = event.clientX - rect.left; const y = event.clientY - rect.top; // Do something with the click coordinates console.log('Click at:', x, y); // Example: Draw a circle at the click position ctx.beginPath(); ctx.arc(x, y, 10, 0, 2 * Math.PI); ctx.stroke();});

Sunday, January 26, 2025

Subdividing, again

7 December 2024- Square to sinusoidal grid of points
Oops!

The page procedurally makes strange quads. most of which are 'real' quads, but some degenerate into triangles or quads with top or bottom edges which are twice as wide. The quads naturally can be subdivided into triangle pairs and the double wide edged quads subdivide in to three triangles. It's a simple matter of doing the work to set up these subdivisions and make the triangles, which subdivide into three corner quads which group around my points to make funny little polygons...

Back to Icosahedrans

1 November 2024- Rows
Oops!

I made an icosahedral grid. Now find all the vertices in the triangles, build six quads around them and draw them if they are inside the icosahedron!