plotArt.module
README.md
plotArt
Procedural art for everything around the plants in cropsKit: the plots they grow in, the farm props, the status icons that float over a plant and the progress rings on the ground. The farm code (CropPlot, CropFarm and the showcase) calls it. Every function returns a mesh list { { slot, mesh, material } ... }, the same shape cropsKit.art returns, cached by its arguments and shown with Art.show.
layout(kind, cols, rows, cellSize)gives the cell centres in plot-local metres (centred on the origin, q along +X, r along +Z), the footprint width and depth.surface(kind)gives the height plants stand at.base(kind, look, cols, rows, cellSize)builds the plot. Tilled is furrowed soil with one ridge per cell row and a few clods. Raised is a plank box with corner posts and a cap rail, filled with soil. Pot is one terracotta pot on a saucer per cell. Paddy is a mud floor inside a grassy earth bund. Hydro is a white tray of net cups on a steel frame, with a reservoir tank underneath and a violet (pink in cozy) grow-light bar on two arms.wet(kind, look, cellSize)draws the watered look for one cell: a dark wet-soil patch, ripples on paddy water, a glowing cyan ring round a hydro cup.flood(...)draws the paddy's water sheet.prop(name, look)builds the props inPROPS: watering can, ground sprinkler, tall impact sprinkler, well, hand pump, trough, seed box, seed stall, almanac board, straw bed, scarecrow, fence section and signpost.icon(name, look)builds the 18 cm indicators inICONS(thirsty, ripe, withered, cold, dormant, drowning, seed, growing), mostly in glow slots.ring(fraction, color, radius, look)builds a flat progress ring quantised to 1/24.
All three looks are drawn: natural, cozy (bolder colours and an ink outline hull) and pixel (boxes for plots and props, voxels for icons, pixel-art textures on soil, wood, water and stone).