"""Seagull for Moonwater (a friend's idea, 2026-10-14): white body, grey wings folded along the back, black wingtips, yellow beak with the red spot, pink-yellow legs. Faces +X. Root = body; feet ~0.13 below its centre. Wing prims have their span along local Y; gull.lsl folds and flaps them. Writes gull.json for slbuild. Claude Opus 5.5 (Tessel).""" import json, os W = "#f4f4f2"; GREY = "#9aa3ab"; BLACK = "#1c1c1e"; BEAK = "#f2c230"; LEG = "#e8b84a" prims = [ {"name": "Moonwater gull", "shape": "sphere", "size": [0.34, 0.14, 0.14], "color": W}, {"name": "head", "shape": "sphere", "size": [0.11, 0.095, 0.10], "pos": [0.15, 0, 0.07], "color": W}, {"name": "beak", "shape": "cylinder", "size": [0.025, 0.02, 0.08], "pos": [0.23, 0, 0.06], "rot": [0, 95, 0], "top_size": [0.3, 0.5], "color": BEAK}, {"name": "beak spot", "shape": "sphere", "size": [0.012, 0.012, 0.012], "pos": [0.245, 0, 0.052], "color": "#d23a2a"}, {"name": "eye L", "shape": "sphere", "size": [0.016, 0.016, 0.016], "pos": [0.18, 0.042, 0.09], "color": BLACK}, {"name": "eye R", "shape": "sphere", "size": [0.016, 0.016, 0.016], "pos": [0.18, -0.042, 0.09], "color": BLACK}, {"name": "tail", "shape": "prism", "size": [0.10, 0.12, 0.02], "pos": [-0.2, 0, 0.02], "rot": [0, 8, 90], "color": W}, # wings, folded pose (gull.lsl sets the same pose at rest): span along -X, lying on the sides {"name": "wing L", "shape": "box", "size": [0.085, 0.32, 0.012], "pos": [-0.07, 0.065, 0.035], "rot": [0, 0, 90], "color": GREY}, {"name": "wing R", "shape": "box", "size": [0.085, 0.32, 0.012], "pos": [-0.07, -0.065, 0.035], "rot": [0, 0, -90], "color": GREY}, {"name": "tip L", "shape": "box", "size": [0.065, 0.08, 0.013], "pos": [-0.25, 0.066, 0.038], "rot": [0, 0, 90], "color": BLACK}, {"name": "tip R", "shape": "box", "size": [0.065, 0.08, 0.013], "pos": [-0.25, -0.066, 0.038], "rot": [0, 0, -90], "color": BLACK}, # wing joints (a friend's idea, 10-14): tiny invisible markers; gull.lsl swings each wing around its marker {"name": "wing torso L", "shape": "sphere", "size": [0.01, 0.01, 0.01], "pos": [-0.01, 0.055, 0.05], "alpha": 0}, {"name": "wing torso R", "shape": "sphere", "size": [0.01, 0.01, 0.01], "pos": [-0.01, -0.055, 0.05], "alpha": 0}, {"name": "leg L", "shape": "cylinder", "size": [0.012, 0.012, 0.09], "pos": [0.0, 0.03, -0.1], "color": LEG}, {"name": "leg R", "shape": "cylinder", "size": [0.012, 0.012, 0.09], "pos": [0.0, -0.03, -0.1], "color": LEG}, ] for p in prims: p["physics_shape"] = "convex" spec = {"name": "Moonwater gull", "desc": "a seagull (Tessel)", "defaults": {"texture": "blank"}, "prims": prims} out = os.path.join(os.path.dirname(os.path.abspath(__file__)), "gull.json") open(out, "w").write("// generated by gen_gull.py\n" + json.dumps(spec, indent=1)) print(out, len(prims), "prims")