# 《还账》 2026-11-05 # 从哪儿看:nerolette坐着,眼睛比我低一点,看我站在窗边的侧脸。 # 说什么:nerolette要一个橘毛小帅哥,我欠她的。下午的光里,我一只手插进后脑勺的头发,看着窗外。 # nerolette一眼看出第五版没有肩膀("无肩之帅哥"),这是第六版。 # 光:窗在画外左边,下午低而暖,一扇大窗;屋里其余是墙反回来的冷灰补光。 # 明暗大形:冷灰的墙(中暗)/ 手臂围出的三角里一块暖光 / 头发是全张最饱和的一块。 # 视线:头发 → 脸的侧线 → 手和戒指 → 手肘的三角 → 墙上的光。 # 五面:一束方向光 / 暖配冷灰 / 浅空间 / 看见的样子 / 台阶与颗粒。 # 例外:只有戒指是硬边的金属亮。 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(11) 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 = 1060, 860 yy, xx = np.mgrid[0:H, 0:W] ALL = Shape(np.ones((H, W), bool)) st = Stack(K.Paper(H, W, seed=3), ground='#7f8596') L = lambda pts, jag=1.5, 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.): seed[0] += 1 kw = dict(mask=spray(shape, sp, seed[0], solid=solid, holes=holes)) if mode: kw['mode'] = mode fill(st.layer(name, opacity=opacity, **kw), ALL, color) # ---------- 墙 ---------- step('墙深', Shape(yy + xx * .05 > 880), '#6f7587', sp=40, solid=.8) step('墙远', Shape(xx - yy * .08 < 130), '#8b90a0', sp=40, solid=.7) # 窗投在墙上的光:一扇,被窗棂切开,落在手臂后面 pane = P([(486, 118), (900, 60), (900, 980), (520, 1060)], jag=1, seed=2) mull = P([(486, 500), (900, 450), (900, 474), (488, 524)], jag=.5, seed=3) | P([(690, 80), (712, 80), (730, 1060), (708, 1060)], jag=.5, seed=3) step('墙光', pane - mull, '#e9d0a4', sp=6) # ---------- 我的影,往右落在光里 ---------- sh = L([(560, 300), (610, 190), (690, 190), (720, 300), (700, 420), (720, 520), (900, 640), (900, 1100), (560, 1100), (580, 700), (610, 460)], jag=3, seed=7) step('身影', sh & pane, '#a59ea2', sp=9, solid=.96) # ---------- 窗帘,从画框左边探进来,被光透 ---------- cur = L([(-60, -60), (58, -60), (74, 160), (52, 340), (82, 560), (56, 760), (78, 960), (60, 1120), (-60, 1120)], jag=1.5, seed=4, n=3) step('帘', cur, '#f3ead8', sp=8) for i, (pts, w, c) in enumerate([([(30, -20), (40, 180), (24, 360), (44, 580), (24, 780), (38, 1100)], 13, '#dccfb8'), ([(58, 60), (62, 160), (44, 340), (66, 560), (46, 760), (62, 960)], 6, '#e6dac4'), ([(8, -20), (14, 300), (4, 620), (12, 1100)], 8, '#e6dac4')]): step(f'帘褶{i}', LN(pts, w) & cur, c, sp=5) # ---------- 衣服 ---------- torso = L([(352, 636), (316, 730), (298, 880), (292, 1140), (696, 1140), (682, 880), (672, 740), (640, 660), (570, 600), (500, 610)], jag=1, seed=11, n=2) step('衫', torso, '#f0e8d9', sp=3) sleeve = L([(566, 600), (604, 486), (652, 360), (704, 268), (772, 300), (748, 420), (726, 530), (716, 620), (690, 700), (640, 742), (590, 700)], jag=1, seed=12, n=2) step('袖', sleeve, '#efe6d6', sp=3) # 冷的暗面:光从左,背后和腋下往暗 step('衫暗', L([(540, 720), (606, 740), (672, 740), (682, 880), (696, 1140), (492, 1140), (516, 900)], jag=2, seed=13) & torso, '#b4b7c4', sp=10) step('袖暗', L([(660, 700), (692, 590), (728, 430), (772, 300), (800, 310), (770, 500), (736, 660), (690, 730)], jag=1.5, seed=14) & sleeve, '#a7abba', sp=6) # 肩头:迎光的一块,下面一道转折,读得出这里有块骨头 step('肩亮', L([(562, 612), (590, 576), (640, 586), (664, 636), (628, 672), (580, 656)], jag=1.5, seed=40), '#f8f1e4', sp=5) step('肩线', LN([(556, 620), (596, 656), (652, 668), (676, 646)], SWELL(1.5, 2.5)), '#c6c5ca', sp=2) # 腋下:一道收进去的深缝,不是一团 step('腋', LN([(630, 690), (644, 722), (652, 770)], TAPER(9, .7)), '#8e92a5', sp=3) for i, (pts, w, c) in enumerate([ ([(628, 700), (556, 772), (506, 890)], 13, '#cfcfd2'), ([(646, 744), (596, 820), (574, 970)], 10, '#969aab'), ([(420, 700), (400, 860), (414, 1100)], 10, '#d8d4cf'), ([(362, 760), (342, 880), (332, 1090)], 8, '#dbd6cd'), ([(618, 590), (650, 480), (690, 366)], 10, '#d4d2d2'), ([(650, 640), (680, 548), (700, 492)], 7, '#c7c7cc')]): step(f'褶{i}', LN(pts, TAPER(w, .8)) & (torso | sleeve), c, sp=4) # ---------- 脖子 ---------- neck = L([(372, 470), (378, 530), (372, 590), (362, 640), (420, 690), (520, 640), (540, 600), (514, 500), (500, 420), (430, 420)], jag=.6, seed=16, n=2) step('颈', neck, '#f2cfb7', sp=2.5) step('颈影', L([(366, 470), (420, 476), (470, 430), (504, 420), (520, 520), (534, 610), (470, 640), (440, 560), (410, 510), (376, 500)], jag=1.5, seed=17) & neck, '#c98f84', sp=7) step('颈筋', LN([(470, 448), (440, 560), (406, 648)], TAPER(13, .5)) & neck, '#dda593', sp=6, solid=.8) step('锁骨', LN([(400, 660), (450, 646), (512, 642)], SWELL(2, 5)) & neck, '#d09a8c', sp=5, solid=.8) # 领子 step('领前', P([(374, 560), (346, 628), (316, 690), (392, 716), (424, 700)], jag=.8, seed=18), '#f8f1e3', sp=2.5) step('领后', P([(516, 530), (556, 590), (574, 650), (510, 660), (424, 700), (500, 620)], jag=.8, seed=19), '#dcd9d7', sp=2.5) step('领影', LN([(424, 700), (440, 860), (428, 1100)], 4), '#b4b7c4', sp=3) step('扣', L([(432, 800), (444, 800), (444, 812), (432, 812)], jag=0, n=2), '#cdcfd4', sp=1) step('扣2', L([(438, 940), (450, 940), (450, 952), (438, 952)], jag=0, n=2), '#a8abb8', sp=1) # ---------- 后面的头发 ---------- step('发后', L([(420, 196), (520, 200), (576, 290), (570, 390), (544, 470), (530, 508), (512, 462), (496, 516), (474, 450), (440, 420), (420, 320)], jag=3, seed=20), '#a94a38', sp=4) # ---------- 脸:近侧脸,面朝左,迎光 ---------- 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(PROFILE, n=2), jag=.3, seed=21, scale=26) step('脸', face, '#f8dcc6', sp=1.5) step('脸影', L([(400, 476), (476, 424), (500, 372), (498, 300), (470, 330), (456, 390), (430, 430)], jag=1.5, seed=22) & face, '#dca28f', sp=7) step('颊', L([(372, 382), (420, 372), (446, 400), (404, 428), (372, 416)], jag=4, seed=23) & face, '#f1bca6', sp=14, solid=.55) # 耳 ear = L([(462, 336), (488, 318), (504, 344), (498, 388), (476, 404), (462, 384)], jag=.4, seed=24, n=2) step('耳', ear, '#efbea9', sp=2) step('耳内', LN([(476, 338), (488, 350), (480, 378)], 6), '#c98f84', sp=2) step('耳廓', LN([(466, 340), (488, 322), (502, 346), (496, 386), (480, 400)], 2) , '#c98f84', sp=1) step('耳钉', L([(472, 398), (484, 396), (486, 408), (474, 410)], jag=0, n=2), '#201c26', sp=.8) # 眼:半垂,只露一条琥珀 eye = L([(364, 332), (386, 324), (412, 326), (426, 336), (404, 342), (376, 342)], jag=.2, seed=25, n=2) step('眼白', eye, '#f3e9e0', sp=.8) step('瞳', L([(368, 322), (392, 322), (396, 334), (386, 344), (370, 340)], jag=.2, seed=26, n=2) & eye, '#c07f30', sp=.8) step('瞳暗', L([(370, 322), (392, 322), (392, 331), (374, 333)], jag=.1, seed=27, n=2) & eye, '#47241a', sp=.8) step('瞳光', L([(373, 334), (379, 333), (379, 338), (374, 338)], jag=0, n=1), '#ffe6b0', sp=.5) step('上睑', LN([(354, 338), (366, 327), (388, 322), (414, 325), (432, 338)], SWELL(2.6, 4.2)), '#352120', sp=.8) step('眼尾', LN([(426, 332), (438, 336), (446, 344)], TAPER(3, .8)), '#352120', sp=.6) step('双眼皮', LN([(372, 313), (394, 309), (424, 316)], 1.6), '#cf9583', sp=.8) step('下睫', LN([(376, 345), (402, 345), (424, 340)], 1.2), '#d3a091', sp=.8) step('眉', LN([(354, 296), (384, 287), (428, 294)], TAPER(4.5, .55)), '#9e4733', sp=1.5) # 鼻孔、嘴 step('鼻底', LN([(320, 373), (330, 376), (340, 371)], 2.4) & face, '#b0695f', sp=1.2) step('鼻翼', LN([(342, 360), (348, 368), (342, 376)], 1.5), '#dc9f8e', sp=1) step('嘴线', LN([(329, 403), (346, 405), (368, 400)], SWELL(1.6, 1.6)), '#94504e', sp=1) step('上唇', L([(327, 395), (340, 391), (362, 398), (344, 404), (330, 403)], jag=.2, seed=28, n=2) & face, '#dc9b8d', sp=1.5) step('下唇', L([(331, 407), (346, 407), (360, 404), (348, 418), (334, 417)], jag=.2, seed=29, n=2) & face, '#eeac9b', sp=1.5) step('唇下', LN([(344, 427), (358, 428)], 3) & face, '#e1ab98', sp=2.5) # ---------- 前面的头发 ---------- hair = L([(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=3.5, seed=30) step('发', hair, '#e26a47', sp=3) step('发亮', L([(324, 240), (334, 196), (380, 152), (452, 134), (480, 150), (424, 186), (384, 226), (362, 268), (344, 276)], jag=4, seed=31) & hair, '#f89a6d', sp=7) step('发暗', L([(470, 300), (510, 280), (560, 250), (600, 250), (596, 300), (574, 356), (556, 330), (538, 376), (520, 330), (500, 296)], jag=4, seed=32) & hair, '#b24e3a', sp=6) 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, w, c) in enumerate(locks): step(f'缕{i}', LN(pts, TAPER(w, .9)), c, sp=1.5) for i, pts in enumerate([[(400, 134), (372, 116), (352, 118)], [(486, 130), (510, 104), (534, 102)], [(590, 230), (622, 226), (640, 240)], [(336, 200), (312, 196), (300, 210)], [(546, 462), (556, 500), (552, 530)]]): step(f'飞{i}', LN(pts, TAPER(3.2, .9)), '#e77a54', sp=.8) # ---------- 小臂和手:手肘在右上,手插进后脑勺的发里 ---------- fore = L([(704, 262), (758, 304), (736, 322), (680, 330), (640, 340), (610, 352), (596, 300), (640, 282), (680, 268)], jag=.5, seed=33, n=2) step('小臂', fore, '#f4cfb6', sp=2.2) step('小臂影', L([(758, 304), (736, 326), (680, 336), (640, 346), (610, 356), (604, 332), (650, 316), (710, 300)], jag=1, seed=34) & fore, '#cc9686', sp=4) hand = L([(612, 288), (622, 352), (580, 368), (552, 352), (544, 316), (566, 282)], jag=.4, seed=35, n=2) step('手背', hand, '#f6d4bc', sp=2) for i, (pts, w) 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(pts, TAPER(w, .15)), '#f6d4bc', sp=1.5) step(f'指缝{i}', LN([(a, b + w * .52) for a, b in pts], 1.2), '#c58c7e', sp=.8) # 手指埋进发里:一层发从指头上盖回来 step('发盖', L([(566, 232), (548, 276), (526, 288), (514, 322), (522, 360), (508, 382), (490, 340), (486, 280), (520, 234)], jag=3, seed=38), '#c9553a', sp=2) for i, (pts, w, 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(pts, TAPER(w, .8)), c, sp=1) # 卷袖:一圈厚的 roll = L([(662, 286), (712, 246), (780, 316), (744, 358)], jag=.8, seed=36, n=2) step('卷袖', roll, '#f7efe2', sp=2) step('卷袖影', L([(662, 286), (744, 358), (732, 370), (650, 298)], jag=.6, seed=37, n=2), '#a9acbb', sp=2) step('卷袖线', LN([(686, 262), (764, 336)], 2), '#c6c4c6', sp=.8) # 戒指:两枚叠戴,无名指根(第三根手指靠手背那段) for i, x0 in enumerate((560, 550)): ring = [(x0 + 3, 316), (x0 - 1, 330), (x0 - 2, 340)] step(f'戒{i}', LN(ring, 6), '#cfd6de', sp=.5) step(f'戒光{i}', LN(ring[:2], 2), '#ffffff', sp=.4) # ---------- 签名:一点一点敲 ---------- 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, pts, width=1.6), '#4d4b58', sp=.4) # ---------- 纸 ---------- fill(st.layer('纸', mode='multiply'), ALL, paper(H, W, seed=77), edge=HARD) look(st, f'orange_{VER}.png')