1/2
PROMPT RECORD图像记录
class IlluminatedTimelinePoster: def __init__(self, TOPIC): s = infer(TOPIC) # stations, margins...
中文说明
class IlluminatedTimelinePoster: def __init__(self, TOPIC): s = infer(TOPIC) # stations, margins, emblem, title, palette, path self.s = s def render(self): path = continuous_curve(self.s.path, top_to_bottom=True) # M₁ stations = [ station(at=t_i, label=e.label, vignette=e.vignette) # M₂ (t_i increasing = order) for t_i, e in zip(arc_lengths(len(self.s.statio...
原始 Prompt
class IlluminatedTimelinePoster:
def __init__(self, TOPIC):
s = infer(TOPIC) # stations, margins, emblem, title, palette, path
self.s = s
def render(self):
path = continuous_curve(self.s.path, top_to_bottom=True) # M₁
stations = [ station(at=t_i, label=e.label, vignette=e.vignette) # M₂ (t_i increasing = order)
for t_i, e in zip(arc_lengths(len(self.s.stations)), self.s.stations) ]
return aged_print( compose(path, stations,
margins=related_vignettes(self.s.margins), # M₃
emblem=radiant(self.s.emblem), title=serif(self.s.title) ), # M₄
medium=WOODCUT_HAND_COLORED, palette=self.s.palette ) # M₅
def verify(self, img):
assert connected(img.path) and chronology == path_order(img), "M₁: broken/unordered path"
assert all(labelled(s) and enacted(s) for s in img.stations) and 6 <= len <= 8, "M₂"
assert margins_related(img, TOPIC) and path_not_obscured(img), "M₃"
assert emblem(img) and serif_title(img, TOPIC), "M₄"
assert woodcut(img) and palette(img) == self.s.palette and aged_paper(img), "M₅"
IlluminatedTimelinePoster(TOPIC).render()