PROMPT RECORD图像记录
2x2 网格,16:9,为 4 位著名物理学家执行以下操作:class VisualPunLogo: def __init__(self, SUBJECT, WORD): s = infer(...
中文说明
2x2 网格,16:9,为 4 位著名物理学家执行以下操作:class VisualPunLogo: def __init__(self, SUBJECT, WORD): s = infer(SUBJECT, WORD) # boundary, target_letter, prop, palette self.s = s def gestalt_trace(self): # V₁: Text = Object boundary return curve_text_to_boundary(self.s.word, self.s.boundary) def semantic_morph(self, text_mesh): # V₂: Letter = Prop (exactly one) target_idx =...
原始 Prompt
2x2 grid, 16:9, do this for 4 famous physicists : class VisualPunLogo:
def __init__(self, SUBJECT, WORD):
s = infer(SUBJECT, WORD) # boundary, target_letter, prop, palette
self.s = s
def gestalt_trace(self): # V₁: Text = Object boundary
return curve_text_to_boundary(self.s.word, self.s.boundary)
def semantic_morph(self, text_mesh): # V₂: Letter = Prop (exactly one)
target_idx = find_letter(text_mesh, self. s. target)
return morph_stroke(text_mesh, target_idx, into=self.s.prop)
def render(self):
base = self.gestalt_trace()
final = self.semantic_morph(base)
return vector_logo(final,
palette=self.s.palette, # V₄: 2-4 spot colors
bg=pure_white,
style=minimalist_3D_flat)
def verify(self, img):
assert reads_as_word(img, self.s.word) and reads_as_object(img, self.s.subject), "V₃: dual-read fails"
assert morph_count(img) == 1, "V₂: too many morphs"
assert prop_belongs_to_subject(img, self.s.prop, self.s.subject), "V₅: category error"
assert is_flat_vector(img) and len(colors(img)) <= 4 and bg_is_white(img), "V₄: vector discipline"
VisualPunLogo(SUBJECT, WORD).render()