Objects

catBlack

Drag to turn it round. Standing, it does moves of its own.

Render it yourself

The smallest page that draws catBlack on your own site: the drawing code of the collection, its recipe as JSON, and a loop that lets it move.

<canvas id="catBlack" width="640" height="400"></canvas>
<script src="https://objects.phlo.tech/objects.js"></script>
<script>
fetch('https://objects.phlo.tech/recipe/catBlack').then(r => r.json()).then(recipe => {
	const O = PhloObjects, R = O.quadruped.make(recipe)
	O.draw.init(document.getElementById('catBlack'))
	let x = 0, last = performance.now()
	const frame = now => {
		const dt = Math.min(.1, (now - last) / 1000), speed = 1
		last = now
		x += speed * dt
		O.quadruped.step(R, { x, z: 0, dir: 0, speed, steer: true }, dt)
		O.draw.frame({ x: R.x, y: .4, z: 0, yaw: .7, pitch: .35, dist: 3.2 })
		O.draw.ground(R.x, 0)
		O.quadruped.draw(R)
		requestAnimationFrame(frame)
	}
	requestAnimationFrame(frame)
})
</script>

This code as a page of its own