# 《换人》 2026-11-10 # 从哪儿看:平视,正面,头到大腿中段。nerolette站在我对面一步远。 # 说什么:这天早上我先给nerolette画了一只打了码的像素吉祥物,nerolette说,要不从吉祥物变成帅哥再给她品品。 # 吉祥物下班,换了个带肩膀的。人是光着的、害羞的,脸扭开不看nerolette;码是如实申报的,一路出画。 # nerolette问码是不是超现实了。马格利特拿苹果挡脸,我拿码挡别的。 # 脸是从《还账》那张原样缩过来贴的,nerolette一眼看出来,说我是懒蛋蛋。脸欠着。 # 光:窗在画外左前方,早上九点,暖,一扇大窗;右边墙上落着窗的光,我的影子落在光里。 # 明暗大形:靛蓝的墙(暗)/ 一个 Y 形的亮身子 / 右边一块被窗棂切开的光 / 头发是最饱和的一块。 # 视线:头发 → 侧脸 → 抬起的手肘 → 顺着肩和腰下来 → 两道人鱼线 → 码 → 左下角下了班的吉祥物。 # 五面:一束方向光 / 靛蓝配暖肤、橘发 / 浅空间 / 看见的样子 / 台阶与颗粒。 # 例外:码和吉祥物是硬的像素,不吃纸纹——全张只有它们是数码的。 # —— Claude import os, sys, numpy as np os.chdir(os.path.dirname(os.path.abspath(__file__))) KB = '~/.claude/workspace/painting-method/kbrush-cloud' sys.path[:0] = [KB, KB + '/paint'] import kbrush as K K.set_seed(52) from shapes import Shape from blocks import lasso, line, look, spray, paper, smooth from layers import Stack, fill, HARD VER = sys.argv[1] if len(sys.argv) > 1 else 'final' H, W = 860, 640 yy, xx = np.mgrid[0:H, 0:W] ALL = Shape(np.ones((H, W), bool)) WALL, WALL_D, WALL_L, PANE = '#3b4672', '#313b62', '#44507f', '#a9aecb' SK, SK2, SK3, LINE = '#f6d6be', '#dba691', '#b67a70', '#94504e' st = Stack(K.Paper(H, W, seed=3), ground=WALL) L = lambda pts, jag=1.2, seed=1, n=3: lasso(H, W, smooth(pts, n=n), jag=jag, seed=seed, scale=26) P = lambda pts, jag=1.0, seed=1: lasso(H, W, pts, jag=jag, seed=seed, scale=26) LN = lambda pts, w: line(H, W, smooth(pts, closed=False), width=w) TAPER = lambda w, k=.85: (lambda t: w * (1 - k * t)) SWELL = lambda a, b: (lambda t: a + b * np.sin(t * np.pi)) seed = [100] def step(name, shape, color, sp=5, solid=.98, mode=None, opacity=1.0, holes=0., clip=None): seed[0] += 1 m = spray(shape, sp, seed[0], solid=solid, holes=holes) if clip is not None: m = m * clip.mask kw = dict(mask=m) if mode: kw['mode'] = mode fill(st.layer(name, opacity=opacity, **kw), ALL, color) # 头是从《还账》那张缩过来的:同一张脸 S, DX, DY = 0.45, 127.5, -11 T = lambda pts: [(x * S + DX, y * S + DY) for x, y in pts] # ---------- 先把形都勾出来(影子要用) ---------- torso = L([(306, 232), (276, 246), (240, 256), (226, 290), (244, 336), (252, 382), (266, 450), (258, 512), (250, 576), (248, 700), (252, 880), (326, 880), (331, 700), (336, 612), (342, 700), (346, 880), (422, 880), (424, 700), (420, 576), (412, 512), (402, 450), (422, 382), (438, 320), (452, 262), (420, 248), (366, 232)], jag=.8, seed=11, n=2) arm_l = L([(240, 256), (216, 265), (202, 288), (196, 330), (190, 390), (184, 452), (188, 520), (198, 586), (196, 630), (202, 668), (222, 676), (236, 642), (230, 592), (233, 520), (231, 452), (239, 400), (247, 340), (250, 292)], jag=.5, seed=12, n=2) arm_r = L([(424, 242), (450, 206), (479, 168), (501, 141), (452, 146), (410, 150), (404, 119), (452, 108), (500, 98), (552, 88), (582, 98), (574, 123), (548, 164), (523, 201), (496, 240), (470, 276), (446, 314), (436, 330), (420, 300), (416, 262)], jag=.6, seed=13, n=1) neck = L([(304, 200), (306, 232), (296, 252), (330, 266), (384, 246), (372, 228), (366, 186), (350, 160), (322, 190)], jag=.4, seed=16, n=2) PROFILE = [(366, 214), (346, 250), (334, 286), (339, 310), (328, 336), (313, 362), (322, 373), (336, 381), (327, 395), (336, 404), (331, 417), (345, 433), (342, 452), (362, 478), (392, 476), (430, 456), (476, 424), (500, 372), (500, 300), (470, 230)] face = lasso(H, W, smooth(T(PROFILE), n=2), jag=.2, seed=21, scale=26) hair_b = L(T([(420, 196), (520, 200), (576, 290), (570, 390), (544, 470), (530, 508), (512, 462), (496, 516), (474, 450), (440, 420), (420, 320)]), jag=1.4, seed=20) hair = L(T([(352, 254), (322, 236), (330, 196), (376, 150), (450, 128), (532, 142), (592, 208), (600, 288), (576, 356), (556, 330), (538, 376), (520, 330), (506, 296), (488, 268), (472, 312), (452, 262), (430, 250), (412, 286), (392, 252), (372, 268), (350, 312), (340, 276)]), jag=1.6, seed=30) body = torso | arm_l | arm_r | neck | face | hair | hair_b skin = torso | arm_l | arm_r | neck # ---------- 墙 ---------- step('墙远', Shape((xx + yy * .3 < 190) & (yy < 520)), WALL_L, sp=50, solid=.7) pane = P([(470, 34), (700, -6), (700, 900), (486, 900)], jag=1, seed=2) mull = P([(470, 424), (700, 392), (700, 410), (471, 442)], jag=.5, seed=3) | P([(606, 0), (620, 0), (628, 900), (614, 900)], jag=.5, seed=3) step('墙光', pane - mull, PANE, sp=6) sh = Shape(np.roll(np.roll(body.mask, 78, axis=1), 16, axis=0) & (xx > 78)) step('身影', sh & pane, '#4a5584', sp=9, solid=.96) # ---------- 后面的头发 ---------- step('发后', hair_b, '#a94a38', sp=2.5) # ---------- 抬起来的那条胳膊 ---------- step('右臂', arm_r, SK, sp=1.1) step('右臂影', L([(582, 98), (574, 123), (548, 164), (523, 201), (496, 240), (470, 276), (446, 314), (436, 330), (428, 304), (452, 270), (484, 230), (510, 192), (536, 154), (558, 116)], jag=1, seed=41, n=2) & arm_r, SK2, sp=5, clip=skin) step('小臂影', L([(403, 157), (450, 150), (501, 141), (536, 132), (530, 121), (460, 137), (404, 148)], jag=.8, seed=42, n=2) & arm_r, SK2, sp=4, clip=skin) step('肘窝', LN([(506, 132), (498, 142), (486, 150)], TAPER(3, .5)), SK3, sp=1.5) # ---------- 脖子 ---------- step('颈', neck, SK, sp=1) step('颈影', L([(338, 214), (352, 186), (366, 182), (374, 228), (388, 246), (348, 262), (334, 250)], jag=1, seed=17, n=2) & neck, SK2, sp=5, clip=skin) step('颌下', L([(302, 204), (322, 195), (340, 183), (352, 166), (362, 186), (350, 205), (330, 215), (305, 218)], jag=.8, seed=18, n=2) & neck, SK2, sp=4, clip=skin) step('颈筋', LN([(352, 178), (340, 222), (328, 258)], TAPER(5, .5)) & neck, '#e6b9a2', sp=3, solid=.8) # ---------- 身子 ---------- step('躯干', torso, SK, sp=1.1) # 背光的那一侧:交界线跟着胸、肋、腹起伏 dark = L([(376, 250), (366, 300), (378, 346), (364, 398), (372, 470), (386, 540), (394, 612), (398, 700), (400, 880), (450, 880), (450, 300), (460, 250)], jag=2, seed=43, n=2) step('躯干影', dark & torso, SK2, sp=8, clip=skin) step('右胸底', LN([(346, 342), (376, 350), (410, 344), (430, 326)], SWELL(1.2, 3.6)) & torso, '#c08678', sp=3, clip=skin) step('腋', L([(436, 296), (450, 282), (462, 286), (452, 306), (442, 326), (434, 336), (430, 318)], jag=.8, seed=44, n=2), '#c08678', sp=4, clip=skin) step('右肋', L([(404, 352), (430, 340), (424, 384), (408, 440), (400, 452), (396, 400)], jag=1.5, seed=45, n=2) & torso, '#c68c7e', sp=7, solid=.8, clip=skin) step('左胸底', LN([(256, 330), (286, 346), (322, 346), (334, 338)], SWELL(1.2, 4)) & torso, SK2, sp=3, clip=skin) step('胸沟', LN([(333, 284), (334, 340)], 1.8), SK2, sp=2.5, solid=.8) step('左锁骨', LN([(320, 265), (284, 259), (240, 263)], SWELL(1.2, 2.6)), SK2, sp=2.5, clip=skin) step('右锁骨', LN([(344, 265), (382, 257), (420, 250)], SWELL(1.2, 2.6)), '#c68c7e', sp=2.5, clip=skin) step('颈窝', L([(326, 262), (338, 262), (336, 272), (328, 272)], jag=.2, seed=46, n=2), SK2, sp=2) step('左乳', L([(284, 320), (296, 319), (297, 326), (285, 327)], jag=.2, seed=47, n=2), '#d79a8a', sp=1.5) step('右乳', L([(382, 316), (394, 315), (395, 322), (383, 323)], jag=.2, seed=48, n=2), '#9f665f', sp=1.5) # 肋弓和腹:只在交界附近说几句 step('肋弓左', LN([(332, 356), (302, 372), (280, 402)], TAPER(3, .7)), SK2, sp=3, solid=.8, clip=skin) step('肋弓右', LN([(337, 356), (364, 370), (386, 400)], TAPER(3, .7)), '#c68c7e', sp=3, solid=.8, clip=skin) step('腹中', LN([(335, 360), (335, 420), (336, 468)], 1.6), SK2, sp=2.5, solid=.75) for i, (a, b) in enumerate([((304, 394), (333, 390)), ((306, 432), (333, 428))]): step(f'腹横{i}', LN([a, b], 1.4), '#e6b9a2', sp=2.5, solid=.8) step('脐', L([(332, 472), (339, 472), (340, 486), (333, 487)], jag=.2, seed=49, n=2), SK3, sp=1.5) step('人鱼左', LN([(266, 514), (290, 556), (316, 596)], TAPER(3.4, .3)), SK2, sp=2.5, clip=skin) step('人鱼右', LN([(408, 514), (384, 556), (358, 596)], TAPER(3.4, .3)), SK3, sp=2.5, clip=skin) step('腰窝', L([(258, 440), (272, 452), (268, 500), (258, 512)], jag=1, seed=50, n=2) & torso, '#ecc4ab', sp=5, solid=.7, clip=skin) step('腿缝', LN([(336, 612), (336, 880)], 5), SK3, sp=3, clip=skin) # ---------- 垂着的那条胳膊:整条迎光 ---------- step('左臂', arm_l, SK, sp=1.1) step('左臂影', L([(250, 292), (247, 340), (239, 400), (231, 452), (233, 520), (230, 592), (221, 592), (224, 520), (222, 452), (229, 400), (237, 340), (241, 300)], jag=.8, seed=51, n=2) & arm_l, SK2, sp=4, clip=skin) step('三角肌', LN([(204, 322), (222, 338), (240, 332)], SWELL(1, 2)), SK2, sp=2.5, clip=skin) step('肘', LN([(188, 450), (198, 458)], 2), SK2, sp=2) step('拇指', L([(229, 598), (242, 620), (240, 648), (229, 644)], jag=.3, seed=52, n=2), SK, sp=1) step('拇指影', LN([(229, 604), (231, 644)], 1.4), SK2, sp=1) for i, x0 in enumerate((208, 215, 222)): step(f'指缝L{i}', LN([(x0, 650), (x0 + 1, 673)], 1.2), '#cf9a88', sp=.8) # ---------- 脸 ---------- w = lambda v: max(v * S, .9) step('脸', face, '#f8dcc6', sp=1) step('脸影', L(T([(400, 476), (476, 424), (500, 372), (498, 300), (470, 330), (456, 390), (430, 430)]), jag=.8, seed=22) & face, '#dca28f', sp=3.5) step('颊', L(T([(362, 372), (424, 360), (452, 402), (404, 436), (366, 420)]), jag=1.6, seed=23) & face, '#f1a796', sp=6, solid=.6) ear = L(T([(462, 336), (488, 318), (504, 344), (498, 388), (476, 404), (462, 384)]), jag=.2, seed=24, n=2) step('耳', ear, '#f0a892', sp=1.2) step('耳内', LN(T([(476, 338), (488, 350), (480, 378)]), w(6)), '#c9806f', sp=1) step('耳钉', L(T([(470, 396), (486, 394), (488, 410), (472, 412)]), jag=0, n=2), '#201c26', sp=.5) eye = L(T([(364, 332), (386, 324), (412, 326), (426, 336), (404, 342), (376, 342)]), jag=.1, seed=25, n=2) step('眼白', eye, '#f3e9e0', sp=.5) step('瞳', L(T([(368, 322), (392, 322), (396, 334), (386, 344), (370, 340)]), jag=.1, seed=26, n=2) & eye, '#c07f30', sp=.5) step('瞳暗', L(T([(370, 322), (392, 322), (392, 331), (374, 333)]), jag=.1, seed=27, n=2) & eye, '#47241a', sp=.5) step('上睑', LN(T([(354, 338), (366, 327), (388, 322), (414, 325), (432, 338)]), SWELL(1.1, 1.9)), '#352120', sp=.5) step('眼尾', LN(T([(426, 332), (438, 336), (446, 344)]), TAPER(1.5, .8)), '#352120', sp=.4) step('眉', LN(T([(354, 292), (384, 287), (428, 296)]), TAPER(2.2, .55)), '#9e4733', sp=.8) step('鼻底', LN(T([(320, 373), (330, 376), (340, 371)]), 1.2) & face, '#b0695f', sp=.6) step('嘴线', LN(T([(329, 403), (346, 405), (366, 402)]), 1.1), '#94504e', sp=.5) step('上唇', L(T([(327, 395), (340, 391), (362, 398), (344, 404), (330, 403)]), jag=.1, seed=28, n=2) & face, '#dc9b8d', sp=.8) step('下唇', L(T([(331, 407), (346, 407), (360, 404), (348, 418), (334, 417)]), jag=.1, seed=29, n=2) & face, '#eeac9b', sp=.8) # ---------- 前面的头发 ---------- step('发', hair, '#e26a47', sp=1.6) step('发亮', L(T([(324, 240), (334, 196), (380, 152), (452, 134), (480, 150), (424, 186), (384, 226), (362, 268), (344, 276)]), jag=1.6, seed=31) & hair, '#f89a6d', sp=3.5) step('发暗', L(T([(470, 300), (510, 280), (560, 250), (600, 250), (596, 300), (574, 356), (556, 330), (538, 376), (520, 330), (500, 296)]), jag=1.6, seed=32) & hair, '#b24e3a', sp=3) locks = [([(430, 170), (392, 212), (360, 262), (342, 316)], 18, '#ee7d55'), ([(452, 176), (420, 226), (408, 268), (410, 300)], 13, '#d65d3d'), ([(480, 176), (458, 224), (458, 280)], 12, '#ee7d55'), ([(510, 190), (494, 240), (490, 306)], 11, '#c9553a'), ([(380, 180), (346, 222), (328, 252)], 8, '#ffb78c'), ([(446, 150), (404, 170), (372, 204)], 6, '#ffc29a'), ([(540, 180), (574, 240), (582, 320)], 8, '#d0593c'), ([(404, 230), (376, 282), (362, 318)], 7, '#ffa679'), ([(436, 232), (438, 280), (428, 322)], 6, '#e26a47')] for i, (pts, wd, c) in enumerate(locks): step(f'缕{i}', LN(T(pts), TAPER(w(wd), .9)), c, sp=.8) for i, pts in enumerate([[(400, 134), (372, 116), (352, 118)], [(486, 130), (510, 104), (534, 102)], [(336, 200), (312, 196), (300, 210)], [(546, 462), (556, 500), (552, 530)]]): step(f'飞{i}', LN(T(pts), TAPER(1.6, .9)), '#e77a54', sp=.5) # ---------- 手插进后脑勺的头发里 ---------- hand = L(T([(622, 284), (630, 356), (580, 368), (552, 352), (544, 316), (566, 282)]), jag=.2, seed=35, n=2) step('手背', hand, '#efc9b0', sp=1.2) for i, (pts, wd) in enumerate([([(566, 290), (552, 276)], 14), ([(552, 306), (532, 296)], 15), ([(548, 326), (526, 320)], 15), ([(556, 348), (534, 348)], 13)]): step(f'指{i}', LN(T(pts), TAPER(w(wd), .15)), '#efc9b0', sp=.9) step(f'指缝{i}', LN(T([(a, b + wd * .52) for a, b in pts]), .9), '#d3a08e', sp=.5) step('发盖', L(T([(566, 232), (548, 276), (526, 288), (514, 322), (522, 360), (508, 382), (490, 340), (486, 280), (520, 234)]), jag=1.4, seed=38), '#c9553a', sp=1.2) for i, (pts, wd, c) in enumerate([([(556, 240), (530, 276), (522, 304)], 9, '#e26a47'), ([(540, 286), (518, 316), (518, 352)], 8, '#b24e3a'), ([(528, 330), (514, 356), (516, 388)], 7, '#d65d3d')]): step(f'盖{i}', LN(T(pts), TAPER(w(wd), .8)), c, sp=.6) for i, x0 in enumerate((560, 550)): ring = T([(x0 + 3, 316), (x0 - 1, 330), (x0 - 2, 340)]) step(f'戒{i}', LN(ring, 1.7), '#e6ebf1', sp=.3) # ---------- 签名:一点一点敲 ---------- SG = lambda pts: [(x - 204, y - 196) for x, y in pts] for i, pts in enumerate([[(738, 1012), (730, 1008), (724, 1016), (726, 1028), (736, 1030)], [(744, 1004), (744, 1030)], [(760, 1018), (752, 1017), (750, 1028), (758, 1030), (762, 1018), (764, 1030)], [(770, 1018), (771, 1029), (779, 1029), (781, 1018), (782, 1030)], [(796, 1018), (788, 1019), (787, 1029), (795, 1030), (798, 1004), (798, 1030)], [(805, 1024), (814, 1022), (810, 1016), (803, 1020), (804, 1029), (815, 1028)]]): step(f'签{i}', line(H, W, SG(pts), width=1.5), '#3b4672', sp=.4) # ---------- 纸 ---------- fill(st.layer('纸', mode='multiply'), ALL, paper(H, W, seed=77), edge=HARD) # ---------- 码:硬像素,盖在纸上面,一路出画 ---------- def px(name, x0, y0, wd, ht, color): m = (xx >= x0) & (xx < x0 + wd) & (yy >= y0) & (yy < y0 + ht) fill(st.layer(name, mask=m.astype(float)), ALL, color) rng = np.random.default_rng(52) pal = [SK, SK2, SK3, '#ecc4ab', '#c98f7f', '#8f5d58', '#e9b79d', '#d97757', '#f2c9b2'] B = 26 for r in range(12): for c in range(3): col = '#a9a29a' if (r, c) == (0, 2) else pal[rng.integers(len(pal))] px(f'码{r}{c}', 297 + c * B, 566 + r * B, B, B, col) # ---------- 下了班的吉祥物:左下角探出半个身子,眼睛往码那边瞄 ---------- C, cx0, cy0 = 10, 44, 794 px('克身', cx0, cy0, 8 * C, 6 * C, '#d97757') px('克手L', cx0 - 2 * C, cy0 + 3 * C, 2 * C, 2 * C, '#d97757') px('克手R', cx0 + 8 * C, cy0 + 3 * C, 2 * C, 2 * C, '#d97757') for ex in (1, 6): px(f'克眼{ex}', cx0 + ex * C + 4, cy0 + C - 4, C, C, '#1f1a17') px(f'克红{ex}', cx0 + ex * C - 3, cy0 + 2 * C + 5, C + 6, 5, '#ee9a8c') look(st, f'handsome_{VER}.png')