wattsy

November 2021·Engineering·1,208 editions

A generative cityscape by eepmon. I translated it by hand to Solidity on the Kohi engine.

City Lights

City Lights is a generative cityscape by eepmon. I translated his code, line by line, to Solidity on the Kohi engine.

The goal was an exact copy of his image, bit for bit. The port uses the Kohi Fix64 math and RandomV1 stream.

City Lights was the first Kohi piece with sub-pixel anti-aliasing. The rasteriser follows Anti-Grain Geometry (AGG), the C++ graphics library by Maxim Shemanarev: cells, coverage and scanlines, in Solidity and Fix64. The code is on GitHub, in kohi-composer and kohi-citylights.

As with Kintsugi, the tokenURI does not return the image. At first it pointed to a kohi.art URL. Now it points to IPFS.

2021-11-22 — City Lights mints

The collection of eepmon deploys on the Kohi contract line: KohiCityLights, symbol EEPCL.

Receiptverified
pieceCity Lights, a generative cityscape
artisteepmon (the artwork)
on-chainwattsy (Solidity transliteration onto the Kohi engine)
contract0x1aBA27D6A420feb25aF6CF6b80b93B7526725a71 (KohiCityLights / EEPCL · ERC-721)
networkEthereum mainnet
deployed22 November 2021 · block 13664595
minted22 November 2021 · blocks 13665268–13665788
editions1,208
deliveryoff-chain, on IPFS (first on kohi.art), not the on-chain render (the unfinished part)
verifycast call 0x1aBA27D6A420feb25aF6CF6b80b93B7526725a71 "tokenURI(uint256)(string)" 1 --rpc-url <rpc>