!7 p-experiment-tt { setFrameTitle("Select picture of magic wand", selectSnippetID_v1(#1101217, vf1(f go))); } svoid go(S imageID) { Class recognizer = hotwire(#1015046); int lineWidth; if (eq(imageID, #1101218)) lineWidth = 4; else if (eq(imageID, #1101222)) lineWidth = 4; else lineWidth = 10; focusConsole(); set(recognizer, showRepro := true); Pair p = cast quickImport(call(recognizer, 'imageToCode, imageID, 1, lineWidth)); BackgroundPlus s = shallowCloneToClass(BackgroundPlus, quickImport(unstruct(p.a))); printStruct(s); printAsciiHeading("RESULT"); printIndent(javaTokWordWrap(80, sCall(recognizer, 'describeResult))); double angle = sortLineByY((LineWithColor) first(s.things)).angle(); centerFrame(showImage("Wand facing up!", rotateImageInSameSize((BufferedImage) get(recognizer, 'fullSizeImage), 180-angle))); }