{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 8 } , "rect" : [ 885.0, 178.0, 838.0, 588.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "statusbarvisible" : 2, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "description" : "", "digest" : "", "tags" : "", "boxes" : [ { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-58", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 304.0, 465.0, 66.0, 33.0 ], "presentation_rect" : [ 307.0, 448.0, 0.0, 0.0 ], "text" : "Vertical axis" } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-57", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 169.0, 465.0, 64.0, 33.0 ], "presentation_rect" : [ 383.0, 540.0, 0.0, 0.0 ], "text" : "Horizontal axis" } } , { "box" : { "id" : "obj-54", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 30.0, 135.0, 20.0, 20.0 ] } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-52", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 147.0, 165.0, 105.0, 20.0 ], "presentation_rect" : [ 394.0, 288.0, 0.0, 0.0 ], "text" : "Number of points" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-49", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "bang", "int", "bang" ], "patching_rect" : [ 30.0, 195.0, 71.0, 20.0 ], "text" : "trigger b i b" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-48", "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 30.0, 165.0, 65.0, 20.0 ] } } , { "box" : { "id" : "obj-46", "maxclass" : "slider", "mult" : 200.0, "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "parameter_enable" : 0, "patching_rect" : [ 60.0, 135.0, 195.0, 20.0 ], "size" : 100.0 } } , { "box" : { "id" : "obj-44", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 415.0, 465.0, 20.0, 20.0 ], "presentation_rect" : [ 259.0, 447.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-45", "int" : 1, "maxclass" : "gswitch2", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 0, "patching_rect" : [ 415.0, 495.0, 39.0, 32.0 ], "presentation_rect" : [ 259.0, 477.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-42", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 265.0, 465.0, 20.0, 20.0 ], "presentation_rect" : [ 170.0, 435.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-43", "int" : 1, "maxclass" : "gswitch2", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 0, "patching_rect" : [ 265.0, 495.0, 39.0, 32.0 ], "presentation_rect" : [ 170.0, 465.0, 0.0, 0.0 ] } } , { "box" : { "id" : "obj-41", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 130.0, 465.0, 20.0, 20.0 ] } } , { "box" : { "id" : "obj-39", "int" : 1, "maxclass" : "gswitch2", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 0, "patching_rect" : [ 130.0, 495.0, 39.0, 32.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-38", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "int" ], "patching_rect" : [ 435.0, 360.0, 57.0, 20.0 ], "presentation_rect" : [ 270.25, 408.0, 0.0, 0.0 ], "text" : "trigger i i" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-37", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "int" ], "patching_rect" : [ 285.0, 360.0, 57.0, 20.0 ], "presentation_rect" : [ 186.0, 410.0, 0.0, 0.0 ], "text" : "trigger i i" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-36", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "int" ], "patching_rect" : [ 149.0, 360.0, 57.0, 20.0 ], "presentation_rect" : [ 99.0, 406.0, 0.0, 0.0 ], "text" : "trigger i i" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-35", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "int" ], "patching_rect" : [ 30.0, 360.0, 57.0, 20.0 ], "presentation_rect" : [ 306.0, 385.0, 0.0, 0.0 ], "text" : "trigger i i" } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-33", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 461.0, 465.0, 60.0, 33.0 ], "presentation_rect" : [ 652.0, 525.0, 0.0, 0.0 ], "text" : "Diagonal axis" } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-32", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 45.0, 465.0, 60.0, 20.0 ], "text" : "Original" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-30", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 540.0, 65.0, 20.0 ], "text" : "send pixel" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-29", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 435.0, 435.0, 56.0, 20.0 ], "presentation_rect" : [ 240.5, 436.0, 0.0, 0.0 ], "text" : "pack 0 0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-28", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 285.0, 435.0, 56.0, 20.0 ], "presentation_rect" : [ 177.0, 436.0, 0.0, 0.0 ], "text" : "pack 0 0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-27", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 150.0, 435.0, 56.0, 20.0 ], "presentation_rect" : [ 100.0, 435.0, 0.0, 0.0 ], "text" : "pack 0 0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-26", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 686.0, 150.0, 77.0, 20.0 ], "text" : "receive pixel" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-25", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 68.0, 330.0, 41.0, 20.0 ], "text" : "!- 200" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-24", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "int" ], "patching_rect" : [ 285.0, 300.0, 57.0, 20.0 ], "text" : "trigger i i" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-23", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "int" ], "patching_rect" : [ 30.0, 300.0, 57.0, 20.0 ], "text" : "trigger i i" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-22", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 323.0, 330.0, 41.0, 20.0 ], "text" : "!- 200" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-21", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 686.0, 210.0, 81.0, 20.0 ], "text" : "append 0 0 0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-17", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 686.0, 180.0, 99.0, 20.0 ], "text" : "prepend setpixel" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-16", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 30.0, 435.0, 56.0, 20.0 ], "text" : "pack 0 0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-15", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 285.0, 270.0, 75.0, 20.0 ], "text" : "random 100" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-14", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 30.0, 270.0, 75.0, 20.0 ], "text" : "random 100" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-13", "linecount" : 2, "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 117.0, 225.0, 55.0, 31.0 ], "text" : ";\rlcd clear" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-11", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 3, "outlettype" : [ "bang", "bang", "int" ], "patching_rect" : [ 30.0, 230.5, 56.0, 20.0 ], "text" : "uzi 1000" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-7", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 585.0, 466.0, 200.0, 60.0 ], "text" : "Here we create random coordinate pairs for an lcd object, then reflect each in one or more ways to create a symmetrical image" } } , { "box" : { "id" : "obj-5", "maxclass" : "lcd", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "list", "list", "int", "" ], "patching_rect" : [ 585.0, 255.0, 200.0, 200.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-1", "maxclass" : "newobj", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 585.0, 210.0, 68.0, 20.0 ], "text" : "receive lcd" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-4", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 90.0, 780.0, 33.0 ], "text" : "One way that images or objects can be symmetrical is when one half is a reflection or mirror image of the other. The line that divides the halves is known as the 'axis of symmetry'. This axis may run horizontally, vertically, or diagonally. Two such axes result in a fourfold symmetry." } } , { "box" : { "bubble" : 1, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-2", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 15.0, 315.0, 51.0 ], "text" : "Patch 049. Reflection Symmetry\nWilliam J Turkel\nhttp://williamjturkel.net/code/#programming" } } , { "box" : { "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "border" : 1, "id" : "obj-3", "maxclass" : "panel", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 75.0, 810.0, 495.0 ], "rounded" : 20 } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-5", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-15", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 39.5, 264.0, 102.0, 264.0, 102.0, 264.0, 294.5, 264.0 ], "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-23", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-14", 0 ] } } , { "patchline" : { "destination" : [ "obj-24", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-15", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-16", 0 ] } } , { "patchline" : { "destination" : [ "obj-21", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-17", 0 ] } } , { "patchline" : { "destination" : [ "obj-5", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-21", 0 ] } } , { "patchline" : { "destination" : [ "obj-38", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 332.5, 351.0, 420.0, 351.0, 420.0, 351.0, 444.5, 351.0 ], "source" : [ "obj-22", 0 ] } } , { "patchline" : { "destination" : [ "obj-25", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-23", 1 ] } } , { "patchline" : { "destination" : [ "obj-35", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-23", 0 ] } } , { "patchline" : { "destination" : [ "obj-22", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-24", 1 ] } } , { "patchline" : { "destination" : [ "obj-37", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-24", 0 ] } } , { "patchline" : { "destination" : [ "obj-36", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 77.5, 351.0, 135.0, 351.0, 135.0, 351.0, 158.5, 351.0 ], "source" : [ "obj-25", 0 ] } } , { "patchline" : { "destination" : [ "obj-17", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-26", 0 ] } } , { "patchline" : { "destination" : [ "obj-39", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-27", 0 ] } } , { "patchline" : { "destination" : [ "obj-43", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-28", 0 ] } } , { "patchline" : { "destination" : [ "obj-45", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-29", 0 ] } } , { "patchline" : { "destination" : [ "obj-16", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-35", 0 ] } } , { "patchline" : { "destination" : [ "obj-27", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 77.5, 405.0, 159.5, 405.0 ], "source" : [ "obj-35", 1 ] } } , { "patchline" : { "color" : [ 0.0, 0.0, 1.0, 1.0 ], "destination" : [ "obj-28", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 196.5, 391.0, 294.5, 391.0 ], "source" : [ "obj-36", 1 ] } } , { "patchline" : { "color" : [ 0.0, 0.0, 1.0, 1.0 ], "destination" : [ "obj-29", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 158.5, 398.0, 444.5, 398.0 ], "source" : [ "obj-36", 0 ] } } , { "patchline" : { "color" : [ 1.0, 0.5, 0.0, 1.0 ], "destination" : [ "obj-16", 1 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 294.5, 419.0, 76.5, 419.0 ], "source" : [ "obj-37", 0 ] } } , { "patchline" : { "color" : [ 1.0, 0.5, 0.0, 1.0 ], "destination" : [ "obj-28", 1 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 332.5, 396.0, 331.5, 396.0 ], "source" : [ "obj-37", 1 ] } } , { "patchline" : { "color" : [ 0.5, 0.0, 0.5, 1.0 ], "destination" : [ "obj-27", 1 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 444.5, 407.0, 196.5, 407.0 ], "source" : [ "obj-38", 0 ] } } , { "patchline" : { "color" : [ 0.5, 0.0, 0.5, 1.0 ], "destination" : [ "obj-29", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-38", 1 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 159.5, 532.0, 39.5, 532.0 ], "source" : [ "obj-39", 1 ] } } , { "patchline" : { "destination" : [ "obj-39", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-41", 0 ] } } , { "patchline" : { "destination" : [ "obj-43", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-42", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 294.5, 532.0, 39.5, 532.0 ], "source" : [ "obj-43", 1 ] } } , { "patchline" : { "destination" : [ "obj-45", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-44", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 444.5, 533.0, 39.5, 533.0 ], "source" : [ "obj-45", 1 ] } } , { "patchline" : { "destination" : [ "obj-48", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-46", 0 ] } } , { "patchline" : { "destination" : [ "obj-49", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-48", 0 ] } } , { "patchline" : { "destination" : [ "obj-11", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-49", 1 ] } } , { "patchline" : { "destination" : [ "obj-11", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-49", 0 ] } } , { "patchline" : { "destination" : [ "obj-13", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-49", 2 ] } } , { "patchline" : { "destination" : [ "obj-48", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-54", 0 ] } } ], "dependency_cache" : [ ] } }